Commit f999a02e authored by Mike Horwath's avatar Mike Horwath
Browse files

renaming variable

parent 8bbe1532
Pipeline #101 failed with stages
in 12 seconds
resource "cloudflare_record" "multi_type" {
count = "${length(var.multi_type_records)}"
resource "cloudflare_record" "multi" {
count = "${length(var.multi_records)}"
domain = "${var.domain}" # required
name = "${element(var.multi_type_records[count.index], 0)}" # required
value = "${element(var.multi_type_records[count.index], 1)}" # required
priority = "${element(var.multi_type_records[count.index], 2)}" # optional IRL, required in var passing, can be ""
type = "${element(var.multi_type_records[count.index], 3)}" # required
proxied = "${element(var.multi_type_records[count.index], 4)}" # optional IRL, required in var passing, boolean
name = "${element(var.multi_records[count.index], 0)}" # required
value = "${element(var.multi_records[count.index], 1)}" # required
priority = "${element(var.multi_records[count.index], 2)}" # optional IRL, required in var passing, can be ""
type = "${element(var.multi_records[count.index], 3)}" # required
proxied = "${element(var.multi_records[count.index], 4)}" # optional IRL, required in var passing, boolean
ttl = "1" # this is default
}
......@@ -45,7 +45,8 @@ variable "mx_records" {
default = []
}
variable "multi_type_records" {
# name, value, priority (integer), type, proxied
variable "multi_records" {
type = "list"
default = []
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment