terraform-provider-powerdns icon indicating copy to clipboard operation
terraform-provider-powerdns copied to clipboard

Allow existing powerdns_records to be updated instead of destroyed & recreated

Open ag-TJNII opened this issue 4 years ago • 16 comments

This PR modifies the powerdns_record provider to not delete and recreate records on argument change. The change is fairly minor, as PowerDNS creates and updates use the same API call this simply uses the existing resourcePDNSRecordCreate function for updates and sets ForceNew to false. I did not set ForceNew: false on set_ptr as I'm not familiar with that functionality, so I err'd on the side of safety by leaving the delete/recreate behavior.

Resolves #77

ag-TJNII avatar Feb 09 '21 22:02 ag-TJNII