Skip to content

Instantly share code, notes, and snippets.

@pcgeek86
Created October 17, 2018 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcgeek86/a0c525ba6f8836b4abe03fca3ec42b9c to your computer and use it in GitHub Desktop.
Save pcgeek86/a0c525ba6f8836b4abe03fca3ec42b9c to your computer and use it in GitHub Desktop.
Very basic AWS Step Functions example for user on-boarding workflow
{
"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