What should the developer do to make the new methods available?
Specify the disable-rollback option during the update-stack operation.
Unset the CloudFormation stack failure options.
Add an AWS CodeBuild stage to CodePipeline to run the aws apigateway create-deployment AWS CLI command.
Add an action to CodePipeline to run the aws cloudfront create-invalidation AWS CLI command.
Explanations:
The disable-rollback option is used to prevent CloudFormation from rolling back the stack when an error occurs during the stack update. It does not address the issue of missing methods in the API Gateway after deployment.
Unsetting the stack failure options is not relevant to the issue at hand. The problem is related to the deployment of new resources and methods, not stack failures.
When using CloudFormation to deploy API Gateway, the deployment does not automatically trigger a new deployment of the API if new resources and methods are added. The aws apigateway create-deployment command ensures a new deployment is created for the updated API, making the new methods available.
The aws cloudfront create-invalidation command is used to invalidate cached CloudFront content, not related to API Gateway deployment or method availability. It does not solve the issue of new methods not being available in the API.