Enabling or Disabling Deletion Protection for a Read Replica
Scenarios
Enabling deletion protection prevents instances from being accidentally deleted, maintaining service availability and mitigating the risk of data loss. To prevent your instance from being deleted by mistake, you can enable deletion protection. If deletion protection is no longer needed, disable it.
Read replicas with deletion protection enabled cannot be deleted. To delete such read replicas, disable deletion protection first (using an account that has the permission to disable this function).
How It Works
A flag has been added to the instance attributes to indicate the deletion protection status of the current instance. This configuration is stored in the extended field of the instance table. When deletion protection is enabled, the flag is set to TRUE. When deletion protection is disabled, the flag is set to FALSE.
Prerequisites
The IAM account you use must be assigned the rds:instance:switchDeletionProtection action.
Constraints
This function is unavailable for instances that are being created, being deleted, or already deleted.
Precautions
- Deletion protection for read replicas can be configured independently of the primary instance. Modifying the protection status of the primary instance does not affect the protection status of its read replicas.
- By default, deletion protection is disabled during read replica creation. Created read replicas are not protected and can be deleted by users with the DELETE privilege. To protect your read replica against deletion, follow the instructions in this section.
Procedure
- Log in to the RDS console.
- Click
in the upper left corner and select a region. - On the Instances page, locate the target instance and click
in front of it to show its read replicas. - Click the target read replica name to go to the Summary page.
- In the Instance Information area, find the Deletion Protection field and check whether it is enabled for the read replica. Figure 1 Checking whether deletion protection is enabled
- Log in to the RDS console.
- Click
in the upper left corner and select a region. - On the Instances page, locate the target instance and click
in front of it to show its read replicas. - Click the target read replica name to go to the Summary page.
- In the Instance Information area, find the Deletion Protection field and click Configure.
- In the displayed dialog box, select the Deletion Protection check box and click OK. Figure 2 Enabling deletion protection
- Log in to the RDS console.
- Click
in the upper left corner and select a region. - On the Instances page, locate the target instance and click
in front of it to show its read replicas. - Click the target read replica name to go to the Summary page.
- In the Instance Information area, find the Deletion Protection field and click Configure.
- In the displayed dialog box, deselect the Deletion Protection check box and click OK. Figure 3 Disabling deletion protection
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot