mysterious-apartment-62241
04/04/2022, 8:24 AMAWS Batch
with Fargate
.
We've tried and tested a "dispatcher" Lambda
that is invoked at the start of each week (via EventBridge
/ CloudWatch
events, in TypeScript
).
This Lambda
would submit Jobs
with a specified Job Definition
to a Job Queue
which would then schedule them accordingly.
I've set the Lambda
function to use a Docker
container the image of which is hosted on ECR
(Docker
container runs a Python
script).
I'm having a little trouble with connecting the AWS Batch
resources (ComputeEnvironment
, JobDefinition
, etc.) and ECS
, Fargate
.
I would really appreciate it if I can get some help/advice on linking these resources together.
AFAIK, there are no examples using AWS Batch
and Fargate
with Docker
containers in the examples repository.
Feel free to correct me where I'm wrong.
Any help is appreciated.
Thank you for your time!image
field of the containerProperties
field of the JobDefinition
to the URI of the Docker image hosted on our ECR.