Documentation
¶
Overview ¶
awslambdarpc is an utility to make requests to your local AWS Lambda.
This tool is a CLI, and running awslambdarpc help will show your options. It uses the client package for the real interaction with AWS Lambda, you can import and use it if you wish.
Usage:
awslambdarpc [options]
Available options:
-a, --address
the address of your local running function, defaults to localhost:8080
-e, --event
path to the event JSON to be used as input
-d, --data
data passed to the function as input, in JSON format, defaults to "{}"
-l, --execution-limit
maximum execution limit for your handler, expressed as a duration, defaults to 15s
help, -h, --help
show this help
To make a request to a lambda function running at localhost:3000 and passing the contents of a file, events/input.json as payload:
awslambdarpc -a localhost:3000 -e events/input.json
You can do passing the data directly with the -d flag:
awslambdarpc -a localhost:3000 -d '{"body": "Hello World!"}'
Click to show internal directories.
Click to hide internal directories.