Run a Controlled Deploy With AWS Elastic Beanstalk

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating an Elastic Beanstalk App & Environment
lock
Running a Rolling Deploy
lock
Preparing a Blue-Green Deploy
lock
Doing the Deploy Swap

The hands-on lab is part of these learning paths

DevOps Engineer – Professional Certification Preparation for AWS
course-steps
35
certification
6
lab-steps
18
quiz-steps
2
description
3
SysOps Administrator – Associate Certification Preparation for AWS
course-steps
32
certification
5
lab-steps
30
quiz-steps
4
description
5
DevOps Fundamentals
course-steps
4
certification
1
lab-steps
3

Ready for the real environment experience?

DifficultyIntermediate
Time Limit2h 10m
Students3813
Ratings
4.7/5
starstarstarstarstar-half

Description

Lab Overview

One of the highest risk parts of running a software company, in terms of availability concerns, is the risk of a faulty deployment. During deployments, complex systems with multiple parts are actively moving around the delicate parts of many other systems. Deployment risk can be minimized by studying a couple of common approaches to deploying code to running machines. 

In this Lab, you will deploy multiple version updates of an application in a load-balanced and auto-scaled environment. The first update is deployed using a simple, low-friction rolling deployment. The second update is deployed using a blue-green deployment where a separate environment is created to run the new version of the application and a DNS cutover switches incoming traffic to the new environment.

Lab Objectives

Upon completion of this Lab, you will be able to:

  • Build Elastic Beanstalk applications and environments
  • Perform rolling deployments on underlying EC2 resources
  • Perform blue-green deployments with Elastic Beanstalk for zero-downtime updates
  • Minimize costs by cleaning up after blue-green deploys

Lab Prerequisites

You should be familiar with:

Lab Environment

Before completing the Lab instructions, the environment will look as follows:

After completing the Lab instructions, the environment should look similar to:

Updates

June 1st, 2020 - Fix an issue causing v3 of the app to fail to deploy correctly

May 29th, 2020 - Updated some screenshots to account for an updated Beanstalk UI

May 26th, 2020 - Updated the Node.js deployment packages to allow for successful deployments to AWS Beanstalk

April 10th, 2020 - Updated the instructions and screenshots due to the new Elastic Beanstalk UI

October 17th, 2019 - Updated the creation of the environment instructions

July 19th, 2019 - Improved the validation Lab Step to further check the work you perform in the Lab

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

October 17th, 2018 - Adapted the Lab to use an Application Load Balancer (the new default) rather than a Classic Load Balancer

September 6th, 2018 - Improved instructions clarity and updated screenshots to the most recent Elastic Beanstalk interface

April 29th, 2018 - Complete update (easier to follow instructions and screenshots for the new Elastic Beanstalk UI)

About the Author
Students71520
Labs119
Courses11
Learning paths15

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, AWS Certified Solutions Architect - Professional, Microsoft Certified Azure Solutions Architect Expert, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), Linux Foundation Certified System Administrator (LFCS), and Certified OpenStack Administrator (COA). He earned his Ph.D. studying design automation and enjoys all things tech.