infrastructure/tf/tunnel/tunnel.tf
2024-01-15 11:05:07 -08:00

34 lines
No EOL
543 B
HCL

variable "account_id" {
type = string
sensitive = true
}
variable "name" {
type = string
sensitive = false
}
variable "secret" {
type = string
sensitive = true
}
resource "cloudflare_tunnel" "tunnel" {
account_id = var.account_id
name = var.name
secret = var.secret
config_src = "local"
}
output "id" {
value = cloudflare_tunnel.tunnel.id
}
output "token" {
value = cloudflare_tunnel.tunnel.tunnel_token
sensitive = true
}
output "cname" {
value = cloudflare_tunnel.tunnel.cname
}