Please list the steps required to reproduce the issue, for example:
Run terraform apply to create the A record resource state
Remove the A record out of band, e.g. by recreating the bind server.
Add a wildcard CName DNS entry in the same bind server, e.g. *.${local.dns_zone_name}
Run terraform apply
Expected Behavior
The last terraform apply notices the missing A record and creates it.
Actual Behavior
The last step terraform apply fails with the following error:
Error: Error refreshing state: 1 error(s) occurred:
* dns_a_record_set.ldap_a_record: 1 error(s) occurred:
* dns_a_record_set.ldap_a_record: dns_a_record_set.ldap_a_record: Error querying DNS record: didn't get a A record
Terraform Version
Terraform v0.11.13
Affected Resource(s)
dns_a_record_set
Terraform Configuration Files
Debug Output
https://gist.github.com/jvshahid/70be63c8a1271873d039472df8132549
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
to create the A record resource state*.${local.dns_zone_name}
terraform apply
Expected Behavior
The last
terraform apply
notices the missing A record and creates it.Actual Behavior
The last step
terraform apply
fails with the following error:Important Factoids
We are using a bind server.
/cc @Logiraptor