Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.
/ awslambdarpc Public archive
forked from blmayer/awslambdarpc

Small utility to make RPC requests to a locally running AWS Lambda, for development purposes

License

Notifications You must be signed in to change notification settings

chchaffin/awslambdarpc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awslambdarpc

Build Status Go Reference

Small utility to make RPC requests to a locally running AWS Lambda, for development purposes.

Installing

Run go get github.com/chchaffin/awslambdarpc.

Using

You need a running lambda, let's say in your computer port 3000, then to make a request to it, run:

awslambdarpc -a localhost:3000 -d '{"body": "Hello World!"}'.

Options

You can specify an input event to your lambda in 2 ways:

  • Pointing to a JSON file
  • Writing the JSON as an argument

For pointing to a file use the -e or --event option, e.g.:

awslambdarpc -a localhost:3000 -e example.json,

and passing the input directly is done with the -d or --data option, such as:

awslambdarpc -a localhost:3000 -d '{"body": "Hello World!"}'.

There is also the -h or --help flags that will give you further explanation.

Why?

I couldn't setup a debugger using go and aws-sam-cli, so this way I could just compile the binary for my function, attach the debugger on it and run this utility.

About

Small utility to make RPC requests to a locally running AWS Lambda, for development purposes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%