alicloud_ots_tunnels

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

For information about OTS tunnel and how to use it, see Tunnel overview.

Example Usage

data "alicloud_ots_tunnels" "tunnels_ds" {
  instance_name = "sample-instance"
  table_name = "sample-table"
  name_regex = "sample-tunnel"
  output_file = "tunnels.txt"
}

output "first_tunnel_id" {
  value = "${data.alicloud_ots_tunnels.tunnels_ds.tunnels.0.id}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

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