Terraform provider vultr

From wikinotes

Interact with vultr via terraform.
The vultr api is extremely useful when setting these up!

Documentation

official docs https://registry.terraform.io/providers/vultr/vultr/latest/docs

Sample

terraform {
  required_providers {
    vultr = {
      source = "vultr/vultr"
      version = "<=2.11"
    }
  }
}

variable "vultr_api_key" {
  type = string
}

provider "vultr" {
  api_key = (var.vultr_api_key)  # see .envrc
  rate_limit = 700
  retry_limit = 3
}

resource "vultr_instance" "kaepora" {
  plan = "vc2-1c-1gb"  # 5$/mo (cheapest api-accessible)
  region = "ewr"       # New Jersey
  os_id = 447          # FreeBSD 13 x64
  label = "test"
  hostname = "test"
  enable_ipv6 = false
  backups = "disabled"
  ddos_protection = false
  activation_email = false
  ssh_key_ids = ["11111111-2222-3333-4444-555555555555"]
}