Skip to content

RDS aurora mysql instance stoped caused by Inaccessible encryption credentials recoverable

0

Problem

The background of this failure was an RDS migration across accounts, involving AWS accounts A and B. The failed RDS instance was in AWS account B, and the RDS instance was restored from a snapshot in AWS account A. The recovery process used the KMS key from account A. Now, account A has been suspended, causing the current RDS in account B to be in the "Inaccessible-encryption-credentials-recoverable" state, thus preventing normal operation. We have already submitted a case in collaboration with the channel partner, requesting the recovery of AWS account A. However, after 24 hours, there has been no specific handling measure in response. We kindly request that the AWS Support team pay attention to this post and assist us in handling this case.

Case id

*************

asked 9 months ago183 views

2 Answers
0

Hi Tillis,

Increase the case severity and connect with your TAM to escalate internally.

answered 9 months ago

0

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!

AWS

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.