Stack Dependency References as Auto-attach Contexts
I like the auto-attach functionality of contexts and wish there was a way to use it in combination with stack dependencies. Auto-attach contexts make it easy to associate a set of environment variables and other data with a stack. I want something similar for stack dependencies and dependency references.
WorkaroundLaboriously declare dependencies and dependency references.
ProblemI have a VPC stacks that each output information about a VPC and subnets. I want to use that as variable input to other stacks. If this information was in a context, I could easily label the other stacks to take advantage of auto-attach contexts. But, for integrations, I have to laboriously declare a stack dependencies and then dependency references for each output-variable mapping. I wish I could declare something like a “dependency context” with preset output-variable mappings and an auto-attach label, and then label the downstream stacks that depend on the “dependency context”. Labelling would set up the dependency and dependency references.