Reputation: 10813
I'm looking for a way to listen arbitrarily to my SNS Topic, and in parallel trigger a SNS message from my code base. Next I need to test if that message was sent correctly.
code-that-listens-and-exits-when-it-gets-hello-world-message
aws sns publish --topic-arn arn:aws:sns:ap-southeast-1:123456789:hello --message "Hello World!"
I find plenty of information how to subscribe to a topic from the CLI, but I am puzzled how to actually listen or test for the event coming through the topic. Which protocol should I be using? I don't want to go down the route of checking a subscribed email endpoint contains the message in the inbox.
Upvotes: 3
Views: 5295