A mock ALB for invoking AWS Lambda over HTTP
1.7K
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
Read the full typedoc documentation: https://djfdyuruiry.github.io/lambda-alb/
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
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
Content type
Image
Digest
Size
40.1 MB
Last updated
over 6 years ago
docker pull djfdyuruiry/lambda-alb