Created
October 17, 2018 16:19
-
-
Save pcgeek86/a0c525ba6f8836b4abe03fca3ec42b9c to your computer and use it in GitHub Desktop.
Very basic AWS Step Functions example for user on-boarding workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"StartAt": "HelloWorld", | |
"States": { | |
"HelloWorld": { | |
"Type": "Pass", | |
"Result": "Hello World!", | |
"Next": "ITSupport" | |
}, | |
"ITSupport": { | |
"Type": "Parallel", | |
"Branches": [ | |
{ | |
"StartAt": "ProvisionLaptop", | |
"States": { | |
"ProvisionLaptop": { | |
"Type": "Task", | |
"Resource": "arn:aws:states:us-west-2:676655494252:activity:UserOnboarding-ProvisionLaptop", | |
"End": true | |
} | |
} | |
}, | |
{ | |
"StartAt": "CreateUser", | |
"States": { | |
"CreateUser": { | |
"Type": "Task", | |
"Resource": "arn:aws:states:us-west-2:676655494252:activity:UserOnboarding-CreateUser", | |
"Next": "CreateMailbox" | |
}, | |
"CreateMailbox": { | |
"Type": "Task", | |
"Resource": "arn:aws:states:us-west-2:676655494252:activity:UserOnboarding-CreateMailbox", | |
"End": true | |
} | |
} | |
} | |
], | |
"Next": "SendEmailToManager" | |
}, | |
"SendEmailToManager": { | |
"Type": "Task", | |
"Resource": "arn:aws:states:us-west-2:676655494252:activity:UserOnboarding-SendEmailToManager", | |
"End": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment