Episode #9

Docker on Amazon ECS using CloudFormation

Published on: Aug 03, 2018 | Video length: 37 minutes

Show Notes

Walkthrough of using Amazon Elastic Container Registry (ECR) for docker images, creating CloudFormation stacks to group resources such as VPC, Load balancers, CloudWatch, ECS Cluster, Container Tasks and Services.

Following are the steps to walk through,

  1. Containerize a simple REST API application - Build Docker Image
  2. Using AWS CLI, create repository on Amazon Elastic Container Registry (Docker Registry)
  3. Push the docker image to repository on Amazon ECR
  4. Define and run CloudFormation stack to create VPC and all network components
  5. Define and run CloudFormation stack to create IAM roles
  6. Define and run CloudFormation stack to create ECS Cluster, Load balancer, CloudWatch Log Group and Security Groups
  7. Define and run CloudFormation stack to deploy docker application - Create Task for container, Service to schedule the task, Load balancer target group for container services and Load balancer listener rule for container service

Resources

Amazon Elastic Container Service (ECS): https://aws.amazon.com/ecs/

Amazon Elastic Container Registry (ECR): https://aws.amazon.com/ecr/