This topic describes how to manage ApsaraDB RDS for PostgreSQL instances in the recycle bin. You can unlock, rebuild, or destroy the RDS instances in the recycle bin.

Functionality

Expired and overdue ApsaraDB RDS for PostgreSQL instances are moved to the recycle bin. An RDS instance is not moved to the recycle bin in the following scenarios:
  • The RDS instance is payment refunded or manually released within seven days after the instance is created.
  • The RDS instance is a pay-as-you-go RDS instance and is automatically released due to overdue payments.
  • The RDS instance is a read-only RDS instance.

Unlock an RDS instance whose payment is overdue

If a pay-as-you-go RDS instance is locked due to overdue payments, log on to the Billing Management console. Then, verify that a valid payment method is specified for your Alibaba Cloud account.

Unlock an RDS instance that has expired

If a subscription RDS instance is locked due to expiration, you can renew the instance in the recycle bin within the next 15 days. If you do not renew the instance within 15 days, the instance is released.

  1. Log on to the ApsaraDB RDS console.
  2. In the left-side navigation pane, click Locked Instances. In the top navigation bar, select the region where the RDS instance resides.
  3. Find the RDS instance and click Unlock to renew the RDS instance.

After the RDS instance is renewed, it is immediately restored to normal.

Rebuild an RDS instance

After an RDS instance is moved to the recycle bin, the backup files of the instance are retained for eight days. During the eight-day retention period, you can restore the data of the backup files to a new RDS instance by using the rebuild feature. For more information, see Unlock or rebuild an expired or overdue ApsaraDB RDS instance.

  1. Log on to the ApsaraDB RDS console.
  2. In the left-side navigation pane, click Locked Instances. In the top navigation bar, select the region where the RDS instance resides.
  3. Find the instance and click Recreate Instance.

By default, ApsaraDB RDS creates an RDS instance that has the same specifications in the same zone as the original RDS instance. You can also create an RDS instance that has different specifications in a different zone than the original RDS instance.

Note ApsaraDB RDS no longer allows you to purchase RDS instances that run PostgreSQL 9.4. Therefore, RDS instances that run PostgreSQL 9.4 do not support the rebuild feature. For more information, see [Notice] End of sale for ApsaraDB RDS instances running PostgreSQL 9.4.

Destroy an RDS instance

If an RDS instance is locked due to expiration or overdue payments, you can destroy the RDS instance in the recycle bin.

Warning After you destroy an RDS instance, all backup files except the cross-region backup files of the RDS instance are destroyed. The backup files that are destroyed include regular data backup files, archived backup files, and log backup files. Proceed with caution. For more information, see Use the cross-region backup feature for an ApsaraDB RDS for PostgreSQL instance.
  1. Log on to the ApsaraDB RDS console.
  2. In the left-side navigation pane, click Locked Instances. In the top navigation bar, select the region where the RDS instance resides.
  3. Find the instance and click Destroy in the operation column.

References