https://github.com/lmammino/invok
Command line tool to Invoke Go lambda functions locally
https://github.com/lmammino/invok
aws aws-lambda aws-lambda-golang cli local-development testing
Last synced: 11 months ago
JSON representation
Command line tool to Invoke Go lambda functions locally
- Host: GitHub
- URL: https://github.com/lmammino/invok
- Owner: lmammino
- License: mit
- Created: 2018-11-12T20:11:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-12T20:44:34.000Z (over 7 years ago)
- Last Synced: 2025-05-09T00:52:17.353Z (about 1 year ago)
- Topics: aws, aws-lambda, aws-lambda-golang, cli, local-development, testing
- Language: Go
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# invok
A simple command line tool to Invoke Go lambda functions locally
## Install
From source (you need to have go 1.11 or above installed)
```bash
go get github.com/lmammino/invok
go install github.com/lmammino/invok
```
## Usage
Once you have a lambda running locally on a given port:
```bash
cat someJSONevent.json | invok --host "localhost:1234"
```
Make sure to replace the event file and the host accordingly.
If you just want to test if the lambda is up and running:
```bash
invok --host "localhost:1234" --ping
```
If this command exits with status 0 than the lambda is up and running and reachable
## Contributing
Everyone is very welcome to contribute to this project.
You can contribute just by submitting bugs or suggesting improvements by
[opening an issue on GitHub](https://github.com/lmammino/invok/issues).
## License
Licensed under [MIT License](LICENSE). © Luciano Mammino.