Learn how to increase or decrease the resources of your Vultr Optimized Cloud Compute instance.
Resizing an instance activates a new plan with more vCPUs, RAM, and storage to match your needs. Downgrading is not supported while upgrading the instance enables a higher plan without changes to the instance's data or file system.
Follow this guide to resize a Vultr Optimized Cloud Compute instance using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Instances endpoint and note your target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PATCH
request to the Update Instance endpoint to resize the instance with a new plan and note the Job ID.
$ curl "https://api.vultr.com/v2/instances/{instance-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"plan" : "instance_plan_id"
}'
Send a GET
request to the Get Instance Job endpoint to monitor and get availble information for the upgrade plan instance job.
$ curl "https://api.vultr.com/v2/instances/jobs/{job-id}" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all available instances and note your target instance's ID.
$ vultr-cli instance list
List all available plans the instance can resize to.
$ vultr-cli instance plan list <instance-id>
Resize the instance to a new plan.
$ vultr-cli instance plan upgrade <instance-id> --plan <instance_plan_id>
Open your Terraform configuration for the existing Optimized Cloud Compute instance.
Update the plan
value in the instance resource to the new Optimized Cloud Compute plan code.
resource "vultr_instance" "occ" {
# ...existing fields (region, os_id, label, etc.)
plan = "vhp-4c-8gb" # Example: upgrade from vhp-2c-4gb to vhp-4c-8gb
}
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
No comments yet.