mycargus / sam-with-npm

Repo for "Package Lambda Functions The Easy Way With NPM"

Home Page:https://medium.com/@ryan_marsh/package-lambda-functions-the-easy-way-with-npm-e38fc14613ba

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package Lambda Functions with NPM

This repo is the companion to my article on packaging Lambda functions with npm pack.

Try it out

Clone this repository, then:

cd sam-with-npm/hello_world

npm install

npm pack

cd ..

aws s3 mb s3://sam-with-npm

sam package --template-file template.yaml --output-template-file packaged.yaml --s3-bucket sam-with-npm

sam deploy --template-file packaged.yaml --stack-name sam-with-npm --capabilities CAPABILITY_IAM

aws cloudformation describe-stacks --stack-name sam-with-npm --query 'Stacks[].Outputs'

About

Repo for "Package Lambda Functions The Easy Way With NPM"

https://medium.com/@ryan_marsh/package-lambda-functions-the-easy-way-with-npm-e38fc14613ba


Languages

Language:JavaScript 100.0%