HashiCorp Cloud Platform
Create and manage an HVN
You can create and manage a HashiCorp Virtual Network (HVN) for AWS. Use an HVN to delegate an IPv4 CIDR range to HCP. The platform uses this CIDR range to automatically create a virtual private cloud (VPC).
Specification
You can create one HVN for each available cloud region.
Resources added to an HVN appear in the HVN's cloud region. Deploying a cluster into an HVN created in the us-east-1 region, for example, adds the cluster to the us-east-1 region.
All HCP resources must be located in one HVN. A single product deployment cannot span two different HVNs.
You cannot move product deployments from one HVN to another.
You cannot change HVNs after you deploy them.
Create an HVN
Sign in to the HCP Portal and select your organization and project.
From the left navigation menu, click HashiCorp Virtual Network.
Click Create network.
Name your virtual network.
Select Amazon Web Services as your provider.
Select a region from the dropdown menu.
- One HVN can be created in each available cloud region.
- Resources added to the HVN later are added in the same region.
(Optional) Specify a CIDR block. Click Show recommendations for more information.
Recommended practice for HCP administrators
Use a unique CIDR block for each HVN and ensure HVN CIDR blocks do not overlap with subnets in your AWS account.
Click Create network.
Connect an HVN to AWS
To connect your HashiCorp Virtual Network to your AWS infrastructure, you must first create either a peering connection or a transit gateway attachment. Then, specify traffic routes so that clusters can communicate with client resources. Individual configuration instructions are available:
Manage an HVN
You cannot modify HVNs after you deploy them, but the following management features are available.
Import to Terraform
HCP generates a command that you can copy and run to import and manage the HVN in Terraform:
- Sign in to the HCP Portal and select your organization.
- From the sidebar, click HashiCorp Virtual Network.
- Click on an HVN in the ID column.
- From the Manage menu, copy the provided
terraform import
command. - Open your terminal and run the command.
Delete an HVN
- Sign in to the HCP Portal and select your organization.
- From the sidebar, click HashiCorp Virtual Network.
- Click on an HVN in the ID column.
- From the Manage menu, click Delete.
- When prompted, select Confirm.