https://www.packer.io/docs/builders/amazon-ebs
Issue 1:
Amazon EBS has no valid parameter "source_device_name" and packer will fail to build any template generated with AmazonEbsSurrogate.
Packer validate output from Packerlicious.AmazonEbsSurrogate fails with
unknown configuration key: '"source_device_name"'
Issue 2:
Packer expects a single ami_root_device and not a list of them. AmazonEbsSurrogate requires the ami_root_device to be a list of BlockDeviceMapping, when outputing packer template from packerlicious AmazonEbsSurrogate, the template fails with:
* 'ami_root_device' expected a map, got 'slice'
List of Changes Proposed
Change prop of AmazonEbsSurrogate to only expect single BlockDeviceMapping on the key ami_root_device and remove the prop source_device_name completely from AmazonEbsSurrogate.
Testing Evidence
packer validate before removing source_device_name
Coverage remained the same at 100.0% when pulling 00151c3f4def2939d85954c0f12ecc3a4321d02d on Pixxle:master into 0d91aa397f27ffa4f57daeeaa8c0e6104cac2cb1 on mayn:develop.
Issue
https://www.packer.io/docs/builders/amazon-ebs Issue 1: Amazon EBS has no valid parameter "source_device_name" and packer will fail to build any template generated with AmazonEbsSurrogate.
Packer validate output from Packerlicious.AmazonEbsSurrogate fails with
unknown configuration key: '"source_device_name"'
Issue 2: Packer expects a single ami_root_device and not a list of them. AmazonEbsSurrogate requires the ami_root_device to be a list of BlockDeviceMapping, when outputing packer template from packerlicious AmazonEbsSurrogate, the template fails with:
* 'ami_root_device' expected a map, got 'slice'
List of Changes Proposed
Change prop of AmazonEbsSurrogate to only expect single BlockDeviceMapping on the key ami_root_device and remove the prop source_device_name completely from AmazonEbsSurrogate.
Testing Evidence
packer validate before removing source_device_name
Before changes:
After changes: