GitXplorerGitXplorer
t

nodejs-aws-lambda-s3

public
10 stars
6 forks
0 issues

Commits

List of commits on branch master.
Unverified
a69825f3c04da514ecf315fd71027acb0b592184

add readme

ttorgeir committed 7 years ago
Unverified
056c21088ea678a3c35dd54c76300efe123bf885

first

ttorgeir committed 7 years ago
Unverified
ca00e0f48adc0a7b16f0e1c9b5249463a556732e

Initial commit

ttorgeir committed 7 years ago

README

The README file for this repository.

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