Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: Return outputs from terraform as json string #6046

Closed
ITHedgeHog opened this issue May 15, 2024 · 1 comment · Fixed by #6067
Closed

[FEATURE]: Return outputs from terraform as json string #6046

ITHedgeHog opened this issue May 15, 2024 · 1 comment · Fixed by #6067

Comments

@ITHedgeHog
Copy link
Contributor

Feature Request

Background / Motivation

We use Azure CLI to set the secrets based on terraform output - when we put all of these outputs together it is longer than the buffer (9K characters).

We would like to access the entire outputs as a json string.

What should the user be able to do?

access ${actions.deploy..outputs.* as a json string.

Why do they want to do this? What problem does it solve?

I can't use terraform in garden for any members of my team using Windows.

Suggested Implementation(s)

How important is this feature for you/your team?

🥀 Crucial, Garden is unusable for us without it

@twelvemo
Copy link
Collaborator

twelvemo commented May 16, 2024

Hi @ITHedgeHog , this actually already works if you use the jsonEncode template helper function, since outputs is a plain object e.g.: ${jsonEncode(actions.deploy.tf.outputs)} or ${jsonEncode(providers.terraform.outputs)}.
EDIT: It works for provider outputs, but not for action outputs. Reopening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants