Blue/Green Deployment Pattern with AWS Elastic Beanstalk

Open Console

Caution: When you are in the console, do not deviate from the lab instructions. Doing so may cause your account to be blocked. Learn more.

Blue/Green Deployment Pattern with AWS Elastic Beanstalk

1 hour 45 minutes 15 Credits

SPL-47 - Version 1.4.6

© 2018 Amazon Web Services, Inc. and its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited.

Errors or corrections? Email us at

Other questions? Contact us at

Lab Overview

The purpose of this lab is to show you how to deploy a simple web application continuously using The Elastic Beanstalk Command Line Interface (EB CLI).

AWS Elastic Beanstalk provides a quick and easy way to deploy your web applications to the AWS cloud without requiring knowledge of the individual pieces that make up the infrastructure required to deploy your app to the cloud.

EB CLI is a command line interface for Elastic Beanstalk that provides interactive commands that simplify creating, updating and monitoring environments from a local repository. You can use it to automate deployment tasks and common administrative tasks in AWS.

Lab Description

This lab will demonstrate:

  • Deploying web application versions on an Elastic Beanstalk environment
  • Managing environments with the EB CLI
  • Deploying a new version of your application in Rolling update (In-Place Deployment)
  • Deploying a new version of your application in Blue/Green Deployment (Red/Black Deployment)

Lab Pre-requisites

To successfully complete this lab, you should be familiar with basic Linux server administration and comfortable using the Linux command-line.

Other AWS Services

Other AWS Services than the ones needed for this lab are disabled by IAM policy during your access time in this lab. In addition, the capabilities of the services used in this lab are limited to what's required by the lab and in some cases are even further limited as an intentional aspect of the lab design. Expect errors when accessing other services or performing actions beyond those provided in this lab guide.

Join Qwiklabs to read the rest of this lab...and more!

  • Get temporary access to the Amazon Web Services Console.
  • Over 200 labs from beginner to advanced levels.
  • Bite-sized so you can learn at your own pace.
Join to Start This Lab