Subject: | associate_address doesn't work for VPC IPs |
Date: | Wed, 21 May 2014 23:42:43 +0400 |
To: | <bug-VM-EC2 [...] rt.cpan.org> |
From: | Andrey Antonov <a.antonov [...] worldproltd.com> |
Hello,
I use VM::EC2 1.25 on my VPC EC2 instance. How to reproduce bug:
use VM::EC2;
use VM::EC2::Instance::Metadata;
my $meta = VM::EC2::Instance::Metadata->new();
my $ec2 = VM::EC2->new(
'-access_key' => '...',
'-secret_key' => '...',
'-raise_error' => 1,
);
my ($instance) = $ec2->describe_instances('-instance_id' =>
[$meta->instanceId]);
$instance->associate_address('my_vpc_public_ip_address');
Script crashes with the following error:
[InvalidParameterCombination] You must specify an allocation id when
mapping an address to a VPC instance, at API call 'AssociateAddress'
--
Best regards,
Andrey Antonov