puppetlabs-aws icon indicating copy to clipboard operation
puppetlabs-aws copied to clipboard

Specifying snapshot_id in block device creation doesn't appear to work

Open hundredacres opened this issue 9 years ago • 0 comments
trafficstars

Specifying a snapshot_id in blockdevice creation doesn't appear to work. Code below

device_name => '/dev/xvdf', snapshot_id => 'snap-35274d10', volume_type => 'gp2', volume_size => 4000,

I get the EBS vol created, but not from the snapshot_id passed.

If I omit the volume_size param, I get an error

Error: Parameter block_devices failed on Ec2_instance[host.domain]: block device must include 'volume_size' for ebs volumes at /etc/puppetlabs/code/environments/ec2/modules/bob/manifests/aws/host.pp:20

hundredacres avatar Feb 12 '16 19:02 hundredacres