DEV Community

Takahiro Kudo
Takahiro Kudo

Posted on

1

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

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?

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay