aws-mq-cleaner

command module
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 2 Imported by: 0

README

aws-mq-cleaner

codecov Release Go version Docker CircleCI License

About

aws-mq-cleaner is a tool to remove unused SQS queues and SNS topics.

Deletion method
SQS

We're getting the metrics from Cloudwatch. If NumberOfMessagesReceived and NumberOfEmptyReceipts are set to zero, we're considering the queue to be unused.

SNS

If subscriptionsConfirmed and subscriptionsPending are at zero, we're considering the topic to be unused.

NOTE: You can add a tag to read an "update date" to prevent a topic without subscriptions to be deleted. The tag name is configurable, you can define it via the Docs. The tag format shall be in ISO-8601.

Install

Docker
docker pull habx/aws-mq-cleaner
docker container run --rm habx/aws-mq-cleaner --help
Binary
MACOS

Set VERSION

VERSION=vx.x.x wget https://github.com/habx/aws-mq-cleaner/releases/download/${VERSION}/aws-mq-cleaner_darwin_amd64.gz
LINUX
VERSION=vx.x.x wget https://github.com/habx/aws-mq-cleaner/releases/download/${VERSION}/aws-mq-cleaner_linux_amd64.gz
go source
go get -t github.com/habx/aws-mq-cleaner
aws-mq-cleaner --help

Docs

Docs

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
sns
Package sqs implements the 'aws sns' sub-command.
Package sqs implements the 'aws sns' sub-command.
sqs
Package sqs implements the 'aws sqs' sub-command.
Package sqs implements the 'aws sqs' sub-command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL