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.

Background information

Expired and overdue ApsaraDB RDS for PostgreSQL instances are moved to the recycle bin.
Notice If you manually release an ApsaraDB RDS for PostgreSQL instance by using the ApsaraDB RDS console, API, SDK, or Terraform, the RDS instance is not moved to the recycle bin and cannot be retrieved. Proceed with caution.

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 RDS management 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 renewal is complete, the RDS instance is immediately restored to normal.

Rebuild an RDS instance

After a subscription RDS instance expires, it is retained for a specified period of time. After the specified retention period elapses, ApsaraDB RDS releases the RDS instance. However, the data backup files of the RDS instance can still be retained for eight more days. During the eight-day retention period, you can restore the data of the RDS instance from a data backup file to a new RDS instance by using the instance rebuild feature. For more information, see Unlock or rebuild an expired or overdue ApsaraDB RDS instance.

  1. Log on to the recycle bin.
  2. In the top navigation bar, select the region where the RDS instance resides.
  3. Find the RDS 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.

Destroy an RDS instance

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

Warning After you destroy an RDS instance, all the 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 Enable cross-region backups for an ApsaraDB RDS for PostgreSQL instance.
  1. Log on to the recycle bin.
  2. In the top navigation bar, select the region where the RDS instance resides.
  3. Find the RDS instance and click Destroy.

References

Unlock or rebuild an expired or overdue ApsaraDB RDS instance