awslabs / aws-codedeploy-plugin

Jenkins plugin for AWS CodeDeploy
Apache License 2.0
153 stars 131 forks source link

How to add/select Green tags for EC2 instances in CodeDeploy plugin? #119

Open karanspot opened 1 year ago

karanspot commented 1 year ago

Hi,

We are trying to use the plugin to trigger CodeDeploy blue-green deployment for EC2 instances. The blue instance tags are added in the Deployment group configuration. To select the green instances we have to add the green tags during deployment as shown in the console screenshot:

Green tagged Instances

But this option isn't available in the Jenkins plugin:

Jenkins Plugin1

As a result, all the deployments are failing due to no available Green instances:

Code Deploy Failure

Is there a way to add the Green tags for EC2 instances, we cannot use ASG hence we have to stick with EC2 instances but the plugin doesn't seem to have the option to add these green tags.

Thanks!