- Newest
- Most votes
- Most comments
Hello Alex,
Yes, the problem you're facing — RDS instance in “Inaccessible-encryption-credentials-recoverable” status — is directly related to encryption key issues and can be addressed using the guidance in the two AWS links you've shared, particularly the first one.
Here is a concise and community-friendly answer you can use, following AWS re:Post guidelines:
Answer: RDS Instance in "Inaccessible-encryption-credentials-recoverable" Status
This issue typically occurs when the Amazon RDS instance loses access to the AWS KMS key used to encrypt the database. The instance becomes temporarily inaccessible, but recoverable within 7 days if the KMS key issue is resolved.
Recommended Actions:
-
Verify the KMS key status:
- Go to AWS KMS Console > Select the key used for the RDS instance.
- Ensure the key is enabled and not scheduled for deletion.
- Check that the key policy allows access to the RDS service.
-
Restore Access to the RDS Instance:
-
Once the KMS key is re-enabled or access is restored, run the following CLI command to restart the DB:
aws rds start-db-instance --db-instance-identifier your-db-instance-id -
You can monitor the status via:
aws rds describe-db-instances --db-instance-identifier your-db-instance-id
-
-
Alternative (if key access cannot be restored):
- Restore the database from the latest snapshot to a new instance using a valid, accessible KMS key.
Important: The instance remains recoverable only for 7 days after entering this state. After that, the only option is restoring from backup/snapshot.
References:
answered a year ago
The issue with the RDS instance in the "Inaccessible-encryption-credentials-recoverable" state is tied to a loss of access to the KMS key used for encryption. This state indicates that either the KMS key was disabled, deleted, or its access permissions revoked. The first step to resolve this is to navigate to the AWS KMS settings and verify the status of the associated key. The key should be set to "Enabled" and retain permissions that allow the RDS instance to decrypt and access its data. Additionally, ensure that the IAM role linked to the RDS instance has policies allowing actions such as 'kms:Decrypt', 'kms:Encrypt', and 'kms:DescribeKey'.
If the KMS key is intact and correctly configured, the recovery of the database instance can be initiated via the AWS CLI. Using the 'start-db-instance' command on the affected DB identifier should allow the service to restore access. The progress of this recovery should be monitored through the 'describe-db-instances' CLI command to ensure the instance transitions back to an "Available" state.
In the event that the recovery fails, the database can be restored from its most recent available snapshot. Identifying the latest snapshot through the AWS CLI and restoring it into a new RDS instance ensures minimal data loss. Application configurations, such as the connection endpoint, will need to be updated to reflect the new database instance.
Additionally, the DNS resolution issue encountered on the associated EC2 instance may not be directly related but is critical to address. Review the network configurations, specifically DNS settings in the EC2's 'resolv.conf' file, and ensure traffic to port 53 is not restricted by the security group. Properly resolving DNS ensures seamless communication between the application and the database.
To prevent future occurrences, it is advisable to maintain regular snapshots for disaster recovery, monitor the health of KMS keys, and ensure IAM permissions remain intact to access encryption credentials. Proper planning around resource management will reduce downtime and ensure the continuity of critical database operations.
answered a year ago
Relevant content
asked 9 months ago
