stack/infra/main/main.tf

36 lines
799 B
Terraform
Raw Normal View History

2023-03-17 04:14:39 +00:00
variable "environment" {}
variable "namespace" {}
variable "region" {}
variable "out_dir" {
type = string
2023-05-05 03:31:53 +00:00
default = "../../out"
2023-01-28 03:08:56 +00:00
}
2023-03-17 04:14:39 +00:00
resource "random_id" "suffix" {
2023-04-14 03:22:35 +00:00
byte_length = 8
2023-01-28 03:08:56 +00:00
}
resource "digitalocean_custom_image" "talos" {
name = "talos"
url = "https://github.com/siderolabs/talos/releases/download/v1.4.3/digital-ocean-amd64.raw.gz"
regions = ["sfo3"]
}
module "digitalocean_talos_cluster-2" {
source = "../../terraform_modules/digitalocean_talos_cluster"
talos_cluster_name = "distrust"
talos_image = digitalocean_custom_image.talos.image_id
talos_config_directory = "talos"
control_plane_pool = {
count = 1,
size = "s-4vcpu-8gb",
}
worker_pools = [{
name = "primary",
count = 1,
size = "s-2vcpu-4gb",
}]
digitalocean_region = "sfo3"
}