aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.1k stars 53 forks source link

AWS::CloudFormation::StackSet - NewAttribute #631

Open max-allan-surevine opened 3 years ago

max-allan-surevine commented 3 years ago

Scope

AWS::CloudFormation::StackSet supports only GetAtt of StackSetId. I would like to retrieve the names/IDs of the stacks within the StackSet as a new attribute.

Expected behaviour

Return a list of stacks within the stackset. Ideally indexed in a useful manner (So you know which stacks are in which region)

Test :

Can I create a stackset and then reference individual stacks within it later. It would help to create a stack that creates a stackset that creates a sub-stack and creates an SNS-> Lambda ->SNS notification service so that failed updates to the sub-stack can alert someone by email. Currently there is no way for a stack to know it's own name to add suitable filters to the Lambda without making this a 2 step process. Create the stack and then create the alert. But with stacksets, you could do it all in a single template.

Category

Management? Maybe Other? - Cloudformation

xiwhuang commented 2 years ago

Hi, this is not currently supported. We will bring this up in my team see if we can support this in our roadmap.

xiwhuang commented 2 years ago

As this is not a coverage issue. (i.e. not a gap between CFN and API), I am removing the Coverage tag.

max-allan-surevine commented 2 years ago

@xiwhuang The API does support ListStackInstances, which provides the information requested : https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListStackInstances.html