2026-02-22 13:56:34 +00:00
|
|
|
variable "tls_secret_name" { type = string }
|
|
|
|
|
variable "coturn_turn_secret" { type = string }
|
|
|
|
|
variable "public_ip" { type = string }
|
|
|
|
|
|
|
|
|
|
locals {
|
|
|
|
|
tiers = {
|
|
|
|
|
core = "0-core"
|
|
|
|
|
cluster = "1-cluster"
|
|
|
|
|
gpu = "2-gpu"
|
|
|
|
|
edge = "3-edge"
|
|
|
|
|
aux = "4-aux"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module "coturn" {
|
2026-02-22 14:38:14 +00:00
|
|
|
source = "./module"
|
|
|
|
|
tls_secret_name = var.tls_secret_name
|
|
|
|
|
tier = local.tiers.edge
|
|
|
|
|
turn_secret = var.coturn_turn_secret
|
|
|
|
|
public_ip = var.public_ip
|
2026-02-22 13:56:34 +00:00
|
|
|
}
|