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 回答
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
已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则