Files
eqit_tofu-plan/modules/instance/main.tf
T

35 lines
579 B
Terraform

terraform {
required_providers {
linode = {
source = "linode/linode"
# version = "..."
}
}
}
# Configure the Linode Provider
provider "linode" {
token = var.instance_token
}
resource "linode_instance" "eqit_instance" {
image = var.image
label = var.label
region = var.region
type = var.type
authorized_keys = var.authorized_keys
root_pass = var.root_pass
interface {
purpose = "public"
}
interface {
purpose = "vpc"
subnet_id = var.vpc_subnet_id
ipv4 {
vpc = var.vpc_ipv4_addr
}
}
}