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

Long TXT value is getting recreated upon `terraform apply`

Open ThomasLandauer opened this issue 2 years ago • 9 comments

I have this DKIM record in my terraform.tf:

value  = "v=DKIM1;h=sha256;k=rsa;s=email;p=MIIB...QAB""

Now, upon each terraform apply, I'm getting:

# hetznerdns_record.... will be updated in-place
~ resource "hetznerdns_record" "..." {
      id      = "..."
      name    = "default._domainkey.mail"
    ~ value   = "\"v=DKIM1;h=sha256;k=rsa;s=email;p=MIIB...rui\" \"6AD...QAB\" " -> "v=DKIM1;h=sha256;k=rsa;s=email;p=MIIB...QAB\""
      # (3 unchanged attributes hidden)
  }

So (together with the information from https://github.com/timohirt/terraform-provider-hetznerdns/issues/13) this looks like the API is automatically splitting the long string. But then, this provider thinks it's different from my long string, and tries to recreate it. Unfortunately, I didn't quite get the bottom line of https://github.com/timohirt/terraform-provider-hetznerdns/issues/13 - is it to split the value string manually in 2 parts?

ThomasLandauer avatar Mar 15 '23 15:03 ThomasLandauer