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 your target instance specifications from the following available options:
Click Configure Software to set up the instance configuration.
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.
Select optional Additional Features to enable on the instance.
linuxuser
non-root user with sudo privileges as the default user account instead of root
.Review the Deploy Summary to confirm the instance configuration, then click Deploy Now to provision the instance.
Send a POST
request to the Create Instance endpoint to create a new Vultr Cloud Compute instance.
$ 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.
$ 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" # e.g., 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.
No comments yet.