Description
Terraform CLI and Provider Versions
Deploying new dns_a_record_sets and ran into this error. The resources were being updated not created.
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ dns_a_record_set.xxx["secondary"], provider
│ "provider["registry.terraform.io/hashicorp/dns"]" produced an unexpected
│ new value: Root object was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
From plan:
dns_a_record_set.xxx["primary"] will be updated in-place
~ resource "dns_a_record_set" "xxx" {
~ addresses = [
- "xx.xxx.xx.x",
- "yy.yyy.yyy.yy",
- "zz.zzz.zzz.zz",
# (1 unchanged element hidden)
]
id = "xxx.privatelink.blob.core.windows.net."
name = "xxx"
# (2 unchanged attributes hidden)
}
Terraform Configuration
dns = {
source = "hashicorp/dns"
version = "= 3.4.2"
}
provider "dns" {
update {
gssapi {}
}
}
Expected Behavior
Dns a record set should have been updated successfully.
Actual Behavior
Error as shown above, mentions that root object was present but now absent.
Steps to Reproduce
terraform apply
updates to dns_a_record_set
How much impact is this issue causing?
High
Logs
No response
Additional Information
Work around found was to remove all dns_a_record_set resource from state then redeploy, not a great long term solution though.
Code of Conduct
- I agree to follow this project's Code of Conduct