https://github.com/liamg/lambo
Test your API gateway routed lambdas locally and in CI
https://github.com/liamg/lambo
Last synced: 8 months ago
JSON representation
Test your API gateway routed lambdas locally and in CI
- Host: GitHub
- URL: https://github.com/liamg/lambo
- Owner: liamg
- Created: 2021-10-20T12:03:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-11T20:47:47.000Z (almost 4 years ago)
- Last Synced: 2025-05-07T23:09:02.220Z (8 months ago)
- Language: Go
- Homepage:
- Size: 763 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lambo
Test API Gateway wrapped lambda functions locally.
Lambo can also be used to test API GW lambdas in CI without needing docker-in-docker. It will take all HTTP requests and route them to a local invocation of your lambda function.
It comes after I had great difficulty getting sam-cli working via DinD in CI.
## Usage
### Binary
```bash
lambo --listen-addr 127.0.0.1:3000 ./my-lambda
```
### Docker
```bash
docker run -it -p "3000:3000" -v `pwd`:/app ghcr.io/liamg/lambo:latest /app/my-lambda
```
### Further configuration
```
Usage:
lambo [lambda-path] [flags]
Flags:
-e, --env-var stringArray Add environment variable to expose to the lambda
-h, --help help for lambo
-l, --listen-addr string The server will listen for requests on this address and route them to your local lambda function. (default "127.0.0.1:3000")
-t, --timeout duration Maximum duration to allow a single invocation of the lambda to run for. (default 30s)
```