Creating a Virtual Machine
Current State of our main.tf
You should have something along the lines of the following in your main.tf file.
terraform {
required_providers {
katapult = {
source = "krystal/katapult"
version = "~> 0.0"
}
}
}
provider "katapult" {
api_key = var.api_key
organization = var.organization
data_center = var.data_center
}
Add an IP Address
We'll need an IP Address for our Virtual Machine so we'll create that first.
Below our existing definitions in our main.tf lets add:
resource "katapult_ip" "my_ip" {}