- Newest
- Most votes
- Most comments
Hi Tillis,
Increase the case severity and connect with your TAM to escalate internally.
answered 9 months ago
Hello There,
To begin with kindly allow me to inform you that an Amazon RDS instance or Amazon Aurora cluster enters an inaccessible-encryption-credentials-recoverable state when it can't access the AWS Key Management Service (AWS KMS) encryption key. This occurs when the AWS KMS key is no longer activated or the AWS account has been suspended and reactivated.
To resolve the inaccessible-encryption-credentials-recoverable state, complete the following steps:
- Reopening the account may allow you to recover the KMS key, but success depends on the current state of the key:
If the KMS key is pending deletion:
- AWS enforces a waiting period of 7-30 days before permanently deleting a KMS key.
- During this period, you can cancel the deletion and restore access.
- After cancellation, the key will be in a "Disabled" state and must be manually re-enabled.
If the KMS key is already permanently deleted:
- The data encrypted with that key becomes permanently unrecoverable.
- Neither you nor AWS Support can restore a deleted KMS key.
- Your RDS instance data will remain inaccessible.
For details about KMS key deletion and recovery: https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html
Recovery Steps:
-
If you reopen the account and the key is still pending deletion:
-
Cancel the key deletion immediately using the AWS Console or CLI:
aws kms cancel-key-deletion --region <region> --key-id <key-id>
Enable the KMS key (it will be disabled after cancellation):
- Navigate to AWS KMS Console - Customer managed keys.
- Select your key and choose "Enable".
- Update the key policy to restore cross-account permissions for the account containing your RDS instance.
- Restart your RDS instance as it has entered an inaccessible-encryption-credentials state.
[+] https://docs.aws.amazon.com/cli/latest/reference/kms/cancel-key-deletion.html
Allowing users in other accounts to use a KMS key: [+] https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html
[+] https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-overview.html
- Confirm that the AWS KMS key is turned on. If the AWS KMS key is turned off, then turn on the key.
[+] https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html
==================
Restart your Amazon RDS instance or Amazon Aurora cluster:
To restart your Amazon RDS instance, run the following start-db-instance command:
aws rds start-db-instance --db-instance-identifier example-instance Note: Replace example-instance with your Amazon RDS instance name.
To restart your Amazon Aurora cluster, run the following start-db-cluster command:
aws rds start-db-cluster --db-cluster-identifier example-cluster Note: Replace example-cluster with your Amazon Aurora cluster name.
Please refer to the below documentation for detailed procedure: [+] https://repost.aws/knowledge-center/rds-aurora-inaccessible-state
Thank you!
answered 9 months ago
Relevant content
asked a year ago
