1 Answer
- Newest
- Most votes
- Most comments
0
You can use the Task state change events to send an alarm whenever the task changes its state to stopped.
You can use the AWS Event Bridge rule below:
{
"source": ["aws.ecs"],
"detail-type": ["ECS Task State Change"],
"detail": {
"lastStatus": ["STOPPED"]
"clusterArn": ["$CLUSTER_ARN"]
}
}
It will catch all stopped task events from the cluster provided. Please change the $CLUSTER_ARN
with the respective cluster ARN.
I hope this helps you!
answered a year ago
Relevant content
- asked 2 years ago
- Accepted Answerasked 2 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago