Skip to content

ziggy42/ontopic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js CI NPM version

ontopic

ontopic let's you listen to SNS notifications from your command line.
It does so by creating an SQS queue subscribed to the topic and polling it. Before the process exits the created resources are removed.

Demo

You must have your AWS account correctly configured on your machine for ontopic to work.

Installation

npm install -g ontopic

Usage

Basic usage:

ontopic <TOPIC_ARN>

For more see --help:

$ ontopic --help
usage: ontopic [-h] [-v] [-r REGION] topicArn

Listen to SNS notifications

Positional arguments:
  topicArn              The SNS Topic ARN to subscribe to.

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -r REGION, --region REGION
                        AWS region to use for the queue. If absent, it will 
                        be set to the environment variable AWS_DEFAULT_REGION,
                        AWS_REGION or defaulted to eu-central-1.

Releases

No releases published

Packages

No packages published