-
Notifications
You must be signed in to change notification settings - Fork 60
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
Error converting .tf into .tf.json when there is a variable with a non primitive type #92
Comments
A workaround is to simply remove any line that has a type={complex type} |
That syntax doesn't seem familiar to me, this feels like an HCL2 feature? |
Weirdly enough I kept switching back and forth between this and python-hcl2 and this library worked better for transforming a .tf file into it's json counterpart so I ended up going with it The HCL2 had it's own issue which i references here python-hcl2issues/179 Does HCL not support something like key = value1(value2), because if it does support it it shouldn't add the " " right? |
Basically this is a minimal reconstruction of the issue
variables.tf:
python code
expected output:
Actual output:
The text was updated successfully, but these errors were encountered: