2026-02-22 13:56:34 +00:00
|
|
|
variable "tls_secret_name" { type = string }
|
|
|
|
|
variable "tiny_tuya_api_key" { type = string }
|
|
|
|
|
variable "tiny_tuya_api_secret" { type = string }
|
|
|
|
|
variable "tiny_tuya_service_secret" { type = string }
|
|
|
|
|
variable "tiny_tuya_slack_url" { type = string }
|
|
|
|
|
|
|
|
|
|
locals {
|
|
|
|
|
tiers = {
|
|
|
|
|
core = "0-core"
|
|
|
|
|
cluster = "1-cluster"
|
|
|
|
|
gpu = "2-gpu"
|
|
|
|
|
edge = "3-edge"
|
|
|
|
|
aux = "4-aux"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module "tuya-bridge" {
|
2026-02-22 14:38:14 +00:00
|
|
|
source = "./module"
|
2026-02-22 13:56:34 +00:00
|
|
|
tls_secret_name = var.tls_secret_name
|
|
|
|
|
tier = local.tiers.cluster
|
|
|
|
|
tiny_tuya_api_key = var.tiny_tuya_api_key
|
|
|
|
|
tiny_tuya_api_secret = var.tiny_tuya_api_secret
|
|
|
|
|
tiny_tuya_service_secret = var.tiny_tuya_service_secret
|
|
|
|
|
slack_url = var.tiny_tuya_slack_url
|
|
|
|
|
}
|