API gateway WebSocket to SQS

0

I need to send all messages to SQS from the API gateway through the WebSocket. I have this error

2023-11-08T07:33:12.756+01:00 (OEPCaFsojoEFgJw=) Sending request to https://sqs.eu-west-1.amazonaws.com/account/actions 2023-11-08T07:33:12.758+01:00 (OEPCaFsojoEFgJw=) Received response. Status: 404, Integration latency: 2 ms

I already give access to the role that is used by the API gateway.

  • can you provide a bit more information? from what you provided the URL for the SQS is wrong, it should be https://sqs.eu-west-1.amazonaws.com/{your-account-id}/{your-queue-name}

1 Antwort
0

The following lab can help you in setup API Gateway that connects to SQS which then Lambda reads from and executes code:

https://serverlessland.com/patterns/apigw-websocket-sqs-lambda

AWS
vtjean
beantwortet vor 6 Monaten

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