https://github.com/arddluma/aws-iam-key-rotation
Rotate your IAM keys automatically
https://github.com/arddluma/aws-iam-key-rotation
aws aws-cli aws-iam iam iam-key-manager key-rotation
Last synced: 3 months ago
JSON representation
Rotate your IAM keys automatically
- Host: GitHub
- URL: https://github.com/arddluma/aws-iam-key-rotation
- Owner: arddluma
- Created: 2021-07-15T14:55:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-03T10:57:22.000Z (almost 4 years ago)
- Last Synced: 2025-04-17T13:30:01.884Z (6 months ago)
- Topics: aws, aws-cli, aws-iam, iam, iam-key-manager, key-rotation
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-iam-key-rotation
Rotate your IAM keys automatically***Prerequisites***
- awscli (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)
- jq (Ubuntu: sudo apt-get install -y jq / MacOS: brew install jq)Usage: `./aws-iam-key-rotation.sh `
Run as a cronjob:
`crontab -e`**Important:**
Set the SHELL to be `/bin/bash`
`SHELL=/bin/bash`E.g run every day at 00:00
`0 0 * * * /path/to/script/aws-iam-key-rotation.sh `
if you want to see the logs of scheduled jobs you can add `>> /path/to/log/file` at the end.
`0 0 * * * /path/to/script/aws-iam-key-rotation.sh >> /path/to/log/file`