-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google_dns_keys
data source broken in v5.0.0
#16096
google_dns_keys
data source broken in v5.0.0
#16096
Comments
This may be intentional, a case of https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/version_5_upgrade#datasources-now-error-universally-on-404 Does your managed zone exist at the time the datasource is getting evaluated? |
Yes, the zone exists, but it doesn't have DNSSEC enabled. I did this other test and it also fails: data "google_dns_keys" "dns_keys" {
managed_zone = data.google_dns_managed_zone.zone.id
project = "my-project"
}
data "google_dns_managed_zone" "zone" {
project = "my-project"
name = "test-example"
}
output "zone" {
value = data.google_dns_managed_zone.zone
}
Result:
Note that the same code works perfectly if the zone has DNSSEC enabled. Is this WAI? If it is, does that mean one should not try use |
Yes- the signal we're getting from the API is that only zones with DNSSEC enabled can have them. Previously the datasource would never have returned results, and now it will correctly inform you that the collection you're attempting to query could not exist by propagating the 404 error. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Output for v5.0.0 (fails)
Output for v4.84.0 (succeeds)
Panic Output
N/A
Expected Behavior
Apply should succeed without any errors, even if there are no keys
Actual Behavior
Steps to Reproduce
terraform apply
the code above updating project and zone accordinglyImportant Factoids
Provider version 4.84 works correctly without changes to the code.
References
N.A
The text was updated successfully, but these errors were encountered: