Salmandabbakuti / aws-sns-essentials

AWS SNS&SQS Setup and workaround repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aws-sns-essentials

AWS SNS Setup and workaround Repository

Pre-requisites:
  1. Create a Topic

Update config.json according to your AWS Credentials

node createTopic.js
  1. Add Subscribers in created Topic
  • Update TopicArn in config.json according to your created AWS SNS service Topic.
node createSubscription.js  #creates subscription in defined topicARN from config.json
  1. Confirm subscription in recieved email
Quick Demo(Publishing):
git clone https://github.com/Salmandabbakuti/aws-sns-essentials.git
cd aws-sns-essentials
npm i
//update config.json in directory.
node publish.js  #Main pub/sub service model -Email Subscriptions

             (OR)
             
cd mobile
//update .env in directory.
npm i
node app.js #mobile notification service irrespective of topic

HTTP(S) Endpoint Subscriptions:

Created Rest Server for subscriptions and Publishing. Checkout instructions in folder http/README.md

About

AWS SNS&SQS Setup and workaround repository

License:Apache License 2.0


Languages

Language:JavaScript 100.0%