Creating an Amazon ECS Service Using a Blue/Green Deployment

Creating an Amazon ECS Service Using a Blue/Green Deployment
Creating an Amazon ECS Service Using a Blue/Green Deployment

CLOUD LABS

Creating an Amazon ECS Service Using a Blue/Green Deployment

In this Cloud Lab, you’ll learn to set up blue/green deployment for containerized applications using AWS services.

13 Tasks

intermediate

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

A solid understanding of blue/green deployment and its advantages
Hands on experience of working with ECS containers
Hands-on experience setting up blue/green deployment for containerized applications

Technologies
ECS
ALB logoALB
ECR logoECR
EC2 logoEC2
Skills Covered
Using AWS Cloud Services
Cloud Lab Overview

Amazon Elastic Container Service (ECS) is a fully managed container orchestration service that simplifies deploying, managing, and scaling containerized applications on AWS. With ECS, you can efficiently run and scale Docker containers across a cluster of EC2 instances or AWS Fargate compute resources without managing the underlying infrastructure. With ECS, you can also focus on developing and deploying your applications while AWS handles the infrastructure and scaling.

In this Cloud Lab, you will create an ECS service using blue/green deployment. You’ll start by creating an IAM role and security groups. After that, you’ll create two ECR repositories. Then, you’ll create two images and push them to those repositories. Next, you’ll create an ECS cluster and a task definition with one of the images stored earlier. You’ll also create an application load balancer, which will be used later for blue/green deployment. After creating these resources, you’ll create a simple ECS service. Once your app runs, you’ll change the task definition to see how it affects it.

By the end of this Cloud Lab, you’ll have practical experience in creating an ECS service with blue/green deployment. These skills are essential for anyone working with containerized applications on AWS and will help you ensure the scalability and reliability of your applications.

The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.Create the Pre-required Resources
Create IAM Roles
Create Security Groups
3. Push Docker Images to Amazon ECR Repository
Create Repositories
Launch an EC2 Instance
Create and Push Docker Images
4.Set Up ECS Infrastructure
Create an Amazon ECS Cluster
Register a Task Definition
5.Blue/Green Deployement
Create an Application Load Balancer
Create an Amazon ECS Service
Create and Monitor a CodeDeploy Deployment
6.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Before you start...

Try these optional labs before starting this lab.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image