Skip to content

Instantly share code, notes, and snippets.

@lotus128
Created April 20, 2020 17:55
Show Gist options
  • Select an option

  • Save lotus128/33b82168ee69fa3016d4e48fbeb9b2b1 to your computer and use it in GitHub Desktop.

Select an option

Save lotus128/33b82168ee69fa3016d4e48fbeb9b2b1 to your computer and use it in GitHub Desktop.
AWS Lambda Node.js deployment npm script
"deploy-update": "zip -r function.zip . -x \".git/*\" -x \".gitignore\" -x \"./node_modules/aws-sdk/*\" -x \"./node_modules/events/\" -x \"./node_modules/ieee754/\" -x \"./node_modules/jmespath/\" -x \"./node_modules/querystring/\" -x \"./node_modules/sax/\" -x \"./node_modules/url/\" -x \"./node_modules/uuid/\" -x \"./node_modules/xml2js/\" && aws lambda update-function-code --function-name ComicPagePublish --zip-file fileb://function.zip"
@lotus128
Copy link
Author

Licensed under CC0-1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment