fix variable naming
This commit is contained in:
1 parent
f1d4cf6238
commit
13781b143e
2 files changed
+5
-5
No files matched your search
@@ -16,6 +16,6 @@ resource "cloudflare_dns_record" "this" {
|
|||||||
name = var.record_name
|
name = var.record_name
|
||||||
type = var.record_type
|
type = var.record_type
|
||||||
content = var.record_value
|
content = var.record_value
|
||||||
proxied = var.proxied
|
proxied = var.cloudflare_proxied
|
||||||
ttl = var.proxied ? 1 : var.ttl
|
ttl = var.cloudflare_proxied ? 1 : var.record_ttl
|
||||||
}
|
}
|
||||||
@@ -18,18 +18,18 @@ variable "record_value" {
|
|||||||
description = "Record content (IP address, target hostname, text)"
|
description = "Record content (IP address, target hostname, text)"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "proxied" {
|
variable "cloudflare_proxied" {
|
||||||
type = bool
|
type = bool
|
||||||
description = "Route through the Cloudflare proxy (orange cloud)"
|
description = "Route through the Cloudflare proxy (orange cloud)"
|
||||||
default = true
|
default = true
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "ttl" {
|
variable "record_ttl" {
|
||||||
type = number
|
type = number
|
||||||
description = "TTL in seconds (ignored when proxied)"
|
description = "TTL in seconds (ignored when proxied)"
|
||||||
default = 3600
|
default = 3600
|
||||||
validation {
|
validation {
|
||||||
condition = var.ttl >= 60 && var.ttl <= 86400
|
condition = var.record_ttl >= 60 && var.record_ttl <= 86400
|
||||||
error_message = "ttl must be between 60 and 86400 seconds"
|
error_message = "ttl must be between 60 and 86400 seconds"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user