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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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