AWS Lambda function URL

Client → AWS Lambda

Create an AWS Lambda function with a function URL using Terraform.

This sample project demonstrates how to create a Lambda Function URL for a Lambda function. You can use Function URLs to create a a dedicated HTTP(S) endpoint for your Lambda function. Use the FunctionEndpointURL when testing your Lambda function.

< Back to all patterns

GitHub icon View this pattern on GitHub


Clone repo

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

Deploy

terraform init && terraform apply --auto-approve


Testing

Use the Terraform Output FunctionURLEndpoint from the terraform apply command to test your Lambda function in a browser or API testing tool.

Cleanup

terraform destroy --auto-approve.

Created by:

Stephen Monaghan

Stephen Monaghan

Solutions Architect, AWS

Follow on LinkedIn