caa.tf 341 Bytes
Newer Older
Mike Horwath's avatar
Mike Horwath committed
1
resource "cloudflare_record" "caa" {
Mike Horwath's avatar
Mike Horwath committed
2 3 4
  count  = length(var.caa_records)
  domain = var.domain
  name   = element(var.caa_records[count.index], 0)
Mike Horwath's avatar
Mike Horwath committed
5
  type   = "CAA"
6

Mike Horwath's avatar
Mike Horwath committed
7
  data = {
Mike Horwath's avatar
Mike Horwath committed
8 9 10
    flags = element(var.caa_records[count.index], 1)
    tag   = element(var.caa_records[count.index], 2)
    value = element(var.caa_records[count.index], 3)
Mike Horwath's avatar
Mike Horwath committed
11 12
  }
}
Mike Horwath's avatar
Mike Horwath committed
13