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