Deploy Docker Containers on AWS with Amazon Elastic Container Service (ECS)
In this lab you'll practice scheduling containers using AWS Elastic Container Service. When you're finished with this lab, you'll have a low maintenance, highly scalable, and secure template for building container based services on AWS.
Terms and conditions apply.
Create an ELB
Create a load balancer and target group for use with ECS.
Create a Secret in Secrets Manager
Create a new secret in AWS Secrets Manager for use inside of ECS-run Docker containers.
Create IAM Policy and Role
Create a policy and role for your ECS service to use that will allow access to secrets stored in AWS Secrets Manager.
Create an ECS Cluster
Create an ECS cluster with an EC2 capacity provider, using the default network and a provided IAM role to enable AWS System Manager.
Update the ECS Instance Configuration
Customize the launch configuration for your ECS instances to be able to use secrets from AWS Secrets Manager. This will require replacing the existing EC2 instance with a new one launched using the new launch configuration.
Create an ECS Task Definition
Configure a task definition describing the container that will be started, its resources, and how it will be attached to the network.
Create an ECS Service
Make an instance of your task definition on your cluster by creating an ECS service. Pick the number of containers to run, view the containers on the terminal, and view the running website in your browser.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
- AWS EC2 basics
- AWS IAM familiarity
- Docker basics