Amazon Verified Permissions with AWS Lambda

Client SigV4 signed → AWS Lambda Function URL → Amazon Verified Permissions Cedar policies

Deploy an AWS Lambda function URL that authorizes requests with Amazon Verified Permissions Cedar policies, using the caller's IAM identity.

A client sends a SigV4-signed request to an AWS Lambda function URL with AWS_IAM authentication. The function reads the caller's IAM principal from the request context, maps it to a role on the server, and calls the Amazon Verified Permissions IsAuthorized API.
Four Cedar policies (admin, reader, document owner, and a confidential-document deny) make the fine-grained decision. The request body supplies only the action and the resource, never the principal, role, owner or classification.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-verified-permissions/typescript/cdk

Deploy

cd src && npm install && cd ..npm installcdk deploy


Testing

See the README for signed curl requests that show ALLOW and DENY decisions.

Cleanup

cdk destroy

Created by:

Nithin Chandran R

Nithin Chandran R

Technical Account Manager at AWS