I ran into this issue when using packer in issue mitchellh/packer#1500. When I attempt to create an image from an EBS volume using ec2.CreateImage, it fails with an error like this:
Either snapshot ID or volume size must be provided for: /dev/sdb, /dev/sdc (InvalidBlockDeviceMapping)
Launch an instance using the Ubuntu 14.04 AMI ami-f63b3e9e (the latest ebs:hvm image at the time of me writing) and replace <instance-id> above with your instance.
In an attempt to see if this was an issue with how this was invoked, I tried the same with boto.
I ran into this issue when using packer in issue mitchellh/packer#1500. When I attempt to create an image from an EBS volume using
ec2.CreateImage
, it fails with an error like this:Here's the reproducer code:
Launch an instance using the Ubuntu 14.04 AMI ami-f63b3e9e (the latest ebs:hvm image at the time of me writing) and replace
<instance-id>
above with your instance.In an attempt to see if this was an issue with how this was invoked, I tried the same with boto.
This code works perfectly.