-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I really have no idea what's causing this, but, Amazon is rejecting the signatures produced by Net::Amazon::Signature::V4 for my requests using this module. I'm not sure where the fault lies -- is it with how this is producing header values, or a problem with the parent module?
Anyway, with the local sub-override this works, without it, I get "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details." which is just odd.
my $paws = Paws->new(
config => {
credentials => Paws::Credential::Explicit->new(
access_key => 'YESTHISISBADIAMSORRY',
secret_key => '0123456789012345678901234567890123456789',
)
}
);
use Net::Amazon::Signature::V4;
local *Net::Amazon::Signature::V4::_headers_to_sign = sub {
return qw/host/;
};
my $c = Search::Elasticsearch->new(
trace_to => 'Stderr',
nodes =>
'https://search-thatclustertho.eu-west-1.es.amazonaws.com:443/',
cxn => "AmazonES",
cxn_pool => 'Static::NoPing',
region => 'eu-west-1',
credentials => $paws->config->credentials,
);
Metadata
Metadata
Assignees
Labels
No labels