cipri-p / serverless-package-location-customizer

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

About

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

License:MIT License


Languages

Language:JavaScript 100.0%