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

Set Up a Classic Load Balancer in Elastic Load Balancing for AWS CodeDeploy Deployments

Before you run any blue/green deployment, or an in-place deployment for which you want to specify an optional load balancer in the deployment group, you must have created a Classic Load Balancer in Elastic Load Balancing. For blue/green deployments, you use that load balancer to register the instances that 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 currently in your deployment group (in-place deployments) or that you have designated to be in your original environment (blue/green deployments).

  • 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 my-load-balancer-1234567890.us-east-2.elb.amazonaws.com.