stack/infra/main/main.tf

32 lines
727 B
HCL

variable "environment" {}
variable "namespace" {}
variable "region" {}
variable "out_dir" {
type = string
default = "../../out"
}
resource "random_id" "suffix" {
byte_length = 8
}
resource "digitalocean_custom_image" "talos" {
name = "talos"
url = "https://github.com/siderolabs/talos/releases/download/v1.2.3/digital-ocean-amd64.raw.gz"
regions = ["sfo3"]
}
module "digitalocean_talos_cluster" {
source = "../../terraform_modules/digitalocean_talos_cluster"
talos_cluster_name = "distrust"
talos_image = digitalocean_custom_image.talos.image_id
talos_config_directory = "talos"
worker_pools = [{
name = "primary",
count = 1,
size = "s-2vcpu-4gb",
}]
digitalocean_region = "sfo3"
}