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