Autoscaling Groups Support more than a single Target #7544
Labels
@aws-cdk/aws-autoscaling
Related to Amazon EC2 Auto Scaling
@aws-cdk/aws-codedeploy
Related to AWS CodeDeploy
guidance
Question that needs advice or information.
aws-cdk/packages/@aws-cdk/aws-autoscaling/lib/auto-scaling-group.ts
Line 561 in cbe735e
I'm not sure if I've implemented this correctly, but I have five Code Deploy applications using 5 different Target Groups that I would like to attach to a single AutoScaling Group
When I attempt to attach a second ApplicationTargetGroup to the same asg it fails with the error Cannot add AutoScalingGroup to 2nd Target Group, but if I jump into the console I can attach multiple Targets.
If I was to comment out the line attaching the appAPITargetGroup, everything works as expected.
The text was updated successfully, but these errors were encountered: