0.0.27 • Published 7 years ago

simplistic-deployer-for-aws-lambda v0.0.27

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
7 years ago

A script that deploys AWS Lambda functions.

Requirements:

  • AWS CLI should be setup and the configured user should have sufficient permissions to update Lambda functions.
  • Assumes a code structure of:
- node_modules/(npm packages)
- src/(code files)
- index.js

Files outside those listed above are ignored.

Warning

This package is currently experimental and error prone. Use it only if you understand the code.

To install:

npm i -g simplistic-deployer-for-aws-lambda

Then configure:

  1. Create a .deploy.env file in the root of your repository. (This file can be ignored in your version control system). Include the following in this file. Note that the access key and secret access key are optional as the key id and secret access key configured via the aws config AWS CLI command are used by default if these variables are not set in the .deploy.env file.
SD_ZIP_PATH=<Path where the deployment zip file is to be created, can be
relative to the root of your project's repository>
SD_FUNCTION_NAME=<Name of the AWS Lambda function to deploy to>
SD_REGION=<AWS region where the Lambda function is located>
SD_AWS_ACCESS_KEY_ID=<The AWS access key id to use, optional>
SD_AWS_SECRET_ACCESS_KEY=<The AWS secret access key to use, optional>
  1. Deploy the Lambda function by running
deploy-lambda

It is also possible to build the zip file without deploying by running:

zip-lambda
0.0.27

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago