Learn how to increase or decrease the resources of your Vultr Cloud Compute instance to match your workload requirements.
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 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 and locate the Cloud Compute instance resource.
Update the plan
attribute with the new instance plan ID.
resource "vultr_instance" "cc" {
label = "cc-instance-1"
region = "del"
plan = "vc2-4c-8gb" # Updated plan ID for more vCPUs/RAM/Storage
os_id = 2284
hostname = "cc-instance-1"
}
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
No comments yet.