Just a simple "Meow world" with AWS Lambda functions. Check it out in action at http://twitter.com/_lambda_cat_
This guide will assume basic knowledge of the AWS console & Lambda functions. If you need more information, check out the documentation here: https://aws.amazon.com/documentation/lambda/
Create a new lambda function with the
Basic Edge Lambda Permission
Policy Template set, and set the invocation handler toindex.handler
Create a copy of
config.sample.json
, rename it toconfig.json
, and fill it in with your appropriate AWS credentials.
Run
npm install
to retrieve JS dependencies, then runnpm run zip
to create your deployment package, set your lambda function's code entry type toUpload a .ZIP file
, and then upload the zip file
Add a recurring trigger by clicking on
CloudWatch Events
in theAdd a Trigger
panel. Create a new rule with acron
orrate
expression of your choosing in theSchedule expression
field. Click add.
Be sure to hit
Save
, and you're done!