From fca2d78578d51cfd65f4417b2552c2961b10371d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 23 Aug 2024 17:29:34 +0300 Subject: [PATCH] Add comment support to records (#49) * Add comment support to records * Document records comment in variables.tf --- main.tf | 1 + variables.tf | 2 ++ 2 files changed, 3 insertions(+) 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.