alicloud_dms_enterprise_instances

This data source provides a list of DMS Enterprise Instances in an Alibaba Cloud account according to the specified filters.

Example Usage

# Declare the data source
data "alicloud_dms_enterprise_instances" "dms_enterprise_instances_ds" {
  net_type      = "CLASSIC"
  instance_type = "mysql"
  env_type      = "test"
  name_regex    = "tf_testAcc"
  output_file   = "dms_enterprise_instances.json"
}

output "first_database_instance_id" {
  value = "${data.alicloud_dms_enterprise_instances.dms_enterprise_instances_ds.instances.0.instance_id}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the arguments listed above: