The REST API doesn't contain any methods (Service: AmazonApiGateway...
2020-11-16
AWS CloudFormationでProxy統合した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)
原因は、Deploymentリソース作成時にAWS::ApiGateway::Method
リソースがまだ作られていないためdoesn't contain
DependsOn
をAWS::ApiGateway::Deployment
に追記することで解決できました。
記述のクセをつけておいたほうがよさそうですね。
Ref.