serverless-package-location-customizer

serverless npm license

A serverless plugin to allow custom S3Bucket and S3Key path when packaging Lambda Functions and Layers

Installation

Install to your Serverless project via npm

$ npm install --save serverless-package-location-customizer

Usage

Add the plugin to your serverless.yml

# serverless.yml
plugins:
- serverless-package-location-customizer

Run serverless package command with the following paramters

  • --s3-bucket name of the deployment bucket
  • --s3-path path to the packaged inside the deployment bucket

Example

serverless package --stage production --s3-bucket my-deployment-packages --s3-path /my-product/v1.2.3-45/