serverless-plugin-invoke-deployment

1.1.1 • Public • Published

Serverless Plugin Invoke Deployment

This Plugin used to invoke automatically function after deployment.

Installation

Install with npm:

npm install --save-dev serverless-plugin-invoke-deployment

And then add the plugin to your serverless.yml file:

plugins:
  - serverless-plugin-invoke-deployment

Alternatively, install with the Serverless plugin command (Serverless Framework 1.22 or higher):

sls plugin install -n serverless-plugin-invoke-deployment

Usage

In the function definition add invokeAfterDeploy: true

functions:
  hello:
    handler: handler.hello
    invokeAfterDeploy: true

if want use input param (payload) can use detail for invokeAfterDeploy

functions:
  hello:
    handler: handler.hello
    invokeAfterDeploy:
      enabled: true
      payload:
        varA : varA
        varB : 20
        varObject:
          object1 : a
          object2 : 1
        varArray:
          - a
          - b

License

MIT license.

Package Sidebar

Install

npm i serverless-plugin-invoke-deployment

Weekly Downloads

4

Version

1.1.1

License

MIT

Unpacked Size

21.6 kB

Total Files

10

Last publish

Collaborators

  • septiyan.andika