If your RDS instance hosts critical services, you can enable release protection to prevent the instance from being manually released. This feature helps prevent irreversible consequences from human error.
Prerequisites
The instance must use the pay-as-you-go or serverless billing method.
Usage notes
Release protection does not prevent an instance from being automatically released for the following reasons:
-
If your account has overdue payments for more than 15 days, the instance is automatically released.
-
If the instance has security or compliance risks, it is stopped or released.
How it works
If you attempt to release an instance with release protection enabled, the following occurs:
-
If you manually release the instance in the console, the operation fails and the console displays an error message.
-
If you call the DeleteDBInstance operation to release the instance, the operation fails and the API returns an error message.
Enable release protection during instance creation
This section describes the settings for release protection. For information about other configurations, see Create an ApsaraDB RDS for MySQL instance.
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region in which the RDS instance resides.
-
On the Instances page, click Create Instance.
-
Set Billing Method to pay-as-you-go or Serverless, and configure the other parameters.
-
In the More section, select Prevents instances to be deleted by using the console or calling an API operation by mistake..
-
Configure the remaining parameters and create the instance.
When you call the CreateDBInstance or CloneDBInstance operation to create an instance, you can use the DeletionProtection parameter to enable or disable release protection.
Modify instance release protection
You can also enable or disable release protection for an existing instance.
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region in which the RDS instance resides.
-
On the Instances page, find the target instance. In the Actions column, choose .
-
Turn Release Protection on or off.
-
Click OK.
You can also call the ModifyDBInstanceDeletionProtection operation to modify the release protection setting for an instance.
View the status of release protection
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
-
On the Basic Information page, view the Release Protection parameter in the Configuration Information section.
The current status of release protection, such as Enabled, is displayed. You can click Settings next to the status to change the setting.
Related APIs
|
API |
Description |
|
Creates an ApsaraDB RDS instance. |
|
|
Creates a new instance by restoring another instance's data from a specific point in time. |
|
|
Enables or disables release protection for an ApsaraDB RDS instance. |