{"id":24995226,"url":"https://github.com/habx/aws-mq-cleaner","last_synced_at":"2025-04-12T04:10:40.895Z","repository":{"id":36981205,"uuid":"248184841","full_name":"habx/aws-mq-cleaner","owner":"habx","description":"Clean aws sns/sqs","archived":false,"fork":false,"pushed_at":"2023-01-08T22:18:47.000Z","size":820,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-03-25T23:41:44.811Z","etag":null,"topics":["aws","golang","sns","sqs"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/habx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-18T09:11:31.000Z","updated_at":"2023-03-15T17:14:08.000Z","dependencies_parsed_at":"2023-01-17T11:16:55.029Z","dependency_job_id":null,"html_url":"https://github.com/habx/aws-mq-cleaner","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/habx%2Faws-mq-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/habx%2Faws-mq-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/habx%2Faws-mq-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/habx%2Faws-mq-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/habx","download_url":"https://codeload.github.com/habx/aws-mq-cleaner/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514221,"owners_count":21116903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","golang","sns","sqs"],"created_at":"2025-02-04T15:34:35.821Z","updated_at":"2025-04-12T04:10:40.804Z","avatar_url":"https://github.com/habx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-mq-cleaner\n\n[![codecov](https://codecov.io/gh/habx/aws-mq-cleaner/branch/dev/graph/badge.svg?token=376464GH1H)](https://codecov.io/gh/habx/aws-mq-cleaner)\n[![Release](https://img.shields.io/github/v/release/habx/aws-mq-cleaner)](https://github.com/habx/aws-mq-cleaner/releases/latest)\n[![Go version](https://img.shields.io/github/go-mod/go-version/habx/aws-mq-cleaner/dev)](https://golang.org/doc/devel/release.html)\n[![Docker](https://img.shields.io/docker/pulls/habx/aws-mq-cleaner)](https://hub.docker.com/r/habx/aws-mq-cleaner)\n[![CircleCI](https://img.shields.io/circleci/build/github/habx/aws-mq-cleaner/dev)](https://app.circleci.com/pipelines/github/habx/aws-mq-cleaner)\n[![License](https://img.shields.io/github/license/habx/aws-mq-cleaner)](/LICENSE)\n\n## About\n\n`aws-mq-cleaner` is a tool to remove unused SQS queues and SNS topics.\n\n### Deletion method\n\n#### SQS\n\nWe're getting the metrics from Cloudwatch.\nIf `NumberOfMessagesReceived` and `NumberOfEmptyReceipts` are set to zero, we're considering the queue to be unused.\n\n#### SNS\n\nIf `subscriptionsConfirmed` and `subscriptionsPending` are at zero, we're considering the topic to be unused.\n\n\u003e **_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](docs/aws-mq-cleaner.md). The tag format shall be in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601).\n\n\n## Install\n\n### Docker\n\n```bash\ndocker pull habx/aws-mq-cleaner\ndocker container run --rm habx/aws-mq-cleaner --help\n```\n\n### Binary\n\n#### MACOS\n\nSet VERSION\n\n```bash\nVERSION=vx.x.x wget https://github.com/habx/aws-mq-cleaner/releases/download/${VERSION}/aws-mq-cleaner_darwin_amd64.gz\n```\n\n#### LINUX\n\n```bash\nVERSION=vx.x.x wget https://github.com/habx/aws-mq-cleaner/releases/download/${VERSION}/aws-mq-cleaner_linux_amd64.gz\n```\n\n### go source\n\n```bash\ngo get -t github.com/habx/aws-mq-cleaner\naws-mq-cleaner --help\n```\n\n## Docs\n\n[Docs](docs/aws-mq-cleaner.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhabx%2Faws-mq-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhabx%2Faws-mq-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhabx%2Faws-mq-cleaner/lists"}