132 lines
3.7 KiB
HCL
132 lines
3.7 KiB
HCL
variable "stackit_project_id" {
|
|
description = "STACKIT project ID to which the dns zone is associated."
|
|
type = string
|
|
}
|
|
|
|
variable "zone_id" {
|
|
description = "ID of an existing DNS zone. If provided, no new zone will be created."
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
# === DNS Zone variables ===
|
|
variable "dns_zone_name" {
|
|
description = "Descriptive name of the DNS zone."
|
|
type = string
|
|
}
|
|
|
|
variable "dns_zone_dns_name" {
|
|
description = "The actual zone name, e.g. example.com"
|
|
type = string
|
|
}
|
|
|
|
variable "dns_zone_acl" {
|
|
description = "Access control list, e.g. 0.0.0.0/0,::/0"
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
variable "dns_zone_active" {
|
|
description = "Whether the zone is active. Defaults to true"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "dns_zone_contact_email" {
|
|
description = "Contact email for the zone."
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
variable "dns_zone_default_ttl" {
|
|
description = "The default value of the TTL for new resource records in the DNS zone. Time in seconds. Defaults to 3600"
|
|
type = number
|
|
default = 3600
|
|
}
|
|
|
|
variable "dns_zone_description" {
|
|
description = "An additional descriptive free text for the DNS zone."
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
variable "dns_zone_expire_time" {
|
|
description = "If the secondary DNS server cannot perform a serial check in this interval, it must assume that its copy of the zone is obsolete and discard it. Time in seconds. Defaults to 1209600"
|
|
type = number
|
|
default = 1209600
|
|
}
|
|
|
|
variable "dns_zone_is_reverse_zone" {
|
|
description = "Indicates whether a zone is a reverse DNS zone or a forward zone. Both have a different set of allowed resource record types. Defaults to false"
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "dns_zone_negative_cache" {
|
|
description = "The response about the non-existence of a resource record is cached for this interval. Time in seconds. Defaults to 60"
|
|
type = number
|
|
default = 60
|
|
}
|
|
|
|
variable "dns_zone_primaries" {
|
|
description = "List of primary nameservers (for secondary zone)"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "dns_zone_refresh_time" {
|
|
description = "This is the amount of time a secondary DNS server will wait before checking with the primary for a new serial if a zone refresh fails. Time in seconds. Defaults to 3600"
|
|
type = number
|
|
default = 3600
|
|
}
|
|
|
|
variable "dns_zone_retry_time" {
|
|
description = "This is the amount of time a secondary DNS server waits before retrying a zone update if the update fails. Time in seconds. Defaults to 600"
|
|
type = number
|
|
default = 600
|
|
}
|
|
|
|
variable "dns_zone_type" {
|
|
description = "Zone type (primary or secondary). Defaults to primary"
|
|
type = string
|
|
default = "primary"
|
|
}
|
|
|
|
# === DNS Record Set variables ===
|
|
variable "dns_record_set_name" {
|
|
description = "Name of the DNS record (e.g. 'www.example.com')"
|
|
type = string
|
|
}
|
|
|
|
variable "dns_record_set_records" {
|
|
description = "List of DNS record values"
|
|
type = list(string)
|
|
}
|
|
|
|
variable "dns_record_set_type" {
|
|
description = "Record type (e.g. 'A', 'CNAME', etc.)"
|
|
type = string
|
|
}
|
|
|
|
variable "dns_record_set_zone_id" {
|
|
description = "The zone ID for the DNS record"
|
|
type = string
|
|
}
|
|
|
|
variable "dns_record_set_ttl" {
|
|
description = "Time to live (TTL) for the record"
|
|
type = number
|
|
default = 3600
|
|
}
|
|
|
|
variable "dns_record_set_active" {
|
|
description = "Whether the record set is active"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "dns_record_set_comment" {
|
|
description = "Optional comment for the record"
|
|
type = string
|
|
default = null
|
|
}
|