Skip to content

dshabin/aws-batch-docker-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS Batch python Docker image deploy using Cloudformation

Build Status

Get started

Step 1: Create Batch stack using CloudFormation:

aws cloudformation create-stack --stack-name my-batch-stack --template-body file://template.json --capabilities CAPABILITY_IAM --region us-east-2

Step 2: Build docker:

docker build -t my-image-for-batch .

Step 3: Login:

$(aws ecr get-login --no-include-email)

Step 4: Tag:
Get from Step 1.

docker tag my-image-for-batch:latest <repositoryUri>:latest

Step 5: Push to ECR:
Get from Step 1.

docker push <repositoryUri>:latest

Almost done :

aws batch submit-job --job-name example-job-name --job-queue <jobQueue name from step6> --job-definition <jobDefinition name from step6> --container-overrides command=["python3","/root/src/app.py"]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published