diff --git a/main.tf b/main.tf index 2a31d49..13684f9 100644 --- a/main.tf +++ b/main.tf @@ -38,6 +38,7 @@ resource "cloudflare_record" "default" { name = each.value.name type = each.value.type value = each.value.value + comment = lookup(each.value, "comment", null) priority = lookup(each.value, "priority", null) proxied = lookup(each.value, "proxied", false) ttl = lookup(each.value, "ttl", 1) diff --git a/variables.tf b/variables.tf index 739ee3e..0ef6097 100644 --- a/variables.tf +++ b/variables.tf @@ -24,6 +24,8 @@ variable "records" { The type of the record. value: The value of the record. + comment: + Optional comment for the record. ttl: The TTL of the record. Default value: 1.