Hello Everyone! My name is Kelvin DeCosta. I'm ve...
# general
m
Hello Everyone! My name is Kelvin DeCosta. I'm very new to using IaC tools and so far my experience has been great! My team and I have a few tasks that we would like to automate. We need to execute some long-running scripts at the start of each week. We've settled on using
AWS 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!
Just wanted to update with my solution. All I had to do was to set the
image
field of the
containerProperties
field of the
JobDefinition
to the URI of the Docker image hosted on our ECR.
👍 1