Cloudformation-coverage-roadmap: AWS::AutoScaling::AutoScalingGroup !GetAtt Arn

Created on 3 Jul 2020  路  4Comments  路  Source: aws-cloudformation/cloudformation-coverage-roadmap

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

Most helpful comment

This would still be useful, for instance for referencing in an IAM policy

All 4 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 * there).

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: !Sub arn:aws:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/${LogicalGroupName}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grauj-aws picture grauj-aws  路  3Comments

msaggar picture msaggar  路  3Comments

mildebrandt picture mildebrandt  路  3Comments

san-san picture san-san  路  3Comments

baxang picture baxang  路  3Comments