Posted On: Mar 21, 2017

Amazon CloudWatch Events now supports Amazon EC2 Run Command as an event target. This allows you to route system events that describe changes in your AWS environment to Run Command for processing. Run Command, a part of Amazon EC2 Systems Manager, provides a simple way of remotely executing common administrative tasks like running scripts, installing software, and managing patches. Now, you can perform ad-hoc actions through Run Command on your instances based on changes in your AWS environments. For example, you can now collect instance logs when instances in an Auto Scaling group are terminated by creating a CloudWatch Events rule with Auto Scaling as the source and Run Command as the target. To learn more, see the CloudWatch Events documentation here.

To learn if Amazon EC2 Run Command and AWS CloudWatch Events are available in your region, see here.

For more information on Amazon EC2 Run Command: