This is a very simple npm handler running on AWS Lambda.
- Prerequisite: you need to configure your AWS CLI with your developer keys. You also need to create and configure a Lambda role.
export AWS_ACCESS_KEY_ID=[access key]
export AWS_SECRET_ACCESS_KEY=[secret access key]
export AWS_DEFAULT_REGION=us-west-2
export LAMBDA_ROLE_ARN=[lambda role arn]
-
To build the function and create a new Lambda with it, use
make create
. -
To rebuild and update it, use
make update
. -
To invoke the lambda and output the results, use
make run
.