A process that prepares and configures a server or service for use after initial deployment.
A Virtual Private Cloud (VPC) 2.0 network creates a secure, enhanced, and isolated private networking environment for instances to connect and share resources. VPC 2.0 networks support IPv4 network addresses to enable communication between instances.
Follow this guide to create a Virtual Private Network (VPC) 2.0 network using the Vultr Customer Portal, API, CLI, or Terraform.
Send POST
request to the Create a VPC 2.0 Network endpoint to create a new VPC 2.0 network in a specific Vultr location with an automatic IP address range.
$ curl "https://api.vultr.com/v2/vpc2" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"region" : "<vultr-location-id>",
"description" : "<label>"
}'
Visit the Create a VPC 2.0 Network API page to view additional attributes to apply on the VPC 2.0 network.
Create a new VPC 2.0 network in a specific Vultr location with an automatic IP address range.
$ vultr-cli vpc2 create --region="ewr" --description="example-vpc" --ip-type="v4"
Run the vultr-cli vpc2 create --help
command to view additional options to enable on the VPC 2.0 network.
Ensure the Vultr Terraform provider is configured in your Terraform project.
Create a VPC 2.0 network, then apply.
resource "vultr_vpc2" "net" {
region = "ewr"
description = "example-vpc2"
# optional: auto IP range; or specify:
# v4_subnet = "10.0.0.0"
# v4_subnet_mask = 24
}
Apply the configuration and observe the following output:
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
No comments yet.