terraform-provider-godaddy
terraform-provider-godaddy copied to clipboard
The provider does not remove records
I'm using 1.8.7 and it adds records correctly but unable to delete them afterwards
empty resource to delete
resource "godaddy_domain_record" "vctest" {
domain = "vctestdomains.com"
addresses = []
}
$ terraform apply
godaddy_domain_record.vctest: Refreshing state... [id=383633747]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# godaddy_domain_record.vctest will be updated in-place
~ resource "godaddy_domain_record" "vctest" {
~ addresses = [
- "192.168.1.2",
- "192.168.1.3",
]
id = "383633747"
# (1 unchanged attribute hidden)
- record {
- data = "172.105.34.227" -> null
- name = "a099" -> null
- port = 0 -> null
- priority = 0 -> null
- ttl = 600 -> null
- type = "A" -> null
- weight = 0 -> null
}
- record {
- data = "@" -> null
- name = "www" -> null
- port = 0 -> null
- priority = 0 -> null
- ttl = 3600 -> null
- type = "CNAME" -> null
- weight = 0 -> null
}
- record {
- data = "_domainconnect.gd.domaincontrol.com" -> null
- name = "_domainconnect" -> null
- port = 0 -> null
- priority = 0 -> null
- ttl = 3600 -> null
- type = "CNAME" -> null
- weight = 0 -> null
}
}
The output is green and successfull Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Howver the changes were not made.
Running 'terraform apply' over and over again produces the same result
Running it with TF_LOG=true shows nothing criminal. I can see that A records were attempted to be updated, but I'm not sure
2022-12-07T15:35:00.699+0300 [INFO] provider.terraform-provider-godaddy_v1.8.7: 2022/12/07 15:35:00 Updating vctestdomains.com domain records...: timestamp=2022-12-07T15:35:00.699+0300
2022-12-07T15:35:00.699+0300 [INFO] provider.terraform-provider-godaddy_v1.8.7: 2022/12/07 15:35:00 https://api.godaddy.com/v1/domains/vctestdomains.com/records/A: timestamp=2022-12-07T
15:35:00.699+0300
2022-12-07T15:35:00.699+0300 [INFO] provider.terraform-provider-godaddy_v1.8.7: 2022/12/07 15:35:00 []: timestamp=2022-12-07T15:35:00.699+0300
2022-12-07T15:35:01.053+0300 [INFO] provider.terraform-provider-godaddy_v1.8.7: 2022/12/07 15:35:01 200 OK: timestamp=2022-12-07T15:35:01.053+0300