File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ output "ecs_cluster_name" {
5
5
6
6
output "ecs_service_name" {
7
7
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
9
9
}
10
10
11
11
output "ecs_service_arn" {
12
12
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
14
14
}
15
15
16
16
output "ecs_task_definition_arn" {
17
17
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
19
19
}
You can’t perform that action at this time.
0 commit comments