Sign inSign up

djfdyuruiry/lambda-alb

By djfdyuruiry

Updated over 6 years ago

A mock ALB for invoking AWS Lambda over HTTP

Image
0

1.7K

djfdyuruiry/lambda-alb repository overview

lambda-alb

A mock ALB using express that enables invoking a lambda locally using HTTP.

It supports multple lambda's mapped to various routes. Can be configured to use either a mock AWS setup, such as localstack, or an actual AWS region.

GitHub Repo: https://github.com/djfdyuruiry/lambda-alb

NPM

Read the full typedoc documentation: https://djfdyuruiry.github.io/lambda-alb/


Quickstart

To use the image:

  • Place a config.json file in the current directory containing your setup

  • Run the below commands:

    dokcer run --rm -v $(pwd):/etc/lambda-alb -p 8080:8080 djfdyuruiry/lambda-alb
    

    Don't forget to pass your AWS credentials in as environment variables, or mount a volume to supply a credentials file. See here for more info.

  • You can now access your lambda-alb on http://localhost:8080

docker-compose

If you are using docker-compose it's very simple to add lambda-alb to your stack:

version: "3"

services:
  alb:
    image: djfdyuruiry/lambda-alb.git
    ports:
      - 8080:8080
    volumes:
      - ${PWD}/config.json:/etc/lambda-alb/config.json

Tag summary

Content type

Image

Digest

Size

40.1 MB

Last updated

over 6 years ago

docker pull djfdyuruiry/lambda-alb