{"id":13626248,"url":"https://github.com/mercury2269/sqsmover","last_synced_at":"2025-10-21T04:54:47.999Z","repository":{"id":3719088,"uuid":"50146601","full_name":"mercury2269/sqsmover","owner":"mercury2269","description":"AWS SQS Message mover","archived":false,"fork":false,"pushed_at":"2024-06-27T15:11:46.000Z","size":89,"stargazers_count":324,"open_issues_count":14,"forks_count":63,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T14:45:13.152Z","etag":null,"topics":["aws-sqs","cli","golang"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mercury2269.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-22T00:32:43.000Z","updated_at":"2024-06-27T15:11:50.000Z","dependencies_parsed_at":"2024-01-14T07:13:41.123Z","dependency_job_id":"4640b044-b0bc-460b-896d-081e8dcd61db","html_url":"https://github.com/mercury2269/sqsmover","commit_stats":{"total_commits":69,"total_committers":15,"mean_commits":4.6,"dds":0.3913043478260869,"last_synced_commit":"a7221f094cc07e47d6cc05ec09a7a60e220ffce0"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/mercury2269/sqsmover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mercury2269%2Fsqsmover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mercury2269%2Fsqsmover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mercury2269%2Fsqsmover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mercury2269%2Fsqsmover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mercury2269","download_url":"https://codeload.github.com/mercury2269/sqsmover/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mercury2269%2Fsqsmover/sbom","scorecard":{"id":636859,"data":{"date":"2025-08-11","repo":{"name":"github.com/mercury2269/sqsmover","commit":"44fe5abf2b86ef587037b55147c3dce51eed17de"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":6,"reason":"Found 15/25 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/mercury2269/sqsmover/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mercury2269/sqsmover/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/mercury2269/sqsmover/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/mercury2269/sqsmover/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/mercury2269/sqsmover/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/mercury2269/sqsmover/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/mercury2269/sqsmover/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/mercury2269/sqsmover/lint.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.4.0 not signed: https://api.github.com/repos/mercury2269/sqsmover/releases/45688514","Warn: release artifact v0.3.14 not signed: https://api.github.com/repos/mercury2269/sqsmover/releases/26101224","Warn: release artifact v0.3.13 not signed: https://api.github.com/repos/mercury2269/sqsmover/releases/23918635","Warn: release artifact v0.3.12 not signed: https://api.github.com/repos/mercury2269/sqsmover/releases/23905419","Warn: release artifact v0.3.11 not signed: https://api.github.com/repos/mercury2269/sqsmover/releases/23903794","Warn: release artifact v0.4.0 does not have provenance: https://api.github.com/repos/mercury2269/sqsmover/releases/45688514","Warn: release artifact v0.3.14 does not have provenance: https://api.github.com/repos/mercury2269/sqsmover/releases/26101224","Warn: release artifact v0.3.13 does not have provenance: https://api.github.com/repos/mercury2269/sqsmover/releases/23918635","Warn: release artifact v0.3.12 does not have provenance: https://api.github.com/repos/mercury2269/sqsmover/releases/23905419","Warn: release artifact v0.3.11 does not have provenance: https://api.github.com/repos/mercury2269/sqsmover/releases/23903794"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T09:25:58.340Z","repository_id":3719088,"created_at":"2025-08-21T09:25:58.340Z","updated_at":"2025-08-21T09:25:58.340Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279293037,"owners_count":26141655,"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","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-sqs","cli","golang"],"created_at":"2024-08-01T21:02:13.939Z","updated_at":"2025-10-21T04:54:47.958Z","avatar_url":"https://github.com/mercury2269.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# SQS Message Mover\n[![Go Report Card](https://goreportcard.com/badge/github.com/mercury2269/sqsmover)](https://goreportcard.com/report/github.com/mercury2269/sqsmover) ![GitHub](https://img.shields.io/github/license/mercury2269/sqsmover)\n\n`sqsmover` is a tool for moving AWS SQS messages from one queue to another. Useful when you need to move deadletter queue messages back into the original queue.\n\n![sqs-mover-intro](https://user-images.githubusercontent.com/159128/75104229-721d7580-55bb-11ea-9b06-437353a174c0.gif)\n\n\n## Features\n\n* Reliable delivery. SQS Mover will only delete messages from the source queue after they were enqueued to the destination.\n* Receives and sends messages in batches for faster processing.\n* Progress indicator.\n* User friendly info and error messages.\n* Queue name resolution. For ease of use, you only need to provide a queue name and not the full `arn` address.\n* Message attributes copy.\n* Support for FIFO queues. MessageGroupId and MessageDeduplicationId are copied over to the destination messages.\n* An optional flag to limit the number of messages to move.\n\n## Installing\n\nSQS Mover is pre-compiled for macOS, Linux, Windows and does not require additional dependencies. You can install\nthe pre-compiled binary (in several different ways) or compile from source.\n\n**Homebrew**:\n```sh\n$ brew install sqsmover\n```\n\n**Chocolatey (Windows)**\n```sh\n$ choco install sqsmover\n```\n\n**Shell script:**\n\nThe following script will install the binary into `/usr/local/bin`\n\n```sh\n$ curl https://raw.githubusercontent.com/mercury2269/sqsmover/master/install.sh | sh\n```\n\nNote that you may need to run the `sudo` version below, or alternatively chown `/usr/local/bin`:\n```sh\n$ curl https://raw.githubusercontent.com/mercury2269/sqsmover/master/install.sh | sudo sh\n```\n\n**From Source**\n\nDownload:\n```sh\ngit clone git@github.com:mercury2269/sqsmover.git \u0026\u0026 cd sqsmover\n```\n\nRun:\n```sh\nAWS_PROFILE=nbos-ris AWS_REGION=us-west-2 go run main.go --source transactions-dlq --destination transactions\n```\n\n**Manually**:\n\nDownload the pre-compiled binary from the [releases page](https://github.com/mercury2269/sqsmover/releases) and\ncopy to the desired location.\n\n## Set up AWS credentials \n\nSpecifying AWS credentials in either a shared credentials file or environment variables. \n\n### Option 1: Creating the Credentials File\n\nIf you don’t have a shared credentials file (`~/.aws/credentials`), you can use any text editor to create one in your home directory. Add the following content to your credentials file, replacing `\u003cYOUR_ACCESS_KEY_ID\u003e` and `\u003cYOUR_SECRET_ACCESS_KEY\u003e` with your credentials.\n\n```\n[default]\naws_access_key_id = \u003cYOUR_ACCESS_KEY_ID\u003e\naws_secret_access_key = \u003cYOUR_SECRET_ACCESS_KEY\u003e\n```\n\nThe [default] heading defines credentials for the default profile, which the SQSMover will use unless you configure it to use another profile. \n\nOptionally you can configure default region in `~/.aws/config`\n```\n[default]\nregion=us-west-2\n```\n\n### Option 2: Environment variables\n\nAs an alternative, you can setup AWS credentials in the environment variables.\n\nThe following examples show how to configure the environment variables.\n\nLinux, OS X, or Unix\n\n```\nexport AWS_ACCESS_KEY_ID=YOUR_AKID\nexport AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY\n```\nWindows\n\n```\nset AWS_ACCESS_KEY_ID=YOUR_AKID\nset AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY\n```\n\n## Usage\n\n```bash\nsqsmover --help\n\nusage: sqsmover --source=SOURCE --destination=DESTINATION [\u003cflags\u003e]\n\nFlags:\n  -h, --help                     Show context-sensitive help (also try\n                                 --help-long and --help-man).\n  -s, --source=SOURCE            The source queue name to move messages from.\n  -d, --destination=DESTINATION  The destination queue name to move messages to.\n  -r, --region=\"us-west-2\"       The AWS region for source and destination queues.\n  -e, --endpoint=\"https://...\"   Use a specific endpoint in an AWS region. For more information see https://docs.aws.amazon.com/general/latest/gr/sqs-service.html\n  -p, --profile=\"\"               Use a specific profile from AWS credentials file.\n  -l, --limit=0                  Limits total number of messages moved. No limit is set by default.\n  -b, --batch=10                 The maximum number of messages to move at a time.\n  -v, --version                  Show application version.\n```\n\nExamples:\n\nRegion will default to `us-west-2`, you can also override it with `--region` flag\n\n```\nsqsmover --source=my_source_queue_name --destination=my_destination_queuename\nsqsmover --source=my_source_queue_name --destination=my_destination_queuename --region=eu-west-1\n\n-- shorthand\nsqsmover -s my_source_queue_name -d my_destination_queuename -r eu-west-1\n```\n\nProfile will default to `Default`, you can also override it with `--profile` flag\n\n```\nsqsmover --source=my_source_queue_name --destination=my_destination_queuename --profile=user\n```\n\nLimit number of moved messages to 10\n```\nsqsmover -s my_source_queue_name -d my_destination_queuename -l 10\n```\n\nBy default, `sqsmover` will try to move 10 messages at a time. However, if the total size of messages\nin a batch exceeds 256kb (262,144 bytes) you will receive an error: `Batch requests cannot be longer than 262144 bytes. You have sent x bytes.`\nTo resolve, reduce the batch size by setting `-b` flag.\n```\nsqsmover -s my_source_queue_name -d my_destination_queuename -b 3\n```\n\n## Compiling from source\n\nYou will need to have [Golang installed](https://golang.org/doc/install).\n\n```sh\n# clone it outside GOPATH\ngit clone https://github.com/mercury2269/sqsmover\ncd sqsmover\n\n# get dependencies using go modules (needs go 1.11+)\ngo get ./...\n\n# build\ngo build -o sqsmover .\n\n# check it works\n./sqsmover --version\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmercury2269%2Fsqsmover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmercury2269%2Fsqsmover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmercury2269%2Fsqsmover/lists"}