我使用Logstash和基于文件的输入& AWS SQS作为输出。输出logstash配置如下:
output {
sqs {
queue => "my-queue"
access_key_id => "xxx"
secret_access_key => "xyz"
region => "us-east-1"
}
stdout { codec => rubydebug }
}&我在启动Logstash时看到以下错误:
Unable to access SQS queue 'my-queue': 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.
The Canonical String for this request should have been
'POST
/
content-length:95
content-type:application/x-www-form-urlencoded; charset=utf-8
host:sqs.us-east-1.amazonaws.com
user-agent:aws-sdk-ruby/1.65.0 jruby/1.9.3 java
x-amz-content-sha256:4fcf205bdb6d3a91a4c2e3543e6720c8d13b16e8070e7c9bca7e56147fb0b513
x-amz-date:20150908T191848Z
content-length;content-type;host;user-agent;x-amz-content-sha256;x-amz-date
4fcf205bdb6d3a91a4c2e3543e6720c8d13b16e8070e7c9bca7e56147fb0b513'
The String-to-Sign should have been
'AWS4-HMAC-SHA256
20150908T191848Z
20150908/us-east-1/sqs/aws4_request
8a2c2e7b807cefb1f95207a3c700c89ead7796428d39bfb7445d6adc9cbf81b9'
{:level=>:error}如果有人能对此有更多的了解,我会非常感激的。
发布于 2015-10-08 22:02:47
您确定您使用的是正确的AWS Credentials吗?我将创建一个新的access key来确保。
https://stackoverflow.com/questions/32465892
复制相似问题