If your ApsaraDB RDS for PostgreSQL instance uses the pay-as-you-go billing method and runs critical workloads, you can enable the release protection feature for the pay-as-you-go RDS instance. This feature prevents your RDS instance from being manually released due to unintended operations or lack of communication among team members. This topic describes how to enable and disable the release protection feature for your RDS instance.
Prerequisites
The RDS instance is a pay-as-you-go instance.
Usage notes
The release protection feature cannot prevent the automatic release of an RDS instance in normal scenarios. The normal scenarios include but are not limited to the following scenarios:
A payment in your account is overdue for more than 15 days.
The RDS instance does not comply with applicable security compliance policies.
Benefits of release protection
If you release an RDS instance for which the release protection feature is enabled, the result is returned based on the method that you use to release the RDS instance.
If you manually release the RDS instance in the ApsaraDB RDS console, an error message indicating that the RDS instance fails to be released is displayed.
If you call the DeleteDBInstnace operation to release the RDS instance, an error message indicating that the RDS instance fails to be released is returned.
Enable the release protection feature
Enable the release protection feature when you create an RDS instance
This section describes how to configure release protection settings when you create an RDS instance. For more information about how to create an RDS instance, see Create an ApsaraDB RDS for PostgreSQL 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.
In the Basic Resources step, set Billing Method to Pay-As-You-Go and configure other required parameters. Then, click Next: Instance Configuration.
In the Instance Configuration step, select Prevents instances from being unexpectedly deleted by using the console or calling an API operation and configure other required parameters. Then, click Next: Confirm Order.
Configure the required parameters.
When you call the CreateDBInsance or CloneDBInstance operation to create an RDS instance, you can enable or disable the release protection feature for the RDS instance by configuring the DeletionProtection parameter.
Enable the release protection feature for an existing RDS instance
Method 1
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 RDS instance for which you want to enable the release protection feature, and choose More > Change Release Protection Settings in the Actions column.
In the dialog box that appears, turn on Release Protection.
Click OK.
Method 2
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.
In the Configuration Information section of the Basic Information page, click Settings to the right of Release Protection.
In the dialog box that appears, turn on Release Protection.
Click OK.
You can also call the ModifyDBInstanceDeletionProtection operation to enable the release protection feature for the RDS instance.
Disable the release protection feature
Method 1
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 RDS instance for which you want to disable the release protection feature, and choose More > Change Release Protection Settings in the Actions column.
In the dialog box that appears, turn off Release Protection.
Click OK.
Method 2
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.
In the Configuration Information section of the Basic Information page, click Settings to the right of Release Protection.
In the dialog box that appears, turn off Release Protection.
Click OK.
References
For more information about the parameters for creating an RDS instance, see Create an ApsaraDB RDS for PostgreSQL instance.
For more information about how to release an RDS instance, see Release or unsubscribe from an ApsaraDB RDS for PostgreSQL instance.
You can enable and disable the release protection feature for an RDS instance by calling the following API operations.
Operation
Description
Creates an instance.
Restores the data of an instance to a new instance.
Enables or disables the release protection feature for an instance.