Convert HCL2 configuration files to JSON format
Convert HCL2 to JSON
hcl2json
$ hcl2json input.hcl > output.json
$ hcl2json main.tf
$ hcl2json config.hcl | jq '.'