{"id":23940397,"url":"https://github.com/stuarthicks/access_key_manager","last_synced_at":"2026-05-16T04:33:07.085Z","repository":{"id":240645091,"uuid":"803199277","full_name":"stuarthicks/access_key_manager","owner":"stuarthicks","description":"CLI for rotating AWS Access Keys","archived":false,"fork":false,"pushed_at":"2025-02-02T13:57:18.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T14:29:43.091Z","etag":null,"topics":["aws","aws-iam","cli","go","golang"],"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/stuarthicks.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":"2024-05-20T09:07:46.000Z","updated_at":"2025-02-02T13:56:44.000Z","dependencies_parsed_at":"2024-05-20T10:31:07.703Z","dependency_job_id":"f229c81d-4b26-4ad5-a3c8-98087349fb17","html_url":"https://github.com/stuarthicks/access_key_manager","commit_stats":null,"previous_names":["stuarthicks/access_key_manager"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Faccess_key_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Faccess_key_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Faccess_key_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Faccess_key_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuarthicks","download_url":"https://codeload.github.com/stuarthicks/access_key_manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240415453,"owners_count":19797635,"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","aws-iam","cli","go","golang"],"created_at":"2025-01-06T03:17:04.356Z","updated_at":"2026-05-16T04:33:07.011Z","avatar_url":"https://github.com/stuarthicks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# access_key_manager\nCLI for rotating AWS Access Keys\n\n## Install\n\nUsing Homebrew:\n\n    brew install stuarthicks/tap/access_key_manager\n\nUsing Go:\n\n    go install github.com/stuarthicks/access_key_manager@latest\n\n## Usage\n\n```\n# access_key_manager -h   \nUsage of access_key_manager:\n  -delete string\n    \tDelete an access key\n  -list\n    \tList access keys\n  -rotate string\n    \tRotate an access key\n```\n\n### Summary\n\n```\naccess_key_manager -list\naccess_key_manager -rotate AKIAOLDKEY\naccess_key_manager -delete AKIAOLDKEY\n```\n\n### Complete Steps\n\n1. First list your access keys.\n\n```\n# access_key_manager -list\nAccess Key ID: AKIASIGDOORANVN4MFOO\nCreation Date: 2022-11-02 13:37:26 +0000 UTC\nStatus: Active\n```\n\n2. Start the rotation (creates a new access key and marks the old one as inactive).\n```\n# access_key_manager -rotate AKIASIGDOORANVN4MFOO\n2022/11/16 16:22:55 created new access key\n2022/11/16 16:22:55 marked access key \"AKIASIGDOORANVN4MFOO\" as inactive\n\nNew credentials\n---------------\nAccess Key ID: AKIASIGDOORALNRZNBAR\nSecret Access Key: hunter2\nCreation Date: 2022-11-16 16:22:56 +0000 UTC\nStatus: Active\n\nFound AWS Credentials file at: ~/.aws/credentials\nAutomatically updated credentials file.\n\nAfter confirming the new credentials work, use -delete [ID] to delete the previous access key\n```\n\n3. If the automatic credentials file updated failed, manually update your aws credentials file for the new access key based on the output from `-rotate`.\n\n4. Delete the old/inactive access key.\n```\n# access_key_manager -delete AKIASIGDOORANVN4MFOO\n2022/11/16 16:23:50 successfully deleted access key \"AKIASIGDOORANVN4MFOO\"\n```\n\n5. (Optional) Delete the credentials file backup at `~/.aws/credentials.bak`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuarthicks%2Faccess_key_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuarthicks%2Faccess_key_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuarthicks%2Faccess_key_manager/lists"}