Skip to content

Instantly share code, notes, and snippets.

@djg07
Created October 30, 2019 00:39
Show Gist options
  • Save djg07/92eb4a8119b7855698f03961ea410882 to your computer and use it in GitHub Desktop.
Save djg07/92eb4a8119b7855698f03961ea410882 to your computer and use it in GitHub Desktop.
{
"Comment":"Transaction Processor State Machine Using SNS",
"StartAt":"ProcessTransaction",
"States":{
"ProcessTransaction":{
"Type":"Pass",
"Next":"BroadcastToSns"
},
"BroadcastToSns":{
"Type":"Task",
"Resource":"arn:aws:states:::sns:publish",
"Parameters":{
"TopicArn":"Replace Me!",
"Message":{
"TransactionId.$":"$.TransactionId",
"Type.$":"$.Type",
"Source": "Step Functions!"
}
},
"End":true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment