diff --git a/main.tf b/main.tf index d38fe59..56e2c8e 100644 --- a/main.tf +++ b/main.tf @@ -160,7 +160,7 @@ module "service" { var.extra_task_policy_arns, [aws_iam_policy.aws_policy.arn], ) - additional_task_policy_arns_count = 2 + length(var.extra_task_policy_arns) + additional_task_policy_arns_count = 3 + length(var.extra_task_policy_arns) load_balancers = [ # Internal target group manager