terramate
terramate copied to clipboard
[FEATURE] Add outputs to stacks so they can be used without remote state
Is your feature request related to a problem? Please describe. I would like to use outputs between different states to manage my infrastructure
Describe the solution you'd like for example, assuming I have 2 stacks, google storage and google function google storage generates a bucket with a random name and set it as output in terraform
google function requires the bucket name, so I would like to use the google storage stack output as input for function stack
Describe alternatives you've considered Sometimes it is possible to set a global in a higher hierarchy level to share the data, but it doesn't always work for example when data is generated like random or by the cloud resource creating itself (only known after creation)
I though about running a script before / after the stack runs to get the outputs using native terraform, didn't try it yet, seems fragile