Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

deploying Batch with CloudFormation

I've been able to create a Compute Environment, a Job Queue and about a dozen Job Definitions using CloudFormation. Great!

Unless I'm missing something, there doesn't seem to be an element to actually submit my Job Definitions using CloudFormation. :(

At first, I thought I had it figured out because you can create CloudWatch Events that trigger a Job Submission. However, I notice that the Event Rule in CloudFormation does not have support for Batch like the CLI/SDK does. Lame!

Anyone else deploying Batch with CloudFormation? How are you submitting jobs? I guess I can create a Custom Resource, but that seems harder than it should be.

like image 971
Vikas Rathore Avatar asked Feb 24 '26 22:02

Vikas Rathore


1 Answers

Does https://docs.aws.amazon.com/batch/latest/userguide/batch-cwe-target.html solve your problem?

AWS Batch jobs are available as CloudWatch Events targets. Using simple rules that you can quickly set up, you can match events and submit AWS Batch jobs in response to them.

When you create a new rule, add the batch job as a target.

like image 166
Erigami Avatar answered Feb 26 '26 22:02

Erigami



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!