Coder Social home page Coder Social logo

jupitermandy / node-hello-aws-sns-sqs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexanderjamesking/node-hello-aws-sns-sqs

0.0 2.0 0.0 116 KB

Example of publishing to SNS topic and consuming SQS queue using aws-sdk-js

JavaScript 100.00%

node-hello-aws-sns-sqs's Introduction

aws-sdk-js SQS SNS example

Very basic Node.js example to publish to SNS topic and consume via SQS queue.

AWS Admin Console

  1. Set up SNS Topic
  2. Set up SQS Queue
  3. Subscribe the Queue to the SNS Topic
  4. Set up IAM User and give the user access to SNS and SQS
  5. Create and download the IAM User credentials

Running locally

  1. Update credentials in config.json
  2. Update TopicArn in publishToSNSTopic.js
  3. Update QueueUrl in receiveMessageFromSQSQueue.js
  4. Install dependencies
npm install
  1. Publish a message to the topic
node publishToSNSTopic.js
  1. Check it appears in the list of messsages in SQS queue (AWS Admin Console)
  2. Receive the message then delete
node receiveMessageFromSQSQueue.js

node-hello-aws-sns-sqs's People

Contributors

alexanderjamesking avatar

Watchers

James Cloos avatar Jupiter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.