boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
678 stars 46 forks source link

Output Helper with Instance deployment #98

Closed fdmsantos closed 1 year ago

fdmsantos commented 3 years ago

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

tongueroo commented 3 years ago

Currently, not possible. Would like to see it. As well as other improvements. Somewhat relevant:

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/
fdmsantos commented 3 years ago

Tks @tongueroo . Should i create a feature request?