The Azure peering connection data source provides information about a peering connection between an HVN and a peer Azure VNet.
data "hcp_azure_peering_connection" "test" {
hvn_id = var.hvn_id
peering_id = var.peering_id
wait_for_active_state = true
}
hvn_link
(String) The self_link
of the HashiCorp Virtual Network (HVN).peering_id
(String) The ID of the peering connection.timeouts
(Block, Optional) (see below for nested schema)wait_for_active_state
(Boolean) If true
, Terraform will wait for the peering connection to reach an ACTIVE
state before continuing. Default false
.allow_forwarded_traffic
(Boolean) Whether the forwarded traffic originating from the peered VNet is allowed in the HVNapplication_id
(String) The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.azure_peering_id
(String) The peering connection ID used by Azure.created_at
(String) The time that the peering connection was created.expires_at
(String) The time after which the peering connection will be considered expired if it hasn't transitioned into ACCEPTED
or ACTIVE
state.id
(String) The ID of this resource.organization_id
(String) The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.peer_resource_group_name
(String) The resource group name of the peer VNet in Azure.peer_subscription_id
(String) The subscription ID of the peer VNet in Azure.peer_tenant_id
(String) The tenant ID of the peer VNet in Azure.peer_vnet_name
(String) The name of the peer VNet in Azure.peer_vnet_region
(String) The region of the peer VNet in Azure.project_id
(String) The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
If not specified, the project specified in the HCP Provider config block will be used, if configured.
If a project is not configured in the HCP Provider config block, the oldest project in the organization will be used.self_link
(String) A unique URL identifying the peering connectionstate
(String) The state of the Azure peering connection.use_remote_gateways
(Boolean) If the HVN should use the gateway of the peered VNettimeouts
Optional:
read
(String)