Skip Menu |

This queue is for tickets about the Net-Amazon-EC2 CPAN distribution.

Report information
The Basics
Id: 80407
Status: resolved
Priority: 0/
Queue: Net-Amazon-EC2

People
Owner: Nobody in particular
Requestors: erik [...] zasran.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Amazon requires signature version 2 now
Date: Thu, 25 Oct 2012 22:01:04 -0700
To: bug-Net-Amazon-EC2 [...] rt.cpan.org
From: Erik Steffl <erik [...] zasran.com>

Message body is not shown because it is too large.

On Fri Oct 26 01:01:22 2012, erik@zasran.com wrote: Show quoted text
> Net::Amazon::EC2 version 0.21 > > Seems like Amazon requires signature version 2 now, we suddenly > started to get signature mismatch error. > > We are just testing a fix, if useful we can provide a patch. > > Our change is following specs in > http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/using-query- > api.html > > Pretty much any call to EC2 will generate the error, example: > > #!/usr/bin/perl -w > > use strict; > use Net::Amazon::EC2; > > my($instanceSpecs) = { > 'ImageId' => $cfgHost->{'amiId'}, > 'MinCount' => 1, > 'MaxCount' => 1, > 'KeyName' => $cfgHost->{'KeyName'}, > 'UserData' => encode_base64('some user data'), > 'InstanceType' => 'm1.large', > 'Placement.AvailabilityZone' => 'us-east-1a', > }; > > my($reservationInfo); > eval { > $reservationInfo = $ec2->run_instances($instanceSpecs); > }; > if($@) { > chomp($@); > $l->logdie( > "run_instances error, instance specs [" . > Dumper($instanceSpecs) . "] error [" . Dumper($@) . "]" > ); > } > > # use $reservationInfo here but doesn't get here since it dies
Working on this too.
On Fri Oct 26 01:01:22 2012, erik@zasran.com wrote: Show quoted text
> Seems like Amazon requires signature version 2 now, we suddenly > started to get signature mismatch error.
I just pushed f652b6c0b8aeb7791d35f2541ded93f2c5f9eedf to github which has v2 signatures. I will release to CPAN momentarily.
Released as 0.22