ziggy42 / ontopic

Display SNS messages on your terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Display SNS messages on your terminal

License:Apache License 2.0


Languages

Language:JavaScript 100.0%