-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Support CloudFormation rollback triggers #5170
Copy link
Copy link
Open
Labels
@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchRelated to Amazon CloudWatcheffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p1package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cloudwatchRelated to Amazon CloudWatchRelated to Amazon CloudWatcheffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p1package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Type
Fields
Give feedbackNo fields configured for issues without a type.
CloudFormation 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-arnscurrently indeploycommand, add--rollback-trigger-alarm-arnsoption to be able to list 1-5 CloudWatch Alarms that automatically trigger a rollback. Also add--monitoring-time-minutesoption 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
This is a 🚀 Feature Request