-
Notifications
You must be signed in to change notification settings - Fork 916
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
DNS module DNSSEC config errors #1761
Comments
@lianatech-teemu-hemmila can you try with HEAD? I just tried your first example and it works for me module "private-dns" {
source = "../modules/dns"
project_id = module.project.id
name = "test-example"
zone_config = {
domain = "gcp.example.com."
public = {}
}
} Result:
|
Thanks for response @juliocc. I'm sorry, what do you mean by trying with HEAD? I think the problem is with the fact that the Cloud DNS zone resource was created with old version of the module, which introduced the DNSSEC config (with state = "off"). With old version of the module:
We get:
So the When creating new resource with v27 module:
It works fine and doesn't create the Now, when we have upgraded our modules to v27, terraform tries to remove this dnssec_config, but apply fails. Terraform state is still updated to not have it. When I import the resource from GCP again to state, it has the dnssec_config block (state = "off"). So maybe this is something to consider with module declaration. For new resources, everything works fine. But when migrating to resources created with older module to new, some inconsitency happens. |
We never support backwards compatibility, it would just be too much work and sometimes be even impossible. :) |
Ok, thanks for clarifying that :) |
Initially created dns zone with cloud-foundation-fabric module version v23 without declaring any DNSSEC configs. When upgraded to v27 following happens.
With module declaration:
Error is produced in apply phase (plan succeeds):
When introducing DNSSEC config with explicitly setting
state = "off"
This error is produced:
This might also be related to google provider upgrade to v5 but I'm not sure should the module be refactored to not try to read the dns keys when state is set to off, but the dnssec_config exists (since provider seems to require it).
The text was updated successfully, but these errors were encountered: