Sha256: fdd2b5cefed7854c2e12e181a0fc76964d4b619cf3740cef51a5288da6f8588a

Contents?: true

Size: 1.96 KB

Versions: 16

Compression:

Stored size: 1.96 KB

Contents

{
  "Comment": "An example of the Amazon States Language using a choice state.",
  "StartAt": "FirstState",
  "States": {
    "FirstState": {
      "Type": "Task",
      "Resource": "docker://docker.io/agrare/hello-world:latest",
      "Credentials": {
        "mysecret": "dont tell anyone"
      },
      "Retry": [
        {
          "ErrorEquals": [ "States.Timeout" ],
          "IntervalSeconds": 3,
          "MaxAttempts": 2,
          "BackoffRate": 1.5
        }
      ],
      "Catch": [
        {
          "ErrorEquals": [ "States.ALL" ],
          "Next": "FailState"
        }
      ],
      "Next": "ChoiceState"
    },

    "ChoiceState": {
      "Type" : "Choice",
      "Choices": [
        {
          "Variable": "$.foo",
          "NumericEquals": 1,
          "Next": "FirstMatchState"
        },
        {
          "Variable": "$.foo",
          "NumericEquals": 2,
          "Next": "SecondMatchState"
        },
        {
          "Variable": "$.foo",
          "NumericEquals": 3,
          "Next": "SuccessState"
        }
      ],
      "Default": "FailState"
    },

    "FirstMatchState": {
      "Type" : "Task",
      "Resource": "docker://docker.io/agrare/hello-world:latest",
      "Next": "PassState"
    },

    "SecondMatchState": {
      "Type" : "Task",
      "Resource": "docker://docker.io/agrare/hello-world:latest",
      "Next": "NextState"
    },

    "PassState": {
      "Type": "Pass",
      "Result": {
        "foo": "bar",
        "bar": "baz"
      },
      "ResultPath": "$.result",
      "Next": "WaitState"
    },

    "WaitState": {
      "Type": "Wait",
      "Seconds": 1,
      "Next": "NextState"
    },

    "FailState": {
      "Type": "Fail",
      "Error": "FailStateError",
      "Cause": "No Matches!"
    },

    "SuccessState": {
      "Type": "Succeed"
    },

    "NextState": {
      "Type": "Task",
      "Resource": "docker://docker.io/agrare/hello-world:latest",
      "Secrets": ["vmdb:aaa-bbb-ccc"],
      "End": true
    }
  }
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
floe-0.15.1 examples/workflow.asl
floe-0.15.0 examples/workflow.asl
floe-0.14.0 examples/workflow.asl
floe-0.13.1 examples/workflow.asl
floe-0.13.0 examples/workflow.asl
floe-0.12.0 examples/workflow.asl
floe-0.11.3 examples/workflow.asl
floe-0.11.0 examples/workflow.asl
floe-0.10.0 examples/workflow.asl
floe-0.9.0 examples/workflow.asl
floe-0.7.1 examples/workflow.asl
floe-0.8.0 examples/workflow.asl
floe-0.7.0 examples/workflow.asl
floe-0.6.1 examples/workflow.asl
floe-0.6.0 examples/workflow.asl
floe-0.5.0 examples/workflow.asl