1.0.1 • Published 1 year ago

rotate-key v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

rotate-aws-key 🔄

Rotate AWS access keys.

  • Create new and delete old AWS access keys.
  • Replaces the key in the AWS credentials file.
  • Optionally replace the key in a env file.

Usage

npx rotate-aws-key

By default, rotate-aws-key attempts to rotate the default profile access key in the AWS credentials file normally found at ~/.aws/credentials.

Options

FlagsDescription
-o, --outputPrint the new access keys generated in the console
-p, --profilesAllows choosing up to 2 profiles in the credentials file to rotate
-e, --envReplaces access key environment variables in a provided file defaulting to ./.env. Only if 1 profile is being rotated.