Skip to content

Commit f0149f2

Browse files
committed
adding ec2
1 parent eadbc4e commit f0149f2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/ecs-ec2/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_services[*].service_name
8+
value = module.ecs_services.service_name
99
}
1010

1111
output "ecs_service_arn" {
1212
description = "The ARN of the ECS service"
13-
value = module.ecs_services[*].ecs_service_arn
13+
value = module.ecs_services.ecs_service_arn
1414
}
1515

1616
output "ecs_task_definition_arn" {
1717
description = "The ARN of the ECS task definition"
18-
value = module.ecs_services[*].ecs_task_definition_arn
18+
value = module.ecs_services.ecs_task_definition_arn
1919
}

modules/ecs-service/outputs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
output "service_name" {
22
description = "The name of the ECS service."
3-
value = aws_ecs_service.this.name
3+
value = aws_ecs_service.this[*].name
44
}
55

66
output "ecs_task_definition_arn" {
77
description = "The ARN of the ECS task definition"
8-
value = aws_ecs_task_definition.this.arn
8+
value = aws_ecs_task_definition.this[*].arn
99
}
1010

1111
output "ecs_task_role_arn" {
1212
description = "The ARN of the IAM role assigned to the ECS task"
13-
value = aws_iam_role.task_role.arn
13+
value = aws_iam_role.task_role[*].arn
1414
}
1515

1616
output "ecs_service_arn" {
1717
description = "The ARN of the ECS service"
18-
value = aws_ecs_service.this.id
18+
value = aws_ecs_service.this[*].id
1919
}

0 commit comments

Comments
 (0)