n3integration/terraform-provider-godaddy

Error: couldn't find domain record

tamis-laan opened this issue · 1 comments

Setting name servers to that of cloudflare. The code worked yesterday now I get:

> terraform plan
╷
│ Error: couldn't find domain record (my.domain): [404:UNKNOWN_DOMAIN] The given domain is not registered, or does not have a zone file
│
│   with godaddy_domain_record.my-domain,
│   on main.tf line 53, in resource "godaddy_domain_record" "my_domain":
│   53: resource "godaddy_domain_record" "my-domain" {
│
╵

Simple code:

// Set nameservers my.domain
resource "godaddy_domain_record" "my-domain" {
	domain   = "my.domain"
	nameservers = ["amalia.ns.cloudflare.com", "sergi.ns.cloudflare.com"]
}

terraform destroy doesn't work. Running rm *.tfstate* does work and terraform apply does work. But on the second run terraform apply I again get the same message.

Did the godaddy api change?

I am having the same error. I think it may be due to the fact that Godaddy may delete the zone record since it does not needed anymore because the NS gives all ownership to cloudflare but the api setup for this provider may need a zone record to exist