-
Have Terraform Installed and a Vultr Account (doh!)
-
Create a file named "env.tfvars" at the main folder
-
Add the "VULTR_API_KEY" variable, and your Personal Access Token as it´s value:
VULTR_API_KEY = "<YOUR_API_TOKEN>"
- To initialize, run:
terraform init
- To create the instance, run:
terraform plan -var-file="env.tfvars"
terraform apply -var-file="env.tfvars"
input yes when prompted
- To delete the instance, run:
terraform destroy -var-file="env.tfvars"
input yes when prompted
-
Readme Formatting Fix
-
Additional attributes included to the instance template
- Tags
- Hostname
- IPv4 toggle
- Backups toggle (Billed)
- DDoS protection toggle (Billed)
- Activation Email notification toggle
- Startup Script
-
Added Firewall Group and Rules
-
Added SSH Key configuration (Key UUID needed from Vultr)
-
Added Startup Script Folder/File example
Using Vultr Terraform Provider V2.19.0
Single basic instance with the following:
Type | Description |
---|---|
Instance | Shared CPU - Regular Cloud Compute |
CPU | 1 Core |
RAM | 1gb |
Region | Santiago - Chile |
OS | Ubuntu 22.04 LTS x64 |
Free? | NO |
- Vultr Terraform Documentation
- Vultr Terraform Provider
- Vultr Terraform Provider Docs
- Vultr Instance List with Regions
- Vultr OS List
- Inside "vultr_instance.tf" file, label the instance name as you want
- You can also modify the instance specs, if your wallet supports it. Check the links to see available resources.
and...
---- DON´T FORGET TO CONTROL YOUR USAGE TO AVOID UNDESIRED BILLING ----