1.2.1 • Published 1 year ago
serverless-plugin-upload-s3 v1.2.1
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: bucket2The 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-stageE.g.
npm run sls -- s3-upload upload --stage my-stageNoDeploy
If the --noDeploy command-line option is specified, this plugin does not attempt to upload anything to S3.