Created
April 8, 2020 04:10
-
-
Save ywauto83/e19c6933ff6f9a9c7ffc5ac6e9eb2fca to your computer and use it in GitHub Desktop.
StepFunction-task-SNS
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 characters
| { | |
| "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