» alicloud_drds_instance

The alicloud_drds_instance data source provides a collection of DRDS instances available in Alibaba Cloud account. Filters support regular expression for the instance name, searches by tags, and other filters which are listed below.

» Example Usage

data "alicloud_drds_instances" "drds_instances_ds" {
  name_regex = "drds-\\d+"
  ids     = "drdsfacbz68g3299test"
}
 output "first_db_instance_id" {
  value = "${data.alicloud_drds_instances.drds_instances_ds.instances.0.drdsInstanceId}"
}

» Argument Reference

The following arguments are supported:

  • name_regex - A regex string to filter results by instance name.
  • ids - (Optional) A list of DRDS instance IDs.

» Attributes Reference

The following attributes are exported in addition to the arguments listed above: * ids - A list of DRDS instance IDs. * id - The ID of the DRDS instance. * description - The DRDS instance description. * name - The name of the RDS instance. * status - Status of the instance. * type - The DRDS Instance type. * create_time - Creation time of the instance. * network_type - Classic for public classic network or VPC for private network. * zone_id - Zone ID the instance belongs to. * version - The DRDS Instance version. * ids - A list of DRDS instance IDs.