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

Records with upper case characters are not destroyed

Open getSurreal opened this issue 3 years ago • 1 comments

PowerDNS 4.4

If you pass in an upper case name, it gets created, but is converted to lowercase in powerDNS. When you run a destroy on the same state, it does not delete the record assumingely because the case does not match. I would think that a case conversion should happen in the provider or throw an error because of case.

I'm new to PowerDNS. I was not able to find a configuration setting the enables uppercase records.

Terraform Version

0.13.5

Affected Resource(s)

powerdns_record

Terraform Configuration Files

resource "powerdns_record" "A" {
  zone    = "example.com."
  name    = "Test.example.com."
  type    = "A"
  ttl     = 300
  records = ["192.168.0.110"]
}

Expected Behavior

If it creates the record, it should be able to destroy it.

Actual Behavior

Creates the record, but does not destroy

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
  2. terraform destroy

Important Factoids

References

getSurreal avatar Mar 23 '21 20:03 getSurreal