# entry point for terraform configuration variable "ssh_pub_key" { type = string } variable "root_password" { type = string } resource "linode_instance" "prod" { image = "linode/alpine3.11" label = "vps" group = "terraform" region = "us-central" type = "g6-nanode-1" authorized_keys = [var.ssh_pub_key] root_pass = var.root_password } output "ipv4" { value = linode_instance.prod.ip_address } locals { ipv6 = split("/", linode_instance.prod.ipv6)[0] } output "ipv6" { value = local.ipv6 }