Skip to main content

Rotate your AWS access keys and update your credentials file.

Project description

aws_key_rotate

This script makes it easy to rotate your AWS access keys, and store a new version in your ~/.aws/credentials file.

When you run it, it will look at the profiles in that file, and prompt you to choose one of them. It will then use those credentials to connect to your account, show you what keys you have, give you the option to create a new one (or delete one if you've hit the limit of two), and replace the details in the credentials file, making a backup as it goes.

Claude wrote a fair bit of this and I fixed the bugs!

Use at your own risk.

Quentin Stafford-Fraser August 2025

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_key_rotate-0.1.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_key_rotate-0.1.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file aws_key_rotate-0.1.2.tar.gz.

File metadata

  • Download URL: aws_key_rotate-0.1.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for aws_key_rotate-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a11a9e1fb8e12d05c255a09d9656b65b960f24cf48dfa54766c4941e8b09c4cb
MD5 430da67412abc9a0c18c68174e114ab1
BLAKE2b-256 ac011c75329662a0d702018b106a81b60d005e21b94cb59d60229b169a8a9b97

See more details on using hashes here.

File details

Details for the file aws_key_rotate-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_key_rotate-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7bcf0761843e322a35efa4b3783670df367d2f1d01d1d6fba4130ecb0bfe3031
MD5 4998ea887798ae0294bf5efbe69c7249
BLAKE2b-256 726cd0d78251bc8c8c77cb7591cd2f96e1c446afceca50c9b5de6117841359a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page