alicloud_vpc_peer_connections

This data source provides the Vpc Peer Connections of the current Alibaba Cloud user.

Example Usage

Basic Usage

data "alicloud_vpc_peer_connections" "ids" {}
output "vpc_peer_connection_id_1" {
  value = data.alicloud_vpc_peer_connections.ids.connections.0.id
}

data "alicloud_vpc_peer_connections" "nameRegex" {
  name_regex = "^my-PeerConnection"
}
output "vpc_peer_connection_id_2" {
  value = data.alicloud_vpc_peer_connections.nameRegex.connections.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

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