Files
terraform/modules/cloudflare_dns/variables.tf
T
2026-09-03 03:52:38 +02:00

35 lines
911 B
Terraform

variable "zone_name" {
type = string
description = "Apex domain of the Cloudflare zone (e.g. domain.tld)"
}
variable "record_name" {
type = string
description = "Subdomain label to create the record for (e.g. sub → sub.domain.tld)"
}
variable "record_type" {
type = string
description = "DNS record type: A, AAAA, CNAME, MX, TXT"
}
variable "record_value" {
type = string
description = "Record content (IP address, target hostname, text)"
}
variable "cloudflare_proxied" {
type = bool
description = "Route through the Cloudflare proxy (orange cloud)"
default = true
}
variable "record_ttl" {
type = number
description = "TTL in seconds (ignored when proxied)"
default = 3600
validation {
condition = var.record_ttl >= 60 && var.record_ttl <= 86400
error_message = "ttl must be between 60 and 86400 seconds"
}
}