aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.1k stars 53 forks source link

AWS::CodeDeploy::DeploymentGroup - DeploymentStyle - Blue/Green for EC2 #2071

Open daTobiGit opened 2 weeks ago

daTobiGit commented 2 weeks ago

Name of the resource

AWS::CodeDeploy::DeploymentGroup

Resource name

No response

Description

i try to setup a blue/green codedeployment group for an autoscaling group with ec2 instances. this can be done on the console, the API and with the CLI, but its not possible to configure it with cloudformation.

i configure it to copy the existing ASG and have it create new EC2 instances. But setting the "GreenFleetProvisioningOption" to use the "COPY_AUTO_SCALING_GROUP" action causes CloudFormation throw an error with the message: Property AutoScalingGroups cannot be specified.

If I remove the "AutoScalingGroups" from the CFN template I get this error: Exactly one AutoScaling group must be specified when selecting the COPY_AUTO_SCALING_GROUP green fleet provisioning option.

Other Details

No response