CloudAcademy

Using Amazon ECS for Blue-Green Deployments

The hands-on lab is part of these learning paths

Docker in Depth

course-steps 3 certification 1 lab-steps 2

Scenario: Migrating From an End-of-Life Data Center to AWS

course-steps 6 certification 1 lab-steps 8 quiz-steps 2

Lab Steps

keyboard_tab
lock
Logging in to the Amazon Web Services Console
lock
Creating the Elastic Container Repository
lock
Building the Docker Images
lock
Creating the ECS Cluster
lock
Creating the Task Definitions
lock
Creating the Target Group and Load Balancer
lock
Creating the ECS Services
lock
Viewing Instances and Application Message
lock
Updating the Services and Application Deployments
lock
Deleting the ECS Laboratory Resources

Ready for the real environment experience?

DifficultyIntermediate
Duration1h 55m
Students336

Description

Lab Overview

Amazon EC2 Container Registry (ECR) is a fully-managed Docker container registry that helps you store, manage, and deploy Docker container images.  ECR is integrated with Amazon EC2 Container Service (ECS), streamlining your development and deployment operations. You can use Amazon's other services such as Simple Storage Service (S3) and Identity and Access Management (IAM) to control and manage your entire container-based solution. In this Lab you will build two Docker container images with Amazon CodeBuild, push the images to ECR, and perform a blue-green deployment operation using ECS.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Use application source files to create Docker container images and place them in Amazon ECR.
  • Create an Amazon ECS cluster.
  • Use the Amazon ECR images to create task definitions and services.
  • Implement the services in ECS container instances and adjust instance numbers.
  • Register ECS container instances with an Application Load Balancer (ALB).
  • Switch from one deployed application to another quickly and with no downtime.

Lab Prerequisites

You should be familiar with:

  • Basic understanding of local operating system and computer use.
  • An understanding of Docker and container concepts is helpful, but not required.

Updates

July 18th, 2018 - Updated screenshots and instructions to match the new Console experience

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW

About the Author

Eric is a Lab Researcher and Developer working to add to Cloud Academy's library of hands-on labs. He is an IT veteran who enjoys the ever-changing landscape of cloud computing. He also relishes live classical music performances, because sometimes engineering is better heard than seen.