1
0
IaC/terraform/cloudflare/variable_definitions.tf
2024-12-18 15:42:45 -05:00

48 lines
1.0 KiB
HCL

variable "api_token" {
description = "Cloudflare account API token"
type = string
default = ""
sensitive = true
}
variable "zone_id" {
description = "The DNS zone id as siplayed in cloudflare dashboard."
type = string
default = ""
sensitive = false
}
variable "dns_records" {
description = "DNS A records to create"
type = list(object({
name = string
type = string
content = string
ttl = number
}))
default = []
}
variable "mx_records" {
description = "DNS MX records to create"
type = list(object({
name = string
type = string
content = string
priority = number
ttl = number
}))
default = []
}
variable "caa_records" {
description = "DNS CAA records to create"
type = list(object({
name = string
type = string
content = string
# priority = number
ttl = number
}))
default = []
}