-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
domain_validation_options not iterable #18359
Comments
Same thing over here. Is there any update on this one? |
It's a known bug, and it should be addressed in the next major release. |
Hi again, @mzhaase! Sorry for the long silence here. This issue has the same root cause as #17156, which I've verified is fixed in master and ready for inclusion in the forthcoming v0.12.0 release. In my latest comment over there you can see what I tested and also a different way I was able to update that config using the new features coming in v0.12.0. A similar reorganization of the expressions should be possible for your configuration too. For example: resource "cloudflare_record" "validation_record" {
count = var.value_count
type = aws_acm_certificate.certificates[count.index].domain_validation_options[0].type
name = aws_acm_certificate.certificates[count.index].domain_validation_options[0].name
value = aws_acm_certificate.certificates[count.index].domain_validation_options[0].value
} (The Since the fix is in master, I'm going to close this out now. Thanks for reporting this, and sorry again for the late response. |
wow this 0.12.0 release has allot of pressure to get these things right :( |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
0.11.7
Terraform Configuration Files
Expected Behavior
This should iterate over aws_lb_listener_rule_values and create a cert for every entry. Then create validation records on cloudflare.
Actual Behavior
module.dcms_load_balancer_rules.cloudflare_record.validation_record[0]: Resource 'aws_acm_certificate.certificates' does not have attribute 'domain_validation_options.0.name' for variable 'aws_acm_certificate.certificates.*.domain_validation_options.0.name'
This however, works fine:
The text was updated successfully, but these errors were encountered: