我们正在尝试从具有IAM角色且具有SQS和EC2完全权限的EC2实例运行以下cURL命令。
curl -v https://sqs.us-east-2.amazonaws.com/2775421xxxxx/QueueName -d "Action=SendMessage&Version=2011-10-01&MessageBody=example"
错误
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2011-10-01/">
<Error>
<Detail>
<Type>Sender</Type>
<Code>AccessDenied</Code>
<Message>Access to the resource https://sqs.us-east-2.amazonaws.com/2775421xxxxx/QueueName is denied.</Message>
<Detail/>
</Error>
<RequestId>01a5e8f1-d9df-5b72-a0d4-bb50bf23f04f</RequestId>
</ErrorResponse>
能帮助我们吗。