lambda-function-url

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Lambda Function URL

This project provides a way of emulating a Lambda Function URL outside of AWS.

Getting started

Running the Lambda

Start your Lambda in your favourite execution engine (e.g., Kubernetes). Make sure to set the AWS_LAMBDA_RUNTIME_API and _LAMBDA_SERVER_PORT environment variables:

# tcp address that the lambda is running on
export AWS_LAMBDA_RUNTIME_API=localhost
# port that the lambda is running on
export _LAMBDA_SERVER_PORT=8080
Running the gateway

Run this application somewhere close (e.g. as a Kubernetes sidecar), and set the following environment variables:

  • APP_UPSTREAM - TCP address of the Lambda (e.g. localhost:1234)
  • APP_TIMEOUT - Number of seconds after which the request should be cancelled (default: 30).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL