Reputation: 15421
While following this tutorial, under Setup the application in CodeDeploy, it reads
- Under Load balancer uncheck Enable load balancing.
- Click Create deployment group.
Thing is, when I click Create deployment group
it shows a warning that "Choose a target group" is 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.
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
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.
Tick it off the "Enable Load Balancer" then you won't be required to use one.
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
Upvotes: 2