DEV Community

loading...

AWS - The REST API doesn't contain any methods (Service: AmazonApiGateway...

takakd profile image Takahiro Kudo ・1 min read

The below error was raised when the CloudFormation template deploys the proxy integration API.

CREATE_FAILED  AWS::ApiGateway::Deployment  SomeDeployment The REST API doesn't contain any methods (Service:BadRequestException; Request ID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx; Proxy: null)
Enter fullscreen mode Exit fullscreen mode

The reason for this is that DependsOn attribute needs in AWS:ApiGateway:Deployment because AWS:ApiGateway:Method should be created before creating the deployment.

Should we always write DependsOn attribute?

Discussion (0)

pic
Editor guide