---
title: "AWS KMS Key Rotation"
description: "Rotate the AWS KMS key that protects the Privilege Secure encryption keys by using the Rotate AWS Key tool in the KeyTools folder."
keywords:
  - AWS KMS
  - Rotate AWS Key
  - SbPAM.RotateAwsKey
  - KeyTools
  - access key
  - secret key
  - KMS key ARN
sidebar_position: 10
---

# AWS KMS Key Rotation

Organizations using AWS Key Management Service (AWS KMS) can configure Netwrix Privilege Secure to
rotate security keys. When creating an AWS KMS protection key for Privilege Secure, configuration
must start by creating a policy in AWS. After you create an AWS policy, you can configure a connection to the AWS policy
using Privilege Secure Rotate AWS Key tool.

The AWS KMS key encrypts the key that
encrypts the secret key.

## Rotate the AWS key

To rotate an AWS KMS Key.

1. Locate the KeyTools folder in the installation directory.

   `C:\Program Files\Stealthbits\PAM\KeyTools`

2. Run the `SbPAM.RotateAwsKey` executable to launch the Rotate AWS Key wizard.

   ![AWS Connection Settings](/images/privilegesecure/25.12/accessmanagement/requirements/awsconnectionsettings.webp)

3. Enter the **Access key** and **Secret key** created for the AWS user assigned to the
   AWS KMS key into the **AWS Connection settings** fields.
4. Enter the KMS key ARN into the **KMS Key** field.
5. Select the appropriate AWS region from the dropdown list.

   ![AWS Connection Settings Complete](/images/privilegesecure/25.12/accessmanagement/requirements/awsconnectionsettingscomplete.webp)

6. When all fields are completed, click the **Rotate** button to update all encrypted
   values in the Privilege Secure system.

The tool takes a few minutes to run (especially on larger systems) and the log window shows
the results of the rotation.

:::note
If the AWS KMS key is rotated, there is no need to rotate the NPS key. Encrypted values
will continue to be decrypted and any new encryption will use the updated AWS KMS key. If the AWS
user Access Key is rotated it will be necessary to rotate the NPS key to update it to use the new
Ids. Best practice for use of access keys is to rotate them regularly. Don't delete the AWS
user Access Key without rotating the NPS key first.
:::

1. Create a new access key.
2. Rotate the NPS protect key to use the new access key.
3. Delete old access key.

The KMS Key has been rotated.
