An open API service indexing awesome lists of open source software.

https://github.com/ziggy42/ontopic

Display SNS messages on your terminal
https://github.com/ziggy42/ontopic

aws aws-sns aws-sqs cli sns sqs

Last synced: 5 months ago
JSON representation

Display SNS messages on your terminal

Awesome Lists containing this project

README

          

![Node.js CI](https://github.com/ziggy42/ontopic/workflows/Node.js%20CI/badge.svg)
[![NPM version](https://img.shields.io/npm/v/ontopic.svg)](https://www.npmjs.com/package/ontopic)

# ontopic

`ontopic` let's you listen to [SNS](https://aws.amazon.com/sns) notifications from your command line.
It does so by creating an [SQS](https://aws.amazon.com/sqs) queue subscribed to the topic and polling it.
Before the process exits the created resources are removed.

![Demo](.github/demo/demo.gif)

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

## Installation
```
npm install -g ontopic
```

## Usage
Basic usage:
```
ontopic
```

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.
```