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

AWS::ApiGateway::Method Integration Uri incorrect parameter problem. #379

Open
tom1322s opened this issue Apr 19, 2023 · 1 comment
Open

Comments

@tom1322s
Copy link

I am trying to deploy AWS::ApiGateway::Method integrated with SQS (name: CFTestQueue.fifo), but I got an error:
Invalid ARN specified in the request (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: dd023af6-9fee-4fdd-a7d6-777b539af8c5; Proxy: null)

 

UserPostMethod:
    Type: AWS::ApiGateway::Method
    Properties: 
      HttpMethod: "POST"
      ResourceId: !GetAtt UserResourceRestApi.ResourceId
      RestApiId: !Ref AddUserTestRestApi
      AuthorizationType: NONE
      Integration:
          Type: AWS
          IntegrationHttpMethod: "POST"
          Uri: !Sub "arn:aws:apigateway:${AWS::Region}:sqs:path/${AWS::AccountId}/CFTestQueue.fifo"
          Credentials: !Ref testApiGatewaySqsRole
    DependsOn: AddUserCFTestSQS

 

Can you please take a look and help me find what is the root cause of the error? Thanks!

Copy link

Due to inactivity this issue will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant