I know i can get at a stacks resources with:-
aws cloudformation describe-stack-resources \
--stack-name MYSTACKNAME \
--query 'StackResources[*].{Type:ResourceType,LogicalID:LogicalResourceId}' \
--output table
If my stack only consists of NESTED STACKS how can i get at the resources of all the nested stacks of my stack within Cloudformation?
I can see how to query for all the stacks of my parent stack.
aws cloudformation list-stacks \
--query 'StackSummaries[?contains(StackName, `MYSTACKNAME`) && (StackStatus==`CREATE_COMPLETE`||StackStatus==`UPDATE_COMPLETE`)].{Stack:StackName}' \
--output json
I cant work out how to use this to feed describe-stack-resources which only appears to take an individual value.
I could build this into a python script but thought i would check before i do.
Thanks