You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite using terraform 1.0.7, I get "count" error:
│ Error: Invalid count argument
│
│ on .terraform/modules/proxy_service.alb_ingress/main.tf line 50, in resource "aws_lb_listener_rule" "unauthenticated_paths":
│ 50: count = module.this.enabled && length(var.unauthenticated_paths) > 0 && length(var.unauthenticated_hosts) == 0 ? length(var.unauthenticated_listener_arns) : 0
│
│ The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be created. To
│ work around this, use the -target argument to first apply only the resources that the count depends on.
Also, the minimum version should also be updated to 0.14:
The problem here most likely is that module.proxy_alb.listener_arns produces a list whose length is unknown at plan time. Do you know long the list will be? If so, converting the input into a list of known length should resolve the issue.
Found a bug? Maybe our Slack Community can help.
Describe the Bug
Despite using terraform 1.0.7, I get "count" error:
Also, the minimum version should also be updated to 0.14:
terraform-aws-alb-ingress/versions.tf
Line 2 in ab6033c
Expected Behavior
TF shouldn't complain about "count" and fail.
Steps to Reproduce
Steps to reproduce the behavior:
I'm using
alb-ingress
indirectly:NOTE: Commenting out
alb_ingress_unauthenticated_paths = ["/*"]
removes the error, but then noaws_lb_listener_rule
is created.Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: