Commit 8e90e671 authored by Mike Horwath's avatar Mike Horwath
Browse files

version 2 breaks so much

parent effbfdac
Pipeline #668 passed with stage
in 28 seconds
resource "cloudflare_record" "multi" {
count = length(var.multi_records)
domain = var.domain # required
zone_id = var.zone_id # required
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 ""
......
resource "cloudflare_record" "srv" {
count = length(var.srv_records)
domain = var.domain
name = "${element(var.srv_records[count.index], 0)}.${element(var.srv_records[count.index], 1)}.${var.domain}"
type = "SRV"
count = length(var.srv_records)
zone_id = var.zone_id
name = "${element(var.srv_records[count.index], 0)}.${element(var.srv_records[count.index], 1)}.${var.domain}"
type = "SRV"
data = {
service = element(var.srv_records[count.index], 0)
......
variable "domain" {
}
variable "zone_id" {
}
# still need to figure out SRV and LOC records
# name, value, priority (integer), type, proxied
......@@ -19,6 +22,6 @@ variable "srv_records" {
# name, flags, issue, value
variable "caa_records" {
#type = list(string)
type = list(tuple([string,number,string,string]))
type = list(tuple([string, number, string, string]))
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