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
gefragt vor 6 Jahren1544 Aufrufe
1 Antwort
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
beantwortet vor 6 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen