Skip to content
Discussion options

You must be logged in to vote

Hi @mardonner,

HCL's native syntax, which is what you're using in your current example, does require there to be real newline characters delimiting the block boundaries and the individual arguments in the blocks, and so you won't be able to turn that into a single-line string while continuing to use that syntax. (There is a narrow exception for a single block that contains only a single argument, but your configuration doesn't fit that constraint.)

However, the documentation for TF_ENVIRONMENT says that it also accepts JSON syntax, and so you could potentially use minified JSON to populate that environment variable and thus the result would be only a single-line string.

The documentation …

Replies: 1 comment 3 replies

Comment options

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

@apparentlymart
Comment options

@mardonner
Comment options

Answer selected by mardonner
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