Commit 4c3baee6 authored by Mike Horwath's avatar Mike Horwath
Browse files

failure of CAA record maintenance as of v2.4.0 of provider

parent 2be3606f
Pipeline #836 passed with stage
in 19 seconds
......@@ -14,9 +14,11 @@ This module as tested supports:
* TXT records
* MX records
* NS records
* CAA records
* SRV records
This module no longer supports:
* CAA records - throwing an error and not available in the API anymore either. [Reference](https://api.cloudflare.com/#dns-records-for-a-zone-create-dns-record)
Suggestion: you should use durable state storage.
This works great with Terraform [Workspaces](https://www.terraform.io/docs/state/workspaces.html)
......@@ -75,6 +77,8 @@ terraform workspace select default
## optional variables
* `multi_records` - `name`, `value`, `priority (integer)`, `type`, `proxied`
* `srv_records` - `item`, `proto`, `priority (integer)`, `weight (integer)`, `port (integer)`, `target (no trailing dot)`
No longer supported and commented out:
* `caa_records` - `name`, `flags`, `issue`, `value`
## TODO
......
resource "cloudflare_record" "caa" {
count = length(var.caa_records)
zone_id = var.zone_id
name = element(var.caa_records[count.index], 0)
type = "CAA"
data = {
flags = element(var.caa_records[count.index], 1)
tag = element(var.caa_records[count.index], 2)
value = element(var.caa_records[count.index], 3)
}
}
# resource "cloudflare_record" "caa" {
# count = length(var.caa_records)
# zone_id = var.zone_id
# name = element(var.caa_records[count.index], 0)
# type = "CAA"
# data = {
# flags = element(var.caa_records[count.index], 1)
# tag = element(var.caa_records[count.index], 2)
# value = element(var.caa_records[count.index], 3)
# }
# }
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