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.
Lab info
Lab author
Challenge
Create an ELB
Create a load balancer and target group for use with ECS.
Challenge
Create a Secret in Secrets Manager
Create a new secret in AWS Secrets Manager for use inside of ECS-run Docker containers.
Challenge
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.
Challenge
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.
Challenge
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.
Challenge
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.
Challenge
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.
Guided walkthrough
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.
Recommended prerequisites
- AWS EC2 basics
- AWS IAM familiarity
- Docker basics