Amazon ECS Express Mode is a feature of Amazon Elastic Container Service (Amazon ECS) that deploys a containerized web application without making you manage the infrastructure around it. You provide a container image and two IAM roles. ECS Express Mode then provisions an AWS Fargate service, an Application Load Balancer with HTTPS, networking, auto scaling, and logging, and gives you a public URL for the application.
In this Cloud Lab, you’ll first create a private ECR repository. You will then launch an EC2 instance, build a Docker image for a Flask application, and push the image to your repository with an explicit version tag. After this, you’ll deploy the image with ECS Express Mode and watch it provision the load balancer, networking, and scaling resources for you. Finally, you’ll change the application, push a new image version, and update the service to see ECS Express Mode roll out the new version while the application stays available at the same URL.
After completing this Cloud Lab, you’ll be able to deploy your containerized applications on the AWS cloud using ECS Express Mode. You’ll also know how to release a new version of an application by pushing a new image and updating the service.
The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab: