aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
AWS::CodeDeploy::DeploymentGroup - DeploymentStyle - Blue/Green for EC2
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
### 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_
Contributor guide
Research direction
Start by reproducing the reported AWS::CodeDeploy::DeploymentGroup template with GreenFleetProvisioningOption set to COPY_AUTO_SCALING_GROUP, both with and without AutoScalingGroups. Compare the CloudFormation resource documentation with the CodeDeploy API and CLI behavior. Done means a valid EC2 blue/green deployment group can be represented without either contradictory validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100