This feature allows customers to add automated safeguards for Amazon ECS service rolling updates. You can now monitor and automatically react to changes during an Amazon ECS rolling update by using Amazon CloudWatch alarms. This enables you to more easily automate discovery and remediation for failed deployments and minimize the impact of a bad change.
Describe the feature
The ECS team recently introduced CloudWatch alarms for ECS deployments as described in https://aws.amazon.com/about-aws/whats-new/2022/12/amazon-ecs-cloudwatch-alarms-safety-deployments/
It would be great if ECS Service and ECS Fargate service could support this via constructor props
Fargate docs:
Use Case
This feature allows customers to add automated safeguards for Amazon ECS service rolling updates. You can now monitor and automatically react to changes during an Amazon ECS rolling update by using Amazon CloudWatch alarms. This enables you to more easily automate discovery and remediation for failed deployments and minimize the impact of a bad change.
Proposed Solution
Provide a props argument or property that is able to populate the
DeploymentAlarms
attribute on an ECS Service as per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentalarms.htmlcanOther Information
No response
Acknowledgements
CDK version used
v2.66.1
Environment details (OS name and version, etc.)
MacOS