Sign inSign up

ytoune/amazonlinux-nodejs-for-aws-lambda

By ytoune

Updated over 6 years ago

Image
0

1.3K

ytoune/amazonlinux-nodejs-for-aws-lambda repository overview

example script to deploy
set -Ceu

# you can use yarn
yarn
yarn build

mkdir deploy
# you can use zip
for d in $(ls -1 dist); do zip -j deploy/$d.zip dist/$d/index.js; done

# you can use aws-cli
aws cloudformation package --template-file template.yaml --s3-bucket ${BUCKET_NAME} --output-template-file packaged.yaml
aws cloudformation deploy --template-file packaged.yaml --stack-name ${STACK_NAME}

aws apigateway put-rest-api --rest-api-id ${REST_API_ID} --mode overwrite --body file://swagger.yaml
aws apigateway create-deployment --rest-api-id ${REST_API_ID} --stage-name ${REST_API_STAGE_NAME}

rm -rf deploy

Tag summary

Content type

Image

Digest

Size

234.1 MB

Last updated

over 6 years ago

docker pull ytoune/amazonlinux-nodejs-for-aws-lambda