aws-cloudformation / aws-cloudformation-templates

A collection of useful CloudFormation templates
Apache License 2.0
4.57k stars 4.18k forks source link

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

Open tom1322s opened 1 year ago

tom1322s commented 1 year ago

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!

github-actions[bot] commented 2 months ago

Due to inactivity this issue will be closed in 7 days