terraform-provider-powerdns
terraform-provider-powerdns copied to clipboard
Initial SOA records conflicting with `INCEPTION-INCREMENT`
to create a SOA record for a domain i have to use powerdns_record
like this:
resource "powerdns_record" "SOA_example_com" {
zone = "example.com."
name = "example.com."
type = "SOA"
ttl = 3600
records = ["dns1.example2.com. hostmaster.example.com. 2019120101 10800 3600 3600000 3600"]
}
which creates a record with this entry. if i have set my soa_edit_api
to empty according #29 it works like charm but of course it is much better to have set the serial automatically. so if i set soa_api_edit
to INCEPTION-INCREMENT
i get a conflict because the serial got increased automatically and isn't equal to the serial set in the terraform config before:
- running
terraform apply
creates the soa record (with the config above) - the serial gets increased automatically
- running
terraform apply
again results in this:
id: "example.com.:::SOA" => <computed> (forces new resource)
name: "example.com." => "example.com."
records.#: "1" => "1"
records.xxxxxxxxx9: "ns1.example2.com. hostmaster.example.com. 2019120102 10800 3600 3600000 3000" => "" (forces new re
records.xxxxxxxxx2: "" => "ns1.example2.com. hostmaster.example.com. 2019120101 10800 3600 3600000 3000" (forces new re
ttl: "3600" => "3600"
type: "SOA" => "SOA"
zone: "example.com." => "example.com."
so how to use this provider to create an initial SOA record but increase the serial without this conflict?