alicloud_rds_backup

Provides a RDS Backup resource.

For information about RDS Backup and how to use it, see What is Backup.

Example Usage

Basic Usage

resource "alicloud_db_instance" "example" {
  engine                   = "MySQL"
  engine_version           = "5.6"
  instance_type            = "rds.mysql.t1.small"
  instance_storage         = "30"
  instance_charge_type     = "Postpaid"
  db_instance_storage_type = "local_ssd"
}

resource "alicloud_rds_backup" "example" {
  db_instance_id = alicloud_db_instance.example.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

RDS Backup can be imported using the id, e.g.

$ terraform import alicloud_rds_backup.example <db_instance_id>:<backup_id>