Posted On: Mar 1, 2018
Amazon CloudWatch now allows you to use AWS Batch as an event target to run batch computing workloads. Amazon CloudWatch Events enables you to respond quickly to application availability issues or configuration changes that might impact performance or security by notifying you of AWS resource changes in near-real-time. You simply write rules to indicate which events are of interest to your application and what automated action to take when a rule matches an event. You can, for example, invoke AWS Lambda functions or notify an Amazon SNS topic or take an Amazon EBS volume snapshot every hour, or at intervals down to 1-minute. AWS Batch is a fully managed service that automatically provisions compute resources and optimizes the workload distribution based on the volume and resource requirements of submitted jobs. It eliminates the need to install or manage batch computing software. You only pay for the AWS resources (e.g. EC2 instances) you create to store and run your batch jobs.
You can add AWS Batch as a target by creating an Amazon CloudWatch Events rule and specifying the AWS Batch job ARN. Once the rule matches an event, it starts the job by invoking the Batch Submit-Job API. For example, you can submit a job to AWS Batch in response to an event pattern or on a schedule using Amazon CloudWatch Events. Prior to this feature, you were required to use services such as AWS Lambda as a workaround to take advantage of Amazon CloudWatch for your event-driven batch workloads. This feature is available in all AWS Public Regions where AWS Batch is present.