Skip to content
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

for_each in dns_a_record_set might be a dependency issue #5

Open
lazyfrosch opened this issue Dec 21, 2023 · 0 comments
Open

for_each in dns_a_record_set might be a dependency issue #5

lazyfrosch opened this issue Dec 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lazyfrosch
Copy link
Member

If you play around with depends_on this can cause issues.

│   on .terraform/modules/something/network.tf line 18, in data "dns_a_record_set" "subnet_dns":
│   18:   for_each = toset(data.qip_v4subnet.net.dns_servers)
│     ├────────────────
│     │ data.qip_v4subnet.net.dns_servers is a list of string, known only after apply
│ 
│ The "for_each" set includes values derived from resource attributes that cannot be determined until apply, and so Terraform cannot determine the full set of keys that will identify the instances of this resource.
@lazyfrosch lazyfrosch added the bug Something isn't working label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant