If you’re just trying to reference data from a parent stack, just pass it as a parameter into your nested stack. No need to export/import in a parent/child stack.
Close. You don’t need to use outputs at all. You just need to specify the parameter value in the AWS::CloudFormation::Stack resource that you’re creating in the parent stack. Also, in case it’s not clear, you need to define a parameter in the child stack in order to pass it a value. Whatever syntax you are currently using to build that output value can simply be input into the child stack resource parameter, which will pass that to the child stack.
I’m currently on mobile, so can’t really give a good example, but hope that makes sense.
Ah, thanks for the pointer at AWS::CloudFormation::Stack
I guess we are using some sort of “faked” nesting lol as AWS::CloudFormation::Stack currently isn’t in use. The “Parent” has outputs that the child references and then the child’s child is referencing the child.
Looks like this needs a complete overhaul to take advantage of the Stack Nesting & Parameters
Ah, in that case import/export is the way to go. VPC, as I see in your example, is a good use case for that. Just keep in mind that once you’ve imported an exported value it can’t be updated.