Skip to content

grahamhar/aws-rotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-rotate

aws-rotate Coverage Status Downloads

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

Installation

Create a python virtual environment and activate it

pip install aws-rotate

Usage

Make sure you have the relevant AWS_PROFILE environment variable set or the default profile will be used see aws credentials

aws-rotate-keys

Development

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

Contributors

@cagriy

About

Rotate AWS Access Keys and update credentials file

Topics

Resources

License

Stars

Watchers

Forks

Languages