aws-api-gateway

How to pass Cognito User Pool information to Lambda through API Gateway

How to pass Cognito User Pool information to Lambda through API Gateway Question: I have a REST API on API Gateway that is using a Cognito User Pool authorizer, with the API invoking a Lambda function. In the Lambda function I want to be able to use the Cognito User Pool information (e.g. id token, …

Total answers: 2

GoneException when calling post_to_connection on AWS lambda and API gateway

GoneException when calling post_to_connection on AWS lambda and API gateway Question: I want to send a message to a websocket client when it connects to the server on AWS lambda and API gateway. Currently, I use wscat as a client. Since the response ‘connected’ is not shown on the wscat console when I connect to …

Total answers: 5

Format body mapping templates in API Gateway

Format body mapping templates in API Gateway Question: Need your help! I have the below Lambda function that will take inputs from the API Gateway (using RestAPI Post method) and pass the same as Payload to a second Lambda function. def lambda_handler(event, context): customerName = event[‘Name’] customerEmail = event[‘EmailAddress’] input = {"Name": customerName, "EmailAddress": customerEmail} …

Total answers: 2