1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
you will need to add a dependency on the methods.
If you create an AWS::ApiGateway::RestApi resource and its methods (using AWS::ApiGateway::Method) in the same template as your deployment, the deployment must depend on the
RestApi
's methods. To create a dependency, add aDependsOn
attribute to the deployment. If you don't, AWS CloudFormation creates the deployment right after it creates theRestApi
resource that doesn't contain any methods, and AWS CloudFormation encounters the following error:The REST API doesn't contain any methods.
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 2 years ago
Thank You for the Help