All permissions API gateway integrate SQS, POST returns queue AccessDenied

0

My role has AmazonSQSFullAccess, etc. My queue has Allow permission to everybody all SQS actions.
Using API gateway Service Proxy to integrate SQS queue with path override, POST method always returns
Endpoint response body before transformations: {"Error":{"Code":"AccessDenied","Message":"Access to the resource https://sqs.ap-southeast-2.amazonaws.com/xxxxxxxx/myQueue is denied.","Type":"Sender"}

qimike
asked 6 years ago1486 views
1 Answer
0

Hello,

We might need more data regarding the behavior to correctly gauge what is wrong.

But it might be that API Gateway does not have the appropriate permissions set in its execution role. You might need to provide SQS SendMessage permissions to the role that the API in API Gateway uses.

You might find this third party article useful:
https://dzone.com/articles/creating-aws-service-proxy-for-amazon-sqs

Let us know if this helps!

AWS
answered 6 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions