Rotate AWS Access Keys and update local credentials file.
It's good practise to rotate access IDs and keys for AWS IAM users, but a pain to do, this simple script automates the process
Create a python virtual environment and activate it
pip install aws-rotate
Make sure you have the relevant AWS_PROFILE environment variable set or the default profile will be used see aws credentials
aws-rotate-keys
Clone this repo and install the dev packages
pip install -e ".[dev]"
Install pre-commit hooks to help ensure standards are met, or run isort --profile=black .
with black -S
before
committing.
pre-commit install
Run the tests (automated on PR opening)
pytest
Once you have made changes and the test pass create a pull request