Skip to main content

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.

Workaround
Problem
Status: ⬆️ Gathering votes7 comments

Log in to comment and vote

Comments7

  • Black Breeze

    •

    Dec 9, 2025

    Thanks for raising this, King!

    Please let me clarify one thing - when you say that you “laboriously declare a stack dependencies and then dependency references for each output-variable mapping” - do you do this by hand?

    Do you manage your stacks and stack dependencies manually, via the API, or perhaps using our OpenTofu provider?