terraspace icon indicating copy to clipboard operation
terraspace copied to clipboard

Output Helper with Instance deployment

Open fdmsantos opened this issue 3 years ago • 2 comments

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

fdmsantos avatar Mar 31 '21 10:03 fdmsantos

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:

  1. hard code the output values
  2. Write custom helper that looks it up dynamically https://terraspace.cloud/docs/helpers/custom/

tongueroo avatar Mar 31 '21 14:03 tongueroo

Tks @tongueroo . Should i create a feature request?

fdmsantos avatar Mar 31 '21 14:03 fdmsantos