Skip to content

Files

Latest commit

 

History

History
75 lines (56 loc) · 2.22 KB
·

hvn_peering_connection.md

File metadata and controls

75 lines (56 loc) · 2.22 KB
·
page_title subcategory description
hcp_hvn_peering_connection Resource - terraform-provider-hcp
The HVN peering connection resource allows you to manage a peering connection between HVNs.

hcp_hvn_peering_connection (Resource)

The HVN peering connection resource allows you to manage a peering connection between HVNs.

Example Usage

resource "hcp_hvn" "hvn_1" {
  hvn_id         = "hvn-1"
  cloud_provider = "aws"
  region         = "us-west-2"
  cidr_block     = "172.25.16.0/20"
}

resource "hcp_hvn" "hvn_2" {
  hvn_id         = "hvn-2"
  cloud_provider = "aws"
  region         = "us-west-2"
  cidr_block     = "172.18.16.0/20"
}

resource "hcp_hvn_peering_connection" "peer_1" {
  hvn_1 = hcp_hvn.hvn_1.self_link
  hvn_2 = hcp_hvn.hvn_2.self_link
}

Schema

Required

  • hvn_1 (String) The unique URL of one of the HVNs being peered.
  • hvn_2 (String) The unique URL of one of the HVNs being peered.

Optional

Read-Only

  • 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 HVNs' organization.
  • peering_id (String) The ID of the peering connection.
  • project_id (String) The ID of the HCP project where the peering connection is located. Always matches the HVNs' project.
  • self_link (String) A unique URL identifying the peering connection
  • state (String) The state of the HVN peering connection.

Nested Schema for timeouts

Optional:

  • create (String)
  • default (String)
  • delete (String)

Import

Import is supported using the following syntax:

# The import ID requires the first HVN ID in the format {hvn_1_id}:{peering_id}
terraform import hcp_hvn_peering_connection.peer_1 hvn-1:peer-1