Amazon CloudFront Origin Access Control for AWS Lambda Function URL

Amazon CloudFront → AWS Lambda

Shows how to protect AWS Lambda Function URL origins by using CloudFront Origin Access Control to only allow access from designated CloudFront distributions

Amazon CloudFront will use Origin Access Control (OAC) to authenticate access to Lambda Function URLs from their designated CloudFront distributions

< 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/cloudfront-oac-lambda-url-nodejs-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

cdk destroy

Created by:

Thiago Pádua

Thiago Pádua

Senior Partner Solutions Architect, Serverless at Amazon Web Services (AWS)

Follow on LinkedIn