You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script will enable annual key rotation on all AWS Customer Managed Keys in your account.
4
+
5
+
## Why?
6
+
7
+
AWS Key rotation triggers AWS to create a new backing-key for your CMK. These backing-keys are the actual bits used for the encryption and decryption with KMS CMKs. Old backing-keys are not removed, and no data or envelop keys that were encrypted with the old backing-key are re-encrypted.
8
+
9
+
This exists to make old-school on-prem crypto-compliance folks happy. However security tools and security policies often ding account owners for not having this set.
10
+
11
+
## What the script does.
12
+
13
+
This script will iterate through all your regions and attempt to list all your keys. If you have permission to the key (ie it is not locked down to a specific principal), it will issue the [EnableKeyRotation API](https://docs.aws.amazon.com/kms/latest/APIReference/API_EnableKeyRotation.html) call.
0 commit comments