alicloud_ots_instance_attachments

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

Example Usage

data "alicloud_ots_instance_attachments" "attachments_ds" {
  instance_name = "sample-instance"
  name_regex    = "testvpc"
  output_file   = "attachments.txt"
}

output "first_ots_attachment_id" {
  value = "${data.alicloud_ots_instance_attachments.attachments_ds.attachments.0.id}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

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