Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The API Gateway RequestAuthorizer URI is not partition based #8098

Closed
DRNagar opened this issue May 20, 2020 · 0 comments · Fixed by #8152
Closed

The API Gateway RequestAuthorizer URI is not partition based #8098

DRNagar opened this issue May 20, 2020 · 0 comments · Fixed by #8152
Assignees
Labels
@aws-cdk/aws-apigateway Related to Amazon API Gateway bug This issue is a bug. in-progress This issue is being actively worked on. p2

Comments

@DRNagar
Copy link
Contributor

DRNagar commented May 20, 2020

Reproduction Steps

  • running cdk in a different partition such as china
 "AuthorizerUri": {
          "Fn::Join": [
            "",
            [
              "arn:aws:apigateway:cn-north-1:lambda:path/2015-03-31/functions/",
              {
                "Ref": "xyz"
              },
              "/invocations"
            ]
          ]

Error Log

  • Attempting to deploy this will cause the following error for API GW
    Authorizer URI should be a valid API Gateway ARN that represents a Lambda function invocation.

Environment

  • CLI Version :
  • **Framework Version:**1.22.0
  • **OS :**Mac
  • **Language :**Tyepscript

This is 🐛 Bug Report

@DRNagar DRNagar added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels May 20, 2020
@SomayaB SomayaB added the in-progress This issue is being actively worked on. label May 26, 2020
@SomayaB SomayaB added the @aws-cdk/aws-apigateway Related to Amazon API Gateway label May 26, 2020
@nija-at nija-at added p2 and removed needs-triage This issue or PR still needs to be triaged. labels May 27, 2020
@mergify mergify bot closed this as completed in #8152 Jun 4, 2020
mergify bot pushed a commit that referenced this issue Jun 4, 2020
…ion (#8152)

Add that the authorizerURI includes the correct partition. Previously, it
always used the aws partition.

fixes #8098

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-apigateway Related to Amazon API Gateway bug This issue is a bug. in-progress This issue is being actively worked on. p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants