AWS CodeDeploy
User Guide (API Version 2014-10-06)

Set Up a Classic Load Balancer in Elastic Load Balancing for Blue/Green Deployments

Before you run a blue/green deployment, you must have created a Classic load balancer in Elastic Load Balancing that you will use to register the instances that will make up your replacement environment. Instances in your original environment can optionally be registered with this same load balancer.

To configure a load balancer, follow the instructions in Tutorial: Create a Classic Load Balancer in Classic Load Balancer Guide. Note the following:

  • In Step 2: Define Load Balancer, in Create LB Inside, choose the same VPC you selected when you created your instances.

  • In Step 5: Register EC2 Instances with Your Load Balancer, select the instances that you have designated to be in your original environment.

  • In Step 7: Create and Verify Your Load Balancer, make a note of the DNS address of your load balancer.

    For example, if you named your load balancer my-load-balancer, your DNS address would appear in a format such as