1.0.6 • Published 4 years ago

serverless-plugin-orchestrator v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

serverless-plugin-orchestrator

With orchestrator workflows it can be challenging to manage your primary workflow step function document in a format that be used with Fn::Sub. This plugin allows an approach for creating step functions, which will insert replacable components used to work with orchestrator workflows.

Implementing

Install the plugin into the directory your serverless.yml is located

npm install serverless-plugin-orchestrator

Add the decouple plugin to your plugins, and add a custom variable to turn it on

plugins:
    - serverless-plugin-orchestrator

custom:
    fileContent: 
        Fn::Sub:
            - "#catdir(./path/to/file.json)"
            - Step1: "Value from converted template"

The workflow would be setup with properties names "Step:Step Name":"Step Name". This is then used to replace that property with the value from the parameters.

{
    "Comment": "An example workflow which has 1 orchestrator step",
    "StartAt": "Step1Start",
    "States": {
        "Step:Step1": "Step1"
    }
}
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago