0 votes
1 view
in AWS by (18.2k points)

How can I get the identity id of the user (logged in by AWS Cognito) that invoked an AWS Lambda function? Do I have to use the SDK on the Lambda function to get the identity id?

1 Answer

0 votes
by (42.5k points)

You can let Cognito/IAM handle the identity validation part, and you can assume that if a user is able to trigger a Lambda function successfully, that will mean he is allowed to do that. In this case, you can manage per-user validation, take a look at whitelisting.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...