A guide explaining how to set up and deploy new cloud compute instances on the Vultr platform.
Vultr Cloud Compute instances are shared CPU virtual machines designed for demanding applications with bursty performance, such as low-traffic websites, blogs, CMS, development/test environments, and small databases. Vultr Cloud Compute instances are capable of running general purpose applications without specific CPU, memory or storage performance restrictions.
Follow this guide to provision Vultr Cloud Compute instances using the Vultr Customer Portal, API, CLI, or Terraform.
Navigate to Products and click Compute.
Click Deploy.
Choose Shared CPU as the instance type.
Select your desired Vultr location to deploy the instance to.
Select a plan category from the sidebar:
Select a plan from the available options based on your vCPU, memory, storage, and bandwidth requirements.
Click Configure Software.
Select a cloud image to install on the instance based on the following options:
Select optional Server Settings to apply on the instance.
Enter a new hostname in the Server Hostname field and a descriptive label in the Server Label field to identify the instance.
Configure Additional Features for the instance.
linuxuser non-root user with sudo privileges as the default user account instead of root.Click Deploy to provision the instance.
Send a POST request to the Create Instance endpoint to create a new Vultr Cloud Compute instance. Replace VULTR_LOCATION, INSTANCE_PLAN, OS_ID, INSTANCE_LABEL, and HOSTNAME with your target values.
$ curl "https://api.vultr.com/v2/instances" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"region" : "VULTR_LOCATION",
"plan" : "INSTANCE_PLAN",
"os_id" : OS_ID,
"label" : "INSTANCE_LABEL",
"hostname": "HOSTNAME"
}'
Visit the Create Instance API page to view additional attributes you can apply on the Vultr Cloud Compute instance.
Send a GET request to the List Instances endpoint to list all available instances.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Create a new Vultr Cloud Compute instance. Replace VULTR_LOCATION, INSTANCE_PLAN, OS_ID, INSTANCE_LABEL, and HOSTNAME with your target values.
$ vultr-cli instance create --region VULTR_LOCATION --plan INSTANCE_PLAN --os OS_ID --label INSTANCE_LABEL --host HOSTNAME
Run vultr-cli instance create --help to view additional options you can apply on the Vultr Cloud Compute instance.
List all available instances.
$ vultr-cli instance list
Ensure the Vultr Terraform provider is configured in your Terraform project.
Define the Cloud Compute instance in your Terraform configuration file.
terraform {
required_providers {
vultr = {
source = "vultr/vultr"
version = "~> 2.26"
}
}
}
provider "vultr" {}
resource "vultr_instance" "cc" {
label = "cc-instance-1"
hostname = "cc-instance-1"
region = "del" # such as ewr, ams, sgp
plan = "vc2-2c-4gb" # Cloud Compute (shared CPU) plan code; use vhf-* for High Frequency
os_id = 2284 # Ubuntu 24.04 LTS x64
enable_ipv6 = true
}
output "public_ip" {
value = vultr_instance.cc.main_ip
}
Apply the configuration and observe the following output:
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.