Skip to content

Instantly share code, notes, and snippets.

@ywauto83
Created April 8, 2020 04:10
Show Gist options
  • Select an option

  • Save ywauto83/e19c6933ff6f9a9c7ffc5ac6e9eb2fca to your computer and use it in GitHub Desktop.

Select an option

Save ywauto83/e19c6933ff6f9a9c7ffc5ac6e9eb2fca to your computer and use it in GitHub Desktop.
StepFunction-task-SNS
{
"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
}
}
}
Input
---
{
"TransactionId": "abc",
"Type": "PURCHASE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment