nix-config/terraform/main.tf
2025-03-26 12:54:21 +01:00

24 lines
No EOL
430 B
HCL

variable "hcloud_token" {
sensitive = true
}
provider "hcloud" {
token = var.hcloud_token
project = "homelab"
}
resource "hcloud_server" {
name = "athena"
type = "cax11"
image = "debian-12"
datacenter = "nbg1-dc3"
}
data "cloudinit_config" "athena" {
part {
filename = "cloud-config.yaml"
content_type = "text/cloud-config"
content = file("${path.module}/cloud-config.yaml")
}
}