-
Notifications
You must be signed in to change notification settings - Fork 30
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
Does not support dev_overrides
#84
Comments
Hi @skyzyx, Thank you for reporting the issue! If I understand correctly, the syntax of .terraformrc is invalid as the HCL2 because an argument name ( The error comes from the HCL2 parser here: I was curious how Terraform parses the .terraformrc and found that the dev_overrides block was decoded as a map object using the low-level HCL1 API. The HCL1 is the legacy syntax used before Terraform v0.12 that allowed a block to be interpreted as a map depending on the application schema, which is not allowed in HCL2. I don't know why such a legacy one is still used after Terraform v0.12, but I assume it is due to some historical reason or technical constraint. The hcledit supports only HCL2 and cannot parse invalid files as HCL2. |
I didn't realize that Terraform core was falling back to HCL1 to parse this, as this is the current syntax published in the official docs. Thank you for taking a look. |
However, the official docs say to quote the attribute name.
https://developer.hashicorp.com/terraform/cli/config/config-file#development-overrides-for-provider-developers
The text was updated successfully, but these errors were encountered: