【问题标题】:Unable to hit AWS SQS api from postman无法从邮递员访问 AWS SQS api
【发布时间】:2018-07-12 08:55:28
【问题描述】:

我正在尝试通过使用 Postman 访问他们的 api 在 SQS 中创建一个队列。我已经创建了 IAM 帐户并生成了与用户对应的密钥。尽管如此,我仍然收到拒绝访问错误。以下是我试图点击的发布请求

https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue/
?Action=CreateQueue
&QueueName=MyQueue
&Attribute.1.Name=DelaySeconds
&Attribute.1.Value=45
&Expires=2020-12-20T22%3A52%3A43PST
&Version=2012-11-05
&AUTHPARAMS

我已输入正确的 accessKey 和 secretKey 组合以及所有其他必填字段。我收到了错误

<AccessDeniedException>
<Message>Unable to determine service/operation name to be 
 authorized</Message>
</AccessDeniedException>

他们无法在 SQS 上公开队列。尝试任何不同的方法都会有同样的反应。任何线索都会有所帮助。提前致谢

【问题讨论】:

    标签: postman amazon-sqs


    【解决方案1】:

    我认为您应该从 URL 中删除“MyQueue/”。正确的代码应如下所示:

    https://sqs.us-east-2.amazonaws.com/
    ?Action=CreateQueue
    &QueueName=MyQueue
    &Attribute.1.Name=VisibilityTimeout
    &Attribute.1.Value=40
    &Expires=2020-10-18T22%3A52%3A43PST
    &Version=2012-11-05
    &AUTHPARAMS
    

    更多信息:

    https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-08-14
    • 2016-12-04
    • 2020-04-03
    • 2022-10-01
    • 2020-07-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多