Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

A simple boilerplate for Node base AWS Lambdas

License

Notifications You must be signed in to change notification settings

hellofiremind/aws-lambda-node-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS lambda node boilerplate

A simple boilerplate for node base AWS lambdas that packages up your code without including aws-sdk.

What does it do?

It sets up a nice and easy way to write some nice ES6 code for your lambda and package it up in a nice and efficient way.

Why does this matter?

There are a few faux-pas people make when writing Node lambdas such as including the aws-sdk when deploying and such.

The key thing is that you need to stick everything into a .zip file, and the smaller that zip file the better, because when your lambda gets invoked, that zip needs to be copied from S3 into the runtime env; so a smaller zip = faster invoke time.

What's included?

  • Testing with Ava (coverage with NYC)
  • Packaging with Webpack
  • Babel plugins (Lodash cherry picking in this case)

Can I test invocation locally?

Sure, edit invoke.js.

About

A simple boilerplate for Node base AWS Lambdas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published