Client keys are valid for one to five years. Rotate client keys annually to reduce the risk of key compromise. If your client key is about to expire, change it at the earliest opportunity. If a key expires, applications using it lose access to Key Management Service (KMS).
The rotation process has four steps: create a new client key, update your application to use it, verify the old key is no longer in use, then delete the old key. Throughout this process, you can track old key usage in KMS audit logs under Security Operations > Simple Log Service for KMS.
Prerequisites
Before you begin, ensure that you have:
An application access point (AAP) in the KMS console
Access to the application code or configuration that references the current client key
Step 1: Create a client key
Log on to the KMS console. In the top navigation bar, select a region. In the left-side navigation pane, choose Application Access > AAPs.KMS console
Click the Application Access tab. Search for the AAP by Instance ID or AAP name.
Click the AAP name. On the details page, click the Client Key tab, then click Create Client Key.
In the Create Client Key panel, configure the following parameters:
Parameter Description Encryption Password 8–64 characters. Allowed characters: digits, letters, and ~ ! @ # $ % ^ & * ? _ -Validity Period Defaults to five years. Set to one year to reduce the risk of key compromise. Click OK. The browser downloads two files automatically:
clientKey_****.json— contains the Application Access Secret (ClientKeyContent)clientKey_****_Password.txt— contains the Password
Store both files securely before proceeding.
Step 2: Change the client key of a self-managed application
Update your application to use the new client key files downloaded in Step 1.
Using KMS instance SDK (Java) as an example, replace the following values when creating a client:
clientKeyPass— replace with the new PasswordclientKeyFilePathorclientKey— replace with the new credential file or content
Step 3: Verify the old client key is inactive
Before deleting the old client key, confirm no application is still using it.
Get the ID of the old client key from the Client Key tab.

In the left-side navigation pane, choose Security Operations > Simple Log Service for KMS. Select your instance ID.
Enter the old client key ID in the search box under
kms_audit_log.
If the search returns results, the key is still in use. Use the client_ip and useragent fields to identify which applications have not been updated. Repeat Step 2 for those applications, then re-check the logs.
Step 4: Delete the old client key
Deletion takes effect immediately. Before you delete a client key, make sure that the client key is no longer in use. Otherwise, your applications may fail to access the required KMS instance.
On the Client Key tab, find the old client key and click Delete in the Actions column.
In the Delete Client Key message, click OK.
Complete security verification. Then, KMS deletes the client key.