Learn Packer configuration language (HCL2) by example. Convert a Packer JSON configuration template to its formatted HCL2 counterpart. Create images by referring to variable and source blocks.
Use the hcl2_upgrade Packer command to convert a Packer JSON configuration template to its formatted HCL2 counterpart. Then, add a provisioner and post-processor to the HCL2 template.