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.
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