Amazon ECS Service Events Now Available as CloudWatch Events

Posted on: Nov 26, 2019

Amazon Elastic Container Service (ECS) now publishes ECS Service Action events to Amazon CloudWatch Events. CloudWatch Events delivers a near real-time stream of system events that describe changes in AWS resources. Using simple rules that you can quickly set up, you can match events and route them to one or more target functions or streams, including AWS Lambda for event processing with custom business logic, Amazon Simple Notification Service for automated notifications, or CloudWatch Logs for event logging. 

Previously, customers could receive CloudWatch Events for ECS Tasks and Instances, but ECS Service events were only available through ECS APIs, requiring customers to poll an API and implement their own logic for automation and logging of Service events. With ECS Service Action events in CloudWatch Events, customers can easily automate real-time responses to events as they occur. For example, customers can automatically trigger an AWS Lambda function in response to specific ECS Service Actions. Or, customers can stream all ECS Service Action events to a CloudWatch Logs group, enabling post-event forensic analysis.  

Amazon ECS Service Action Events in CloudWatch Events is available in all regions where ECS is available. To get started, view our documentation.