Amazon CloudFront to AWS Lambda URLs

CloudFront → Lambda URLs

Front AWS Lambda Function URLs with Amazon CloudFront

An Amazon CloudFront distribution is created that forwards requests to the domain name of the deployed AWS Lambda function URL.
Amazon CloudFront also allows for custom domain names, AWS Web Application Firewall (WAF) and AWS Shield Advanced to protect your endpoint from attacks.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Launch Stack

Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/cloudfront-lambda-url-java

Deploy

sam deploy --guided


Testing

See the GitHub repo for testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Steven Cook

Senior Solutions Architect at AWS.