In my previous post I walked through a couple of tutorials to deploy a test Docker container to AWS ECS Fargate. As a summary, here’s the various parts that you need to have in place to deploy a Docker container using Fargate:
- A Docker image, deployed to a Docker repository, e.g. either Docker Hub, or AWS ECR
- A VPC with either a public or private subnet (or both)
- A Security Group to define what traffic is allowed in and out to your running Container
- A ELB Load Balancer, assuming you’re running more than 1 instance of a container and are not accessing a single instance directly with a public IP
- An ECS Cluster
- An ECS Task Definition
- An ECS Fargate Service Definition to create the running instance of your task