DZone

Deploying Docker containers to AWS Elastic Container Service (ECS) is straightforward and automated when you make use of CloudFormation to define your infrastructure in a YAML template. Here we’ll be running through a simple example where we’ll setup everything required to run an NGINX container in AWS and access it over the internet.

AWS ECS Overview

We’ve chosen to run the NGINX official Docker image as it will allow us to browse to port 80 and view the response to prove the container is running. To get this deployed into ECS, we’ll need the following buildings blocks:

Source: DZone