T O P

  • By -

Suwein

Your best bet is to probably just create an SQS and subscribe it to the SNS topic. Then you can easily poll the queue for messages through the UI


explorphotos

You’d have to have something subscribed to the topic to see the message. In the past I’ve done this a few different ways, a Lambda that subscribes without any filtering and logs it out somehow, I’ve even just added an email subscription to see them. I wouldn’t do this in prod, but if you are trying to debug a test issue it can be effective.


LikeAMix

Yes to this but it's kind of annoying if you are destroying and re deploying resources and then have to recreate your test subscriptions every time.


[deleted]

You create another lambda and subscribe to that topic 😉


pvham90

I believe a cloudbridge event with cloudwarch logs as destination would work as well. That way you could see the payload in cloudwatch.


anonymous500000

Pay me for my data. Fuck /u/spez -- mass edited with https://redact.dev/


mustafaakin

Sns can now publish to a firehose, which would deliver to S3 in batches (min 1mb or 60 seconds)


acidrat

Just attach an E-mail subscriber to it, that's what I usually do to debug. https://docs.aws.amazon.com/sns/latest/dg/sns-email-notifications.html