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
preguntada hace 6 años1544 visualizaciones
1 Respuesta
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
respondido hace 6 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas