Nitroglycerin Pickle Machine

    serverless-deployment-group-plugin

    1.0.4 • Public • Published

    Serverless Deployment Group

    NPM version node JavaScript Style Guide Coverage Status Node.js CI

    Serverless Deployment Group is a plugin that allows to select which functions are to be deployed based on an aggrupation variable.

    Documentation

    Setup

    First, you have to set serverless-deployment-group-plugin plugin by running:

    serverless plugin install --name serverless-deployment-group-plugin
    

    This will install the required npm package and add the plugin to your serverless.yml file.

    ...
     
    plugins:
      - serverless-deployment-group-plugin
     
    ...

    Requirements

    • Package versions:

      • node: >= 8.0.0
      • npm: >= 1.64.0
      • serverless: >= 1.34
    • Warnings:

      • If deployment-group option is present in deploy command, this plugin removes those functions in node functions (in serverless.yml) which don't match with selected groups.

    Usage

    • Add an aggrupation name (deployment-group) for one or more functions:
    ...
     
    functions:
      function1:
          deployment-group: group_A
          handler: index.handler
          name: function1
     
      function2:
          deployment-group: group_A
          handler: index.handler
          name: function1
     
      function3:
          deployment-group: group_B
          handler: index.handler
          name: function1
     
    ...
    • Run deploy command sls deploy --deployment-group group_A.

    • Functions will be deployed based on your selection group. In this example: function1 and function2.

    License

    MIT

    Install

    npm i serverless-deployment-group-plugin

    DownloadsWeekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    7.66 kB

    Total Files

    6

    Last publish

    Collaborators

    • ftormo