3.3.1 • Published 4 years ago

@nrfcloud/package-lambda v3.3.1

Weekly downloads
92
License
BSD-3-Clause
Repository
github
Last release
4 years ago

package-lambda npm version

semantic-release Commitizen friendly Standard - JavaScript Style Guide

Package a lambda function and upload it to S3

NPM

Usage:

npx @nrfcloud/package-lambda npm <S3 Bucket> <NPM Package>

Example:

% npx @nrfcloud/package-lambda npm cf-lambda-sourcecode @nrfcloud/api-persistence-event-reducer-lambda
npx: installed 129 in 7.202s
Temp dir: /tmp/tmp-6832cnu8vLNSuGuu
running: rm -r /tmp/tmp-6832cnu8vLNSuGuu/@nrfcloud ...
@nrfcloud/api-persistence-event-reducer-lambda 1.0.2
running: npm ci --ignore-scripts --only=prod ...
added 28 packages in 0.605s
running: zip -r -q /tmp/tmp-6832cnu8vLNSuGuu/api-persistence-event-reducer-lambda-1.0.2.zip ./ ...
running: aws s3 cp /tmp/tmp-6832cnu8vLNSuGuu/api-persistence-event-reducer-lambda-1.0.2.zip s3://cf-lambda-sourcecode/api-persistence-event-reducer-lambda-1.0.2.zip ...
upload: ../../../../../tmp/tmp-6832cnu8vLNSuGuu/api-persistence-event-reducer-lambda-1.0.2.zip to s3://cf-lambda-sourcecode/api-persistence-event-reducer-lambda-1.0.2.zip

Local

You can also publish from a local folder.

This command expects:

  • package.json
  • package-lock.json
  • dist/

in the local folder.

Usage:

npx @nrfcloud/package-lambda local <S3 Bucket>

Example:

% npx @nrfcloud/package-lambda local cf-lambda-sourcecode
Temp dir: /tmp/tmp-206396JvbFs6flXBz
running: rm -r /tmp/tmp-206396JvbFs6flXBz/@nrfcloud ...
@nrfcloud/api-persistence-event-reducer-lambda 1.1.2
running: npm ci --ignore-scripts --only=prod ...
added 28 packages in 0.734s
running: zip -r -q /tmp/tmp-206396JvbFs6flXBz/api-persistence-event-reducer-lambda-1.1.2.zip ./ ...
running: aws s3 cp /tmp/tmp-206396JvbFs6flXBz/api-persistence-event-reducer-lambda-1.1.2.zip s3://cf-lambda-sourcecode/api-persistence-event-reducer-lambda-1.1.2.zip ...
upload: ../../../../../tmp/tmp-206396JvbFs6flXBz/api-persistence-event-reducer-lambda-1.1.2.zip to s3://cf-lambda-sourcecode/api-persistence-event-reducer-lambda-1.1.2.zip
3.3.1

4 years ago

3.3.0

4 years ago

3.3.0-rc.6

4 years ago

3.3.0-rc.5

4 years ago

3.3.0-rc.4

4 years ago

3.3.0-rc.3

4 years ago

3.3.0-rc.2

4 years ago

3.3.0-rc.1

4 years ago

3.2.0

4 years ago

3.2.0-rc.2

4 years ago

3.2.0-rc.1

4 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago