Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.46 KB

File metadata and controls

54 lines (37 loc) · 1.46 KB

Lambda Function URLs with Python

Key Value
Services Lambda
Integrations AWS CLI, Terraform
Categories Serverless; REST API

Introduction

A demo application illustrating how to create a Python Lambda function with a function URL using LocalStack. Lambda function URLs provide a dedicated HTTP(S) endpoint for invoking a Lambda function directly without an API Gateway.

Prerequisites

Check prerequisites

make check

Installation

make install

Start LocalStack

export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start

Run the application

make run

The script:

  • Packages the Lambda function with its dependencies.
  • Creates the Lambda function in LocalStack.
  • Configures a function URL with no authentication.

License

This code is available under the Apache 2.0 license.