-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS::AutoScaling::AutoScalingGroup !GetAtt Arn #548
Comments
I just found AWS team is currently working on the ability to reference the Auto Scaling Group by name, as can be seen here. Closing this for now, as the main goal for this request is being able to use the ASG with Capacity Providers. |
This would still be useful, for instance for referencing in an IAM policy |
I would also like to see this implemented so we can write IAM policies that limit access to a specific autoscaling group - otherwise, there is no way to target a specific group (as far as I can tell there is no way to get the UUID part of the group ARN and IAM won't take a |
Correction - Targetting specific autoscaling groups by their "friendly name" can work if we use wildcards in place of the region and account id (instead of just leaving these empty - like we do with other resources such as S3 objects). To this does work: |
Is there a way to ask for this request to be reopened, or should another issue be opened linking to this? Comment from @fitzoh
... is spot-on. In order to narrowly and precisely refer to the ASG in a policy, why would we want to force it to be referred to by the group name and have to manually construct a resource path from that (as kindly offered by @guss77 ). Not having access to the ASG Arn is a bug. |
#1175 seems to be tracking this now |
1. Scope of request
The return values for the Auto Scaling group resource today only support Ref, which returns the Auto Scaling Group Name.
2. Expected behaviour
Be able to retrieve the Auto Scaling ARN without having to deal with Custom Resources logic.
3. Any additional context (optional)
This is an important limitation when the ARN property is required. A clear example is while working with AWS::ECS::CapacityProvider resources. The arn is required and there is no way to directly obtain if from an Auto Scaling Resource. This prevents creating an Auto Scaling Group and the associated capacity provider within the same Stack.
This issue may be also relevant
The text was updated successfully, but these errors were encountered: