From 25ae2e570fbbc3423231055dc68107f84c642af6 Mon Sep 17 00:00:00 2001 From: Andriy Zahornyak Date: Tue, 1 Aug 2023 15:39:40 +0300 Subject: [PATCH] fix outputs --- outputs.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/outputs.tf b/outputs.tf index 35825eb..e9e7d84 100644 --- a/outputs.tf +++ b/outputs.tf @@ -24,12 +24,12 @@ output "ecs_service_name" { } output "cloudwatch_log_group_arns" { - value = try(aws_cloudwatch_log_group.service_logs[*].arn, null) + value = try([for k, v in aws_cloudwatch_log_group.service_logs : v.arn], null) description = "aws cloudwatch log group arns" } output "lb_listener_certificate" { - value = try(aws_lb_listener_certificate.this[*].listener_arn, null) + value = try([for k, v in aws_lb_listener_certificate.this : v.listener_arn], null) description = "lb listener certificate" } @@ -39,7 +39,7 @@ output "acm_arn" { } output "target_group_arns" { - value = try(aws_lb_target_group.service[*].arn, null) + value = try([for k, v in aws_lb_target_group.service : v.arn], null) description = "target group arns" }