-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Variables with type = any are not encoded properly for Terraform 0.12 #1211
Comments
Investigating into this, it looks like terraform does not like the string value being passed in without quotes when I'm not sure there is anything we can do here other than to parse the terraform source for variables and dynamically adjust the conversion logic based on the type, but I am not sure we want to go that far. I am inclined to close this as something we won't address in terragrunt, and unfortunately have to rely on the Could use a second opinion though: @brikis98 what do you think? |
@yorinasub17 Agreed. Should we also open a bug in the Terraform repo? The fact that you wrap strings with quotes sometimes in Terraform seems like an issue that would be best fixed on their end. |
What's the status on this, guys? |
Cost me 2 days. 😔 thanks a lot for the workaround. |
Thanks for the workaround and sorry for this "useless" comment, but since GitHub allows searching for commented issues but not subscribed issues I have to comment to easily find this issue later. |
The error message:
It looks like terragrunt should do JSON encode for all variables, but I am not sure if it is a BC break, or not.
Using terragrunt version v0.23.23 and Terraform 0.12.26.
The workaround, for now, is to know which variables have "type = any" and wrap value with
jsonencode()
.The text was updated successfully, but these errors were encountered: