hcp_hvn (Resource)

The HVN resource allows you to manage a HashiCorp Virtual Network in HCP.

We recommend the following when selecting the CIDR block of an HVN:

Example Usage

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

Schema

Required

Optional

Read-Only

Nested Schema for timeouts

Optional:

Import

Import is supported using the following syntax:

# Using an explicit project ID, the import ID is:
# {project_id}:{hvn_id}
terraform import hcp_hvn.example f709ec73-55d4-46d8-897d-816ebba28778:main-hvn
# Using the provider-default project ID, the import ID is:
# {hvn_id}
terraform import hcp_hvn.example main-hvn