ECS to Docker Container Steps
Got o the ECS panel
Either create a new cluster or create a new one
Select Task definitions, you can’t create a service without defining a task, it is the task that links to your Docker repo
Give the task a name and set the Task execution role to “Create new role”
Connect to your repo and expose the ports that the container exposes, and be sure to give the port mappings names
Select Create at the bottom of the page
Creating a service
Select the cluster you want to work with, or create a new one
Create a new service
In the Family section select the task you created
The service name must be unique just as they are when you create a docker docker container
In the networking section you will need to expose the ports to the outside world
Either create a new security group (must be unique) or use an existing one, make sure the ports you expose the ports you exposed in the task
Select Create at the bottom of the page
Wait for the service to be deployed
To see the service running select the tasks running
Select the task
You can now access the service via the public IP