-
Notifications
You must be signed in to change notification settings - Fork 31
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
Nested Objects in Variables #71
Comments
@cfisher440 @minamijoyo did you manage to find a solution? the following query returns rg_tags value:
But this returns an empty string |
@thelumlaa In my case, since the hcledit tool was not working for me, I ended up going a different route. What I did is I created what I wanted the tfvars file to look like in a json format. I then created a Python script that converts a json file to a tfvars file. Here is the script you can use:
|
I'm creating a projects.auto.tfvars file.
I used the following command to create an empty object
hcledit -f test.tf -u attribute append testing '{}'
This successfully creates
testing = {}
But now I'd like to create the following
I tried this with the following command but get no output
hcledit -f test.tf -u attribute append testing.testing2 '{}'
Am I possibly just doing something wrong or is this a feature you'd need to implement into the code?
The text was updated successfully, but these errors were encountered: