aws-rotate-key
brew install aws-rotate-key
v1.2.0
MIT
Easily rotate your AWS access key
9
30-day installs · #8804
29
90-day · #8708
875
365-day · #4044
385
★ GitHub stars · updated 1y ago
Build dependencies
GitHub topics
aws
cli
security-tools
Links
- https://github.com/stefansundin/aws-rotate-key
- GitHub: stefansundin/aws-rotate-key
- Brew formula source: Formula/a/aws-rotate-key.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"go"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Easily rotate your AWS access key",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:35:41+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "aws-rotate-key",
"github_default_branch": "main",
"github_last_commit_at": "2024-10-07T06:06:37Z",
"github_readme_excerpt": "# aws-rotate-key\n\nAs a security best practice, AWS recommends that users periodically\n[regenerate their API access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html#Using_RotateAccessKey).\nThis tool simplifies the rotation of access keys defined in your\n[credentials file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html).\n\nWhen run, the program will list the current access keys associated with your\nIAM user, and print the steps it has to perform to rotate them.\nIt will then wait for your confirmation before continuing.\n\n## Usage\n\n```\n$ aws-rotate-key --help\nUsage of aws-rotate-key:\n -auth-profile string\n \tUse a different profile when calling AWS.\n -d\tDelete the old key instead of deactivating it.\n -mfa\n \tUse MFA.\n -mfa-serial-number string\n \tSpecify the MFA device to use. (optional)\n -profile string\n \tThe profile to use. (default \"default\")\n -version\n \tPrint version number\n -y\tAutomatic \"yes\" to prompts.\n```\n\n## Example\n\n```\n$ aws-rotate-key --profile work\nUsing access key AKIAJMIGD6UPCXCFWVOA from profile \"work\".\nYour user ARN is: arn:aws:iam::123456789012:user/your_username\n\nYour user has 2 access keys:\n- AKIAI3KI7UC6BPI4O57A (Inactive, created 2018-11-22 21:47:46 +0000 UTC, last used 2018-11-30 20:35:41 +0000 UTC for service s3 in us-west-2)\n- AKIAJMIGD6UPCXCFWVOA (Active, created 2018-11-30 21:55:57 +0000 UTC, last used 2018-12-20 12:14:10 +0000 UTC for service s3 in us-west-2)\n\nYou have two access keys, which is the maximum number of access keys allowed.\nDo you want to delete AKIAI3KI7UC6BPI4O57A and create a new key? [yN] y\nDeleted access key: AKIAI3KI7UC6BPI4O57A\nCreated access key: AKIAIX46CKYT7E5I3KVQ\nWrote new key pair to /Users/your_username/.aws/credentials\nDeactivated old access key: AKIAJMIGD6UPCXCFWVOA\nPlease make sure this key is not used elsewhere.\nPlease note that it may take a minute for your new access key to propagate in the AWS control plane.\n```\n\n## Install\n\nYo",
"github_repo": "stefansundin/aws-rotate-key",
"github_stars": 385,
"github_topics": [
"aws",
"cli",
"security-tools"
],
"homepage": "https://github.com/stefansundin/aws-rotate-key",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 9,
"installs_365d": 875,
"installs_90d": 29,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "aws-rotate-key",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 8804,
"rank_365d": 4044,
"rank_90d": 8708,
"raw_hash": "71a6d0d7ba41878a",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/a/aws-rotate-key.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "1.2.0",
"versioned_formulae": [],
"why_use_this": null
}