pan-net / terraform-provider-powerdns

Terraform PowerDNS provider
https://www.terraform.io/docs/providers/powerdns/
Mozilla Public License 2.0
44 stars 48 forks source link

Record resource does not support comments (feature request) #62

Open sshipway opened 4 years ago

sshipway commented 4 years ago

Affected Resource(s)

Expected Behavior

The powerdns_record resource should have an optional attribute 'comment' which is passed to the API when creating to add a comment for the record. This would allow us to easily tag records by their module, and indicate that they are managed by terraform, in setups where terraform does not have complete control over all the zone.

Important Factoids

We run PowerDNS with the PowerDNS-Admin frontend to maintain all our zones. Terraform handles records which relate to the terraform-managed environments. The problem is identifying which records are terraform-managed when viewing via the web GUI as we are not able to add comments to the records to indicate this.

In addition, terraform does not support the disabled flag for records, but this is not really an issue as why would you create a disabled record? It might be worth checking that an existing record has not been disabled via another method, though.