Files
Packer-Cn/command/test-fixtures
Wilken Rivera dbeeab448a cmd/hcl2_upgrade: Generate variable block for all referenced user input variables (#12136)
Currently the HCL2 upgrade command generates a valid variable block for all variables
within the JSON variables property. However JSON templates in Packer support variable
interpolation for input variables defined within a variable definition file without
it being declared within the variables property. When upgrading a JSON template to HCL2
the user variable reference gets converted to var.<var_name>. The upgraded template ultimately
fails on validation or build execution with undefined variable errors, with this change the upgrade
command will now create a variable block for all input variables referenced within the build template
to ensure all required variables been defined.
2022-11-30 15:25:25 -05:00
..
2020-10-02 10:49:21 +02:00
2020-09-01 15:28:16 +02:00
2019-04-08 20:09:21 +02:00
2020-09-01 11:59:07 +02:00