I’m preparing to convert our packer automations from JSON-> HCL. Yes I understand I’m a bit behind the times. When I try to input a variable file (which is still in JSON format) none of the commands work.
Example: packer validate -var-file=packer-vars.json packer-build-.pkr.hcl
It acts like I used --help and doesn’t try to validate the file. Can JSON based variables only be used with JSON formatted templates? Do I need to just make them all locals?