RFD: Terrateam Stacks #675
joshpollara
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're discussing a new concept in Terrateam: stacks.
Stacks let you group dirspaces (using tag queries) under a shared name and configuration. This unlocks things like change promotion (apply dev before prod), stack-specific configurations (variables, engine selection, access control, etc.)
Still early-stage and open for feedback.
RFD: #674
Curious what everyone thinks!
TL;DR: Terrateam "Stacks" Proposal
We are proposing a new config concept:
stacks. This is meant to address limitations in current dependency and workflow models by introducing a way to define named groups of dirspaces that can be parameterized and orchestrated together.Motivation
workflowsare overloaded: they define steps and also act as environment parameterization, which leads to duplicated workflow definitions.stacksallows for better reuse, environment-specific configs, and promotion rules between groups.Proposal Overview
stacksis a new top-level configuration key.Each stack groups dirspaces by tag query and can define:
variablesaccessible at runtime asSTACK_VAR_<UPPERCASE_NAME>on_changerules for promotion (e.g., apply prod only after dev)engine(e.g., terraform vs tofu, versioning)Referenced via
stack_name:<name>in tag queries (distinct from CDKTF'sstack:<name>)Dirspaces can optionally be part of multiple stacks with a flag
Semantics
Example Use Cases
devandprodstacks by tag query.devtoprodonly whendevchanges.The proposed
stacksmodel introduces a flexible, declarative way to manage dirspace groupings and promotion logic in Terrateam without overloading existing configuration semantics.Beta Was this translation helpful? Give feedback.
All reactions