n3integration/terraform-provider-godaddy

Every terraform apply tries to remove and recreate the same record

laszlozold opened this issue · 2 comments

This is the output of terraforming after each applies even if I did not change anything in my GoDaddy module: it simply removes and re-creates each record in my zone. I am not sure what went wrong, but I suspect this is not the expected behaviour.

  ~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

 # module.final.module.godaddy.godaddy_domain_record.domain will be updated in-place
  ~ resource "godaddy_domain_record" "domain" {
        addresses = []
        domain    = "be-novative.dev"
        id        = "309310494"
     - record {
          - data     = "52.149.110.3" -> null
          - name     = "api-eu" -> null
          - port     = 0 -> null
          - priority = 0 -> null
          - ttl      = 3600 -> null
          - type     = "A" -> null
          - weight   = 0 -> null
        }
      + record {
          + data     = "52.149.110.3"
          + name     = "api-eu"
          + port     = 0
          + priority = 0
          + ttl      = 3600
          + type     = "A"
          + weight   = 0
        }

Can I anyhow fix this? Really annoys me.

I think that's the same I reported in #39 . Or rather, it's part of this.

@alexs77 indeed it is the same as #39.