Skip to content

Latest commit

 

History

History

lambda-function-urls-python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

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.