Package #lambda Functions The Easy Way With #npm
▻https://hackernoon.com/package-lambda-functions-the-easy-way-with-npm-e38fc14613ba?source=rss--
Package Lambda Functions the Easy Way with NPMPhoto from ▻https://unsplash.com/@chuttersnapI’ve recently settled on a clever use of npm pack to prep #aws Lambda Functions for deployment. I’d like to tell you how I’m using NPM and why it’s better than Webpack or #serverless Framework.If you’re deploying #javascript to AWS Lambda you’re likely aware there’s more than one way to do it. JavaScript and Serverless do not suffer from a lack of packaging tools. So far I’ve tried:ServerlessServerless + Webpack plugin + BabelSAM + WebpackSAM + NPM (lately)Why I use SAM instead of ServerlessServerless Framework is great if you’re new to the AWS ecosystem, especially CloudFormation. It also manages packaging and deployment of your JavaScript. After some time with Serverless I discovered a few things:I found myself (...)