Better HN
topnewbestaskshowjobs
Log inSign up

hahkerman

3 karma · joined Oct 7, 2021 (5y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

I'm referring specifically to this feature: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGui...

CFn will allow you to specify up to 5 alarms to monitor during stack deployment as well as a duration to monitor them for up to 3 hours.

During deployment, the stack does not transition into the COMPLETE state until the monitor duration has completed without the alarms being triggered. If one of the alarms is triggered, the stack immediately rolls back.

Since failed ECS tasks create CW Events, you can set up alarms on them and use them as the rollback monitor trigger.

comment 5y ago · link · parent

CFn supports stack rollback alarms. All you need to do is create an alarm for failing ECS tasks.