Skip to content

nestorfuenzalida/terraform-vultr

Repository files navigation

Deployment Steps

  1. Have Terraform Installed and a Vultr Account (doh!)

  2. Set up a Vultr Personal Access Token, and Permissions

  3. Create a file named "env.tfvars" at the main folder

  4. Add the "VULTR_API_KEY" variable, and your Personal Access Token as it´s value:

VULTR_API_KEY = "<YOUR_API_TOKEN>"
  1. To initialize, run:
terraform init
  1. To create the instance, run:
terraform plan -var-file="env.tfvars"
terraform apply -var-file="env.tfvars"

input yes when prompted

  1. To delete the instance, run:
terraform destroy -var-file="env.tfvars"

input yes when prompted

Change Log

v1.1

  • 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

v1.0

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

Useful Links

Useful Tips

  • 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 ----

About

Deploy instances on Vultr using terraform

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published