My CloudFormation template creates an autoscaling group with a random name. Now I want to go to the CodeDeploy console and manually add the new autoscaling group to the deployment group and I want to automate this process.
I see two ways to do so:
1. CloudFormation to always assign the autoscaling group the same name and just configure it once in the CodeDeploy.
2. CloudFormation modify CodeDeploy with the new autoscaling group name.
But it seems either of the ways is not allowed, any idea how to do this?