Skip to content

Are there any methods to arrange order of variables evaluation on locals block #3707

Answered by Arpo201
Arpo201 asked this question in Q&A
Discussion options

You must be logged in to vote

Wow, that works!! Thank you.

For anyone, this is my solution (File descriptors):

# tg-render.bash
terragrunt render-json > result.json
# Any subsequent commands that have stdout should use "1>&2"
echo "xxxx" 1>&2
cat "result.json"
# terragrunt.hcl
tg_render = run_cmd("tg-render.bash")

Explanation:
0 refers to standard input (stdin).
1 refers to standard output (stdout).
2 refers to standard error (stderr).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Arpo201
Comment options

@yhakbar
Comment options

@Arpo201
Comment options

Answer selected by Arpo201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants