Automate Docker container deployments to AWS ECS using CloudFormation

Published: 20 January 2020
on channel: Tom Gregory Tech
14,419
292

Learn how to automate deployment of your Docker containers to AWS Elastic Container Service (ECS) using CloudFormation.

We'll run through an overview of how ECS works, as well as a real-life scenario of deploying an NGINX Docker container to it and then accessing it over the internet.

GITHUB GIST
CloudFormation template https://gist.github.com/tkgregory/414...

AWS CLI COMMANDS
Create stack:
aws cloudformation create-stack --stack-name example-deployment --template-body file://./ecs.yml --capabilities CAPABILITY_NAMED_IAM --parameters 'ParameterKey=SubnetID,ParameterValue=subnet-1881f750'

Update stack: same as above but using 'update-stack' instead of 'create-stack'

Delete stack: aws cloudformation delete-stack --stack-name example-deployment


Watch video Automate Docker container deployments to AWS ECS using CloudFormation online, duration hours minute second in high quality that is uploaded to the channel Tom Gregory Tech 20 January 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 14,419 times and liked it 292 visitors.