Categorygithub.com/stefansundin/go-lambda-invoke
modulepackage
0.0.0-20240902180033-3a198a46d898
Repository: https://github.com/stefansundin/go-lambda-invoke.git
Documentation: pkg.go.dev

# README

This program lets you easily invoke a Go AWS Lambda function locally and send it an event.

Install by running:

go install github.com/stefansundin/go-lambda-invoke@latest

Example usage:

$ cat event.json | go-lambda-invoke ./mylambdafunction

# or:
$ cat event.json | go-lambda-invoke go run mylambdafunction.go

See 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.