How to Resize a Vultr Cloud Compute Instance
-
by Blog Admin
- 13
How to Resize a Vultr Cloud Compute Instance
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.
Vultr Customer Portal
- Navigate to Products and click Compute.
- Click your target Vultr Cloud Compute instance to open its management page.
- Navigate to the Settings tab.
- Find and click Change Plan on the left navigation menu.
- Click the Change Plan drop-down and select a new instance plan.
- Click Upgrade to resize your instance.
- Check the confirmation prompt and click Change Plan to apply changes.
Vultr API
- Send a
GET
request to the List Instances endpoint and note your target instance’s ID.console$ 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.console$ 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.console$ curl "https://api.vultr.com/v2/instances/jobs/{job-id}" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
Vultr CLI
- List all available instances and note your target instance’s ID.
console
$ vultr-cli instance list
- List all available plans the instance can resize to.
console
$ vultr-cli instance plan list <instance-id>
- Resize the instance to a new plan.
console
$ vultr-cli instance plan upgrade <instance-id> --plan <instance_plan_id>
Terraform
- Open your Terraform configuration and locate the Cloud Compute instance resource.
- Update the
plan
attribute with the new instance plan ID.terraformresource "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.
How to Resize a Vultr Cloud Compute Instance 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…
How to Resize a Vultr Cloud Compute Instance 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…