Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joanbono/akt
AWS Key Tool
https://github.com/joanbono/akt
Last synced: 4 days ago
JSON representation
AWS Key Tool
- Host: GitHub
- URL: https://github.com/joanbono/akt
- Owner: joanbono
- License: apache-2.0
- Created: 2021-03-05T11:37:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-11T17:26:15.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T11:59:46.634Z (7 months ago)
- Language: Go
- Size: 156 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![](img/AKT_Banner.svg)
## USAGE
Rotate Access Keys for the default user on `default` profile. The keys will be printed and the user has to save them:
```sh
$ akt -rotate[default]
aws_access_key_id = ${NEW_ACCESS_KEY}
aws_secret_access_key = ${NEW_SECRET_KEY}
```Rotate Access Keys for the user `joanbono` on `account` profile, and save the new keys into `.aws/credentials`:
```sh
$ akt -user joanbono -profile account -save
```Diffing the `.aws/credentials` file, the new key is saved there:
```diff
diff --git a/credentials.backup b/credentials
index 1123ef2..83a856e 100644
--- a/credentials.backup
+++ b/credentials
@@ -33,2 +33,2 @@
-aws_access_key_id = ${OLD_ACCESS_KEY}
-aws_secret_access_key = ${OLD_SECRET_KEY}
+aws_access_key_id = ${NEW_ACCESS_KEY}
+aws_secret_access_key = ${NEW_SECRET_KEY}
```## TODO
+ [ ] Bulk key rotation. List of usernames. Generate JSON/CSV output with the new generated keys