Tiago Peres
Tiago Peres

Reputation: 15421

Setup the application in CodeDeploy with Load balancer

While following this tutorial, under Setup the application in CodeDeploy, it reads

  1. Under Load balancer uncheck Enable load balancing.
  2. Click Create deployment group.

Thing is, when I click Create deployment group

CodeDeploy Load Balancer

it shows a warning that "Choose a target group" is required

Choose a target group required

The documentation doesn't refer the need to create such target group but apparently is a must do. Note that atm I don't have any options in there.

If I switch from "Application Load Balancer or Network Load Balancer" to "Classic Load Balancer" I then have to choose a load balancer but also no ptions in the dropdown.

Choose a load balancer required

Considering I just want to create this deployment group, how to create the ( target group OR load balancer ) and how it should look like?

Upvotes: 1

Views: 1115

Answers (1)

Marcin
Marcin

Reputation: 238051

How to create the target group and how it should look like?

Target group (TG) and your ALB must exist before you attempt to use them in deployments.

To create TG you have to go to EC2 Console -> Target groups. How it should look like depends on your application. What port it is running, what kind of heath check it should be using and so on. There is no setup that will fit all possible use-cases.

But if you don't have per-exisitng TG, then probably you don't have ALB as well. Thus, maybe you don't need them at all. They are not required for CodeDeploy to work.


Edit

Tick it off the "Enable Load Balancer" then you won't be required to use one.

Deployment group without load balancer

If you read carefully what is mentioned there in step 7, it says

Under Load balancer uncheck Enable load balancing.

So just uncheck it and you're good to click the "Create deployment group" button

Deployment group created

Upvotes: 2

Related Questions