Skip to content
✉️ High level interface to configure SQS subscriptions (with permissions) to SNS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json
usage.js

README.md

aws-sns-configure

Field Control ♥ Maintainability

✉️ High level interface to configure SQS subscriptions (with permissions) to SNS

Installation

npm install aws-sns-configure --save-dev

Usage

const snsConfigure = require('./index')
snsConfigure.init({
  accessKeyId: 'XXXXXXXXXXXXXXXXXXX',
  secretAccessKey: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  region: 'sa-east-1'
})

const topic = await snsConfigure.createOrGetSNSTopicByName('topic-name')
await snsConfigure.configureSQSSubscriptionWithPermissions({
  topicArn: topic.TopicArn,
  sqsArn: 'arn:aws:sqs:sa-east-1:XXXXXXXXXXXX:queue-name'
})
You can’t perform that action at this time.