Skip to content

Commit

Permalink
Add comment support to records (#49)
Browse files Browse the repository at this point in the history
* Add comment support to records

* Document records comment in variables.tf
  • Loading branch information
glensc authored Aug 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3073cc3 commit fca2d78
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 2 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit fca2d78

Please sign in to comment.