Create Key Management Service
Create KMS
-
Access AWS Management Console
- Find KMS
- Select Key Management Service

-
In the KMS interface
- Select Customer managed keys
- Select Create key

- In the Configure key section
- In this section, we will create a symmetric key to encrypt data. You can refer to symmetric and asymmetric keys at AWS Key Management Service
- Key type select Symmetric
- Key usage select Encrypt and decrypt
- Press Next

- In the Add labels section
You can choose a different name if you like!
-
Alias enter
kms-key-encrypt-decrypt

- Leave tags blank for this lab, scroll down, and press Next

-
In the Define key administrative permissions section
- Key administrator search for kms
- Select kms-key-role
- Key deletion select Allow key administrators to delete this key
- Press Next

-
In the Define key usage permissions section
- Key users search for kms
- Select kms-key-role
- Press Next

- In Edit key policy, keep the default policy unchanged, scroll down, and press Next. On the Review page, review the settings and press Finish

- Notification of successful creation

From step 10 onward, this is additional information for reference only. We do not need to use this feature for this lab!
Automatic key rotation in AWS KMS is a feature that helps you automatically change your encryption key after a specified period of time (from 90 days up to 2560 days). This helps improve the security of your data by reducing the risk of your key being exposed or compromised. For more information, refer to Rotating AWS KMS keys
-
From the Customer managed keys list
- Select the key alias kms-key-encrypt-decrypt

-
Next
- Select Key material and rotations
- Select Edit under Automatic key rotation

-
In the Edit automatic key rotation section
- Select Enable
- In Rotation period (in days), you can customize how many days it takes before your encryption key is automatically rotated.
- Press Save
