-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
I used terraform-godaddy provider to update Name servers on Godaddy. Even though The Name servers are updated in Godaddy and also the state file, the next time I run a terraform plan it still Shows the old name servers and notifies that I needs to update again.
Terraform Version
Terraform v0.12.16
+ provider.aws v2.35.0
+ provider.godaddy (unversioned)
Affected Resource(s)
- godaddy_domain_record
Terraform Configuration Files
main.tf
resource "godaddy_domain_record" "update-gd-nameservers" {
count = length(var.domains)
domain = var.domains[count.index]
nameservers = local.domain-ids["${var.domains[count.index]}."]["nameservers"]
}Debug Output
Expected Behavior
Since the Name servers are already updated, No changes in Infrastructure should be made.
Infrastructure should be up-to-date.
Actual Behavior
Terraform will perform the following actions:
# module.register_sub_domains.godaddy_domain_record.update-gd-nameservers[0] will be updated in-place
~ resource "godaddy_domain_record" "update-gd-nameservers" {
addresses = []
domain = "xxxxxx.net"
id = "xxxxx"
~ nameservers = [
- "ns47.domaincontrol.com",
- "ns48.domaincontrol.com",
+ "ns-xxxx.awsdns-42.co.uk",
+ "ns-xxx.awsdns-41.com",
+ "ns-xxxx.awsdns-53.org",
+ "ns-xxx.awsdns-16.net",
]
- record {
- data = "@" -> null
- name = "www" -> null
- priority = 0 -> null
- ttl = 3600 -> null
- type = "CNAME" -> null
}
- record {
- data = "Parked" -> null
- name = "@" -> null
- priority = 0 -> null
- ttl = 600 -> null
- type = "A" -> null
}
- record {
- data = "_domainconnect.gd.domaincontrol.com" -> null
- name = "_domainconnect" -> null
- priority = 0 -> null
- ttl = 3600 -> null
- type = "CNAME" -> null
}
}
# module.register_sub_domains.godaddy_domain_record.update-gd-nameservers[1] will be updated in-place
~ resource "godaddy_domain_record" "update-gd-nameservers" {
addresses = []
domain = "xxxxx.com"
id = "xxxxx"
~ nameservers = [
- "ns47.domaincontrol.com",
- "ns48.domaincontrol.com",
+ "ns-xxx.awsdns-42.co.uk",
+ "ns-xxxx.awsdns-41.com",
+ "ns-xxxxx.awsdns-53.org",
+ "ns-xxx.awsdns-16.net",
]
- record {
- data = "@" -> null
- name = "www" -> null
- priority = 0 -> null
- ttl = 3600 -> null
- type = "CNAME" -> null
}
- record {
- data = "Parked" -> null
- name = "@" -> null
- priority = 0 -> null
- ttl = 600 -> null
- type = "A" -> null
}
- record {
- data = "_domainconnect.gd.domaincontrol.com" -> null
- name = "_domainconnect" -> null
- priority = 0 -> null
- ttl = 3600 -> null
- type = "CNAME" -> null
}
}
Plan: 0 to add, 2 to change, 0 to destroy.
Steps to Reproduce
- Apply the infrastructure first time.
- Do a
terraform planagain .
jeffbski, lwille and moleskin-smile
Metadata
Metadata
Assignees
Labels
No labels