Created
April 8, 2020 04:10
-
-
Save ywauto83/e19c6933ff6f9a9c7ffc5ac6e9eb2fca to your computer and use it in GitHub Desktop.
Revisions
-
ywauto83 revised this gist
Apr 8, 2020 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -22,3 +22,9 @@ } } Input --- { "TransactionId": "abc", "Type": "PURCHASE" } -
ywauto83 created this gist
Apr 8, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ { "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 } } }