Facts:
- CloudFormation Outputs limit its 60 per template.
- I have 90 resources to export so I created the following structure:
parent_stack.template(contains the below nested stacks)stack01.template(contains 45 resources and its outputs)stack02.template(contains 45 resources and its outputs)
My issue:
I need to export those 90 resources but I can't export them in parent_stack.template because of the limit.
I can export them in their respective stack01.template and stack02.template but since they are nested when CloudFormation creates them it adds a random alphanumeric string like Stack01-1B0HKOV4YRD6A so I can't actually use the logical name to import from the nested stacks anywhere but in the parent.
I would really appreciate any help here.
Thanks in advance!!!
You can reference nested output variables. Look at this draft example, this would be like a main cloud formation script:
MyStackC consumes params from MyStackA and MyStackB. MyStackC script will need a parameters section:
StackA and StackB need to output their own stuff too