You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The yamlencode function returns a string, which is then displayed by terraform output as a heredoc because it has multiple lines. We changed the format of terraform output in 0.14 to make it clearer what type values were, and to allow the output value to be used directly in HCL.
It sounds like you're trying to use this output in an automated setting, where the heredoc markers make this difficult. We do not support using the terraform output text UI in automation, and instead suggest using the stable JSON output. For example:
$ terraform output -json yaml | jq -r"foo": "bar"
In an upcoming 0.14 patch release we are also adding a -raw flag to terraform output, which would also be an option here:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked as resolved and limited conversation to collaborators
Jan 11, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
Output valid yaml as previous Terraform versions do.
Actual Behavior
Steps to Reproduce
terraform init
terraform apply
terraform output yaml
Additional Context
References
The text was updated successfully, but these errors were encountered: