For writing infrastructure as code, Terraform is a quite useful tool. Especially if you want to abstract different providers and orchestrate. But what if you want to create stages on demand? All while still operating in GitOps mode.
layerform (currently under GPLv3) is a tool, which aims to allow each engineer to provision their own “staging” environment.
Adding layers in the .tfstate of Terraform, a bit alike handling state files as layers of an OCI image and being able to do branching.
Might be worth a try…
(If you don’t want to provide telemetry, set the LF_TELEMETRY_DISABLED environment variable to 1.)