Cloudflare DNS via TF

This commit is contained in:
=
2024-10-24 18:39:30 +13:00
parent fe38bebbd5
commit 14fc10a10a
3 changed files with 68 additions and 25 deletions

View File

@ -5,17 +5,20 @@ variable "api_token" {
sensitive = true
}
variable "account_name" {
description = "Cloudflare account name"
type = string
default = ""
}
variable "a_records" {
description = "DNS A records to create"
type = list(object({
name = string
content = string
}))
default = []
type = map(string)
default = {}
}
variable "cname_records" {
description = "DNS CNAME records to create"
type = map(string)
default = {}
}
variable "root_records" {
description = "Special root records to create with name @"
type = map(string)
default = {}
}