Skip to content

torgeir/nodejs-aws-lambda-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-aws-lambda-s3

Example repo showing how to use terraform to deploy a node.js aws lambda that handles file uploads from s3

deploy to aws using terraform

  • zip up the lambda
  • create the lambda
  • create an s3 bucket with read only permissions
  • create a lambda execution role, that the lambda takes when running
  • create a lambda policy for the role, that allows the lambda to create log streams and write logs to cloudwatch
  • create an s3 bucket trigger to call the lambda when new objects are created
  • create a permission to allow for s3 to trigger the lambda
npm run aws:deploy

destroy what terraform created

tear down all of the infrastructure that was created when deploying.

npm run aws:destroy

About

Example repo showing how to use terraform to deploy a node.js aws lambda that handles file uploads from s3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published