Support CloudFormation rollback triggers
See original GitHub issueCloudFormation supports specifying 0-5 rollback triggers as CloudWatch Metric Alarms, which when triggered will automatically cause the stack update to be cancelled. Also a monitoring time of 0-180 minutes can be specified, which means a pause time CloudFormation will wait for any of the alarms to be triggered, or a rollback to be manually triggered, before cleaning up any resources.
There should be a way to use these with AWS CDK.
Use Case
Rollback triggers have obvious uses to make stack updates more reliable.
Proposed Solution
Similar to --notification-arns
currently in deploy
command, add --rollback-trigger-alarm-arns
option to be able to list 1-5 CloudWatch Alarms that automatically trigger a rollback. Also add --monitoring-time-minutes
option which can be used to add 0-180 minutes of pause time after a stack update before the cleanup phase starts. Both options can be specified independently, as they are useful on their own.
Other
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-rollback-triggers.html https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RollbackConfiguration.html
- 👋 I may be able to implement this feature request
- ⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 4 years ago
- Reactions:72
- Comments:25 (15 by maintainers)
Top GitHub Comments
I’d like to echo this sentiment. Two ways in which I think CDK could support rollbacks without the support of CodePipeline is:
rollbackAlarmArn
andmonitoringPeriod
fields on acdk.Stack
that gets forwarded to CloudFormation create-change-set and execute-change-set operations duringcdk deploy
.--rollback-alarm-arn
and--monitoring-period
command-line arguments when runningcdk deploy
.At the time when CodePipeline finally supports this integration, these features could be seamlessly integrated with it too.
This unblocks users today who are not using CodePipeline because of this limitation.
+1
Amazon is clear about the importance of Metrics monitoring and auto-rollback. It is a problem that the primary and recommended tool (CDK) doesn’t let customers integrate with this functionality which cloudformation supports.
I don’t think it makes sense to block all the customers using CDK and Cloudformation because of lack of support in Code Pipelines.