Skip to content

Commit beda3ed

Browse files
committed
adding ec2
1 parent 6905a73 commit beda3ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

outputs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ output "ecs_cluster_name" {
55

66
output "ecs_service_name" {
77
description = "The name of the ECS service"
8-
value = module.ecs_service[0].service_name
8+
value = length(module.ecs_service) > 0 ? module.ecs_service[0].ecs_service_name : null
99
}
1010

1111
output "ecs_service_arn" {
1212
description = "The ARN of the ECS service"
13-
value = module.ecs_service[0].ecs_service_arn
13+
value = length(module.ecs_service) > 0 ? module.ecs_service[0].ecs_service_arn : null
1414
}
1515

1616
output "ecs_task_definition_arn" {
1717
description = "The ARN of the ECS task definition"
18-
value = module.ecs_service[0].ecs_task_definition_arn
18+
value = length(module.ecs_service) > 0 ? module.ecs_service[0].ecs_task_definition_arn : null
1919
}

0 commit comments

Comments
 (0)