How to pass cognito user information to lambda?
I'm developing application based on API Gateway and Lambda. I configured POST /subscribe as "AWS_IAM". So now it cannot accessible directly, but I can access to API with Cognito authentication. Now problem is my Lambda doesn't know who is the API caller. How to know that? I have 2 users: "Bob" and "John". My Lambda need to know that caller is Bob or John. Thanks, Scott Willeke You can get the Cognito Identity ID from the identity property of the context parameter ( context.identity ) as explained in the context Object Properties section of the Lambda Programming Model help topic . Once you