GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - blmayer/awslambdarpc: Small utility to make RPC requests to a locally running AWS Lambda, for development purposes

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
client
client
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
awslambdarpc.go
awslambdarpc.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

awslambdarpc

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

Go Report Card Go Reference

Installing

Run go get github.com/blmayer/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

Topics

aws-lambdagolocal-environmentrpc-client

Resources

Readme
MIT license
Activity

Stars

30 stars

Watchers

1 watching

Forks

13 forks
Report repository

Releases

Sponsor this project

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.