After adding additionnal permissions, this authentication code through me a 503 error. It is weird that I could already reach the limit of lambda just after creation.
If anyone is trying this lately, I don't know if something changed in AWS, but I was getting bad gateway from the wscat connection. So I checked cloudwatch and it was giving me this error: Error: Cannot find module 'aws-sdk'". So I installed @aws-sdk/client-apigatewaymanagementapi directly and it fixed the issue. Usage: import { ApiGatewayManagementApiClient, PostToConnectionCommand, } from '@aws-sdk/client-apigatewaymanagementapi' const command = new PostToConnectionCommand({ ConnectionId: id, Data: Buffer.from(JSON.stringify(body)), }) return await client.send(command)
Thank you for this! I like that this doesn't use too many of the other github actions available, but gets straight to the point so we can understand the commands and building blocks of these steps, which will eventually allow us to fish even bigger. Dropped a like, thank you so much!
Hi i m saranya. I have followed the steps you have expalined in the video. But still i was not login to the website it alsways asking for the credentials. How i can solve this??
Why did you make input and output as interfaces instead of classes? I apologize for this basic question, however I am mostly a Java/AWS guy and new to lambda with node/typescript. Thanks for the video.
I have a question please , When a user creates a chat room and adds a members for this chatRoom ,How can we generate connectionId for each member to be able to receive connectionId