-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathoutputs.tf
64 lines (52 loc) · 1.95 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
output "service_arn" {
description = "The Amazon Resource Name (ARN) that identifies the ECS service."
value = aws_ecs_service.service.id
}
output "target_group_arn" {
description = "The ARN of the Target Group used by Load Balancer."
value = [for tg_arn in aws_lb_target_group.task : tg_arn.arn]
}
output "target_group_name" {
description = "The Name of the Target Group used by Load Balancer."
value = [for tg_name in aws_lb_target_group.task : tg_name.name]
}
output "task_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the ECS service role."
value = aws_iam_role.task.arn
}
output "task_role_name" {
description = "The name of the Fargate task service role."
value = aws_iam_role.task.name
}
output "service_sg_id" {
description = "The Amazon Resource Name (ARN) that identifies the service security group."
value = aws_security_group.ecs_service.id
}
output "service_name" {
description = "The name of the service."
value = aws_ecs_service.service.name
}
output "log_group_name" {
description = "The name of the Cloudwatch log group for the task."
value = var.enable_logs ? aws_cloudwatch_log_group.main[0].name : null
}
output "execution_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the ECS execution role."
value = aws_iam_role.execution.arn
}
output "execution_role_name" {
description = "The name of the ECS execution role."
value = aws_iam_role.execution.name
}
output "task_definition_arn" {
description = "The Amazon Resource Name (ARN) of the task definition created"
value = aws_ecs_task_definition.task.arn
}
output "task_definition_name" {
description = "The name of the task definition created"
value = aws_ecs_task_definition.task.arn
}
output "task_definition_container_definitions" {
description = "A list of container definitions"
value = aws_ecs_task_definition.task.container_definitions
}