-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider forcing replacement of records unnecessairily #77
Comments
I see ForceNew is set on all the resource parameters: terraform-provider-powerdns/powerdns/resource_powerdns_record.go Lines 22 to 60 in f14b978
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While evaluating this plugin we noticed it is deleting and recreating records on otherwise minor changes. Note the following diff output:
In auditing the API calls it is sending rrsets to the server with a changetype of DELETE. This is an aggressive approach that can cause service impacts as the DNS record will cease to exist between when it is deleted and recreated, instead of simply being updated. PowerDNS does not require the record to be deleted in these cases, a REPLACE rrset without the delete will cause the record to be replaced by PowerDNS in one API call.
Provider Version
terraform-provider-powerdns_v1.4.1
Expected Behavior
PowerDNS should have been sent a single REPLACE rrset per record.
Actual Behavior
PowerDNS was sent a DELETE rrset, deleting the record unnecessarily.
Steps to Reproduce
Apply a TTL or record change to a powerdns_record resource. Other fields were not verified but assumed to behave the same way.
Important Factoids
None
References
https://doc.powerdns.com/authoritative/http-api/zone.html#rrset
The text was updated successfully, but these errors were encountered: