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.