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 Answer
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
answered 6 months 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