https://github.com/stefansundin/go-lambda-invoke
Invoke a Go AWS Lambda function locally
https://github.com/stefansundin/go-lambda-invoke
aws-lambda golang lambda-functions
Last synced: 3 months ago
JSON representation
Invoke a Go AWS Lambda function locally
- Host: GitHub
- URL: https://github.com/stefansundin/go-lambda-invoke
- Owner: stefansundin
- Created: 2020-08-25T00:47:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-02T19:22:20.000Z (about 1 year ago)
- Last Synced: 2025-04-06T22:45:06.567Z (6 months ago)
- Topics: aws-lambda, golang, lambda-functions
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This program lets you easily invoke a Go AWS Lambda function locally and send it an event.
Install by running:
```shell
go install github.com/stefansundin/go-lambda-invoke@latest
```Example usage:
```shell
$ cat event.json | go-lambda-invoke ./mylambdafunction# or:
$ cat event.json | go-lambda-invoke go run mylambdafunction.go
```See [example](example) for a quick example.
The response from the Lambda function is written to stdout. Both stdout and stderr from the Lambda function are written to stderr.
You may also be interested in [go-lambda-gateway](https://github.com/stefansundin/go-lambda-gateway).