serverless-plugin-upload-s3

1.2.1 • Public • Published

serverless-plugin-upload-s3

Serverless plugin to upload files to s3.

Usage Example

serverless.yml

service: sample

plugins:
  - serverless-plugin-upload-s3

custom:
  filesToUpload:
    - fileName: foo.jar
      localPath: target/foo.jar
      s3Bucket: bucket1
    - fileName: bar-readme.md
      localPath: docs/readme.md
      s3Bucket: bucket2

The above example will result in target/foo.jar being uploaded to s3://bucket1/foo.jar and docs/readme.md uploaded to s3://bucket2/bar-readme.md.

To only upload files to S3 without taking any other Serverless actions, you can run:

s3-upload upload --stage my-stage

E.g.

npm run sls -- s3-upload upload --stage my-stage

NoDeploy

If the --noDeploy command-line option is specified, this plugin does not attempt to upload anything to S3.

Package Sidebar

Install

npm i serverless-plugin-upload-s3

Weekly Downloads

558

Version

1.2.1

License

MIT

Unpacked Size

3.97 kB

Total Files

4

Last publish

Collaborators

  • neverendingqs
  • dbrinn
  • donbrinn