Skip to content

Commit c5cb602

Browse files
committed
adding ec2
1 parent f0149f2 commit c5cb602

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

examples/ecs-ec2/outputs.tf

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,3 @@ output "ecs_cluster_name" {
22
description = "The name of the ECS cluster"
33
value = module.ecs_cluster.ecs_cluster_name
44
}
5-
6-
output "ecs_service_name" {
7-
description = "The name of the ECS service"
8-
value = module.ecs_services.service_name
9-
}
10-
11-
output "ecs_service_arn" {
12-
description = "The ARN of the ECS service"
13-
value = module.ecs_services.ecs_service_arn
14-
}
15-
16-
output "ecs_task_definition_arn" {
17-
description = "The ARN of the ECS task definition"
18-
value = module.ecs_services.ecs_task_definition_arn
19-
}

examples/ecs-fargate/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
output "ecs_cluster_name" {
2+
description = "The name of the ECS cluster"
3+
value = module.ecs_cluster.ecs_cluster_name
4+
}

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)