This plugin simply performs an S3 getObject of the specified files to their respectively defined paths, and then removes the files after the serverless deployment package is created.
npm i --save serverless-plugin-s3-packager
plugins:
- serverless-plugin-s3-packager
custom:
s3files:
- Bucket: "bucket-1"
Key: "path/to/file1"
Dst: "./file1"
- Bucket: "bucket-2"
Key: "path/to/file2"
Dst: "./file2"