alicloud_ots_secondary_index

This data source provides the ots secondary index of the current Alibaba Cloud user.

For information about OTS secondary index and how to use it, see Secondary index overview.

Example Usage

data "alicloud_ots_secondary_indexes" "secondary_index_ds" {
  instance_name = "sample-instance"
  table_name = "sample-table"
  name_regex    = "sample-secondary-index"
  output_file   = "secondary-indexs.txt"
}

output "first_secondary_index_id" {
  value = "${data.alicloud_ots_secondary_indexes.secondary_index_ds.indexs.0.id}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

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