hcl2_upgrade command for Amazon build template data misses some variables #11920
Labels
command/hcl2_upgrade
hcl2
sync to jira
For issues that need to be imported to Packer internal JIRA backlog
Community Note
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
Hello,
When converting a JSON template to HCL, there's a number of "<no value>" strings for some variables.
The resulting HCL file gives:
Instead of "<no value>", I expect to have the same kind of values as for SourceAMI and SourceAMIName.
Those variables are legit, as per https://www.packer.io/plugins/builders/amazon/ebs#build-template-data and the given Tag Example.
Reference issue that adds those variables: #9750 (fixed by #9751)
Reproduction Steps
Run
packer hcl2_upgrade ami.json
See below for the json content.
Packer version
Packer v1.8.3
Simplified Packer Template
Create a JSON template like this:
Operating system and Environment details
Windows 10 21H2, using PowerShell 5.1 to run Packer
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: