How to convert yaml variable file for terraform to native hcl tfvars
How to convert yaml variable file for terraform to native hcl tfvars
If there is ever a need to convert yaml variable file for terraform to native hcl tfvars, one can use this command.
1
2
brew install json2hcl
cat data/prod/root.yaml| yq -ojson | jq .azure_secret_engines | json2hcl
This post is licensed under CC BY 4.0 by the author.
