Alexander James King

SNS, SQS and Node.js

November 20, 2013

A simple Node.js example that publishes a message to a SNS topic, then consumes the message using a SQS queue.

Full source code (AWS Credentials omitted)

AWS Console Steps

  1. Set up SNS Topic
  2. Set up SQS Queue
  3. Set permissions on the Queue to allow the topic to publish to it
  4. Subscribe the Queue to the SNS Topic
  5. Set up IAM User and give the user access to SNS and SQS
  6. Create and download the IAM User credentials

Sample code