terraspace
terraspace copied to clipboard
Output Helper with Instance deployment
Hi,
It's possible using output helper with instance deployment?
Because the output helper uses the following syntax:
output("DEPENDANT_STACK.OUTPUT_KEY", options={})
And the helper will look for the variable in .terraspace-cache/region/env/stacks/DEPENDANT_STACK
but in an instance deployment the folder created it's .terraspace-cache/region/env/stacks/DEPENDANT_STACK.INSTANCE
.
How can i use the Output helper in this kind of deployment? If it's not possible, i would like to request this feature and in the meanwhile i would be highly appreciated any ideas for workaround.
Thanks
Currently, not possible. Would like to see it. As well as other improvements. Somewhat relevant:
- https://community.boltops.com/t/prevent-modules-to-be-deployed-in-one-environment/618
- https://community.boltops.com/t/nested-stack-folders/666
Will consider PRs. No sweat either way of course. 👍 It’s a matter of time.
Ideas for workaround, which are non-ideal:
- hard code the output values
- Write custom helper that looks it up dynamically https://terraspace.cloud/docs/helpers/custom/
Tks @tongueroo . Should i create a feature request?