"ami_root_device": { "delete_on_termination": true, "device_name": "/dev/xvda", "volume_size" : 80, "volume_type": "gp2", "source_device_name": "/dev/xvdn" },
* unknown configuration key: "ami_root_device.snapshot_id"
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/9629f436-2277-4a71-b4a1-0e4e2b5db1c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"launch_block_device_mappings": [ { "device_name": "/dev/xvdn", "snapshot_id": "snap-069e44139fea1ae25", "delete_on_termination": true,
"volume_size": 80, "volume_type": "gp2" } ],
"ami_root_device": { "delete_on_termination": true, "device_name": "/dev/xvdn",
"volume_size" : 80, "volume_type": "gp2", "source_device_name": "/dev/xvdn" },
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTxvdn 202:208 0 80G 0 disk└─xvdn1 202:209 0 80G 0 part /xvda 202:0 0 8G 0 disk└─xvda1 202:1 0 8G 0 part
{ "Images": [ { "VirtualizationType": "hvm", "Name": "aws-elasticbeanstalk-amzn-2018.03.0.x86_64-tomcat8java8-hvm-201806212038", "Hypervisor": "xen", "ImageOwnerAlias": "amazon", "SriovNetSupport": "simple", "ImageId": "ami-822671fd", "State": "available", "BlockDeviceMappings": [ { "DeviceName": "/dev/xvda", "Ebs": { "DeleteOnTermination": true, "SnapshotId": "snap-069e44139fea1ae25", "VolumeSize": 8, "VolumeType": "gp2", "Encrypted": false } } ], "Architecture": "x86_64", "ImageLocation": "amazon/aws-elasticbeanstalk-amzn-2018.03.0.x86_64-tomcat8java8-hvm-201806212038", "RootDeviceType": "ebs", "OwnerId": "102837901569", "RootDeviceName": "/dev/xvda", "CreationDate": "2018-06-21T20:40:41.000Z", "Public": true, "ImageType": "machine" } ]}
The issue now is that Packer launches the instance with /dev/xvdn as the root device of the instance and I see /dev/xvda as another attached volume like below:
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/c6eeab34-94df-43d2-8cdd-11dc3a5827a2%40googlegroups.com.