Subject: | Unable to call run_instances with BlockDeviceMapping parameters |
Date: | Sun, 17 Apr 2016 21:02:46 -0400 |
To: | bug-Net-Amazon-EC2 [...] rt.cpan.org |
From: | Brian O'Neill <oneill [...] oinc.net> |
I am trying to create an instance which has available two ephemeral
instance stores, but I can't figure out how to do it. My code is currently:
my $newinstance = $ec2->run_instances(
MinCount => 1,
MaxCount => 1,
ImageId => $ami,
KeyName => $keyname,
SecurityGroupId => \@securitygroupids,
UserData => $userdata,
InstanceType => $instancetype,
#Placement.AvailabilityZone => $avzone,
SubnetId => $subnetid,
PrivateIpAddress => $newsimip,
BlockDeviceMapping.VirtualName => ['ephemeral0','ephemeral1'],
BlockDeviceMapping.DeviceName => ['/dev/sdd','/dev/sde'],
);
But when I run it, I get the error:
The following parameter was passed in the call to
Net::Amazon::EC2::run_instances but was not listed in the validation
options: BlockDeviceMappingVirtualName
I can see in the code that it is supposed to take the VirtualName and
DeviceName attributes, and turn them in to
BlockDeviceMapping.1.VirtualName
BlockDeviceMapping.1.DeviceName
etc., but it does not appear like it is doing that.
I'm also wondering of the API may have changed - it currently describes
the parameter as:
BlockDeviceMapping.N
The block device mapping.
Type: BlockDeviceMapping list
Required: No