Important: Only supports the default profile!
If you have more than one profile setup via aws configure
, this script is only capable of targetting the default profile. Other profiles are ignored.
To install and run:
- Copy the contents of
install-and-run.sh
to your terminal and press enter. - Bash will download, install, and start the script.
- The script will prompt you for your AWS username (i.e. "Joe")
- Enter your username, and the script will create a new access key in AWS, add the access key to your local credentials file, and deactivate your old key.
After the script has been installed and run for the first time you can run it again at any time with the following steps:
- In a terminal,
cd
to therotate-access-keys
directory - Activate the virtual environment a la
. .virtualenv/bin/activate
- Run
python3 rotate-access-keys.py