Skip to content

Instantly share code, notes, and snippets.

View jflasher's full-sized avatar

Joe Flasher jflasher

View GitHub Profile
@jedsundwall
jedsundwall / gist:7b5ea0a33cc3ca0b9764f7090a59858a
Last active October 29, 2019 14:14
Setting up a Public AWS SNS Topic

How to create a publicly-accessible SNS topic that sends messages when objects are added to a public Amazon S3 bucket.

1. Create something within AWS that triggers notifications.

In this case, that's an S3 bucket that is continually updated by the addition of new sensor data. For the purposes of this tutorial, we’ll use s3://noaa-nexrad-level2 – one of our NEXRAD on AWS buckets – as an example.

2. Create an SNS topic and appropriate policy.

The SNS topic should be in the same region as the bucket. It will need to have a policy that allows our S3 bucket to publish to it, and anyone to subscribe to it using Lambda or SQS.