akt

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

USAGE

Rotate Access Keys for the default user on default profile. The keys will be printed and the user has to save them:

$ 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:

$ akt -user joanbono -profile account -save

Diffing the .aws/credentials file, the new key is saved there:

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
modules

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL