Posted On: Jan 20, 2021
Starting today, EC2 Fleet and Spot Fleet (further referred to as Fleet) are integrated with Amazon EventBridge (formerly CloudWatch Events) to notify you about important Fleet events, state changes, and errors. This allows you to automate actions in response to Fleet state changes as well as monitor the state of your Fleet from a central place without a need to continuously poll Fleet APIs. Amazon EventBridge enables you to collect monitoring data from AWS resources and applications, and allows you to build loosely coupled and distributed event-driven architectures.
For example, you can set up an EventBridge rule that invokes an AWS Lambda function to launch a workload on your Fleet when your Fleet reaches a certain capacity level. You can also set up an EventBridge rule that posts a message to an Amazon SNS (Simple Notification Service) topic upon receiving a Fleet state change event. Amazon SNS then sends an email notification to all subscribed parties.
EventBridge Fleet events are available for EC2 Fleets and Spot Fleets of request and maintain types. There is no charge for using Fleet events in EventBridge. Services that act upon events, such as AWS Lambda or Amazon SNS, are billed at their corresponding standard rates. To get started, go to the EventBridge section of the AWS Management Console and create a new rule. To learn more about Amazon EventBridge, please see here. For more information on EC2 Fleet events, please see here. For more information on Spot Fleet events, please see here.
Amazon EC2 Fleet and Spot Fleet simplify the provisioning of EC2 capacity across different EC2 instance types, Availability Zones, and purchase models (On-Demand, Reserved Instances, and Spot) to optimize your application’s scalability, performance, and cost. To learn more about using EC2 Fleet, please visit this page. To learn more about using Spot Fleet, please visit this page.