-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathoutputs.tf
58 lines (47 loc) · 1.73 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
# ------------------------------------------------------------------------------
# Output
# ------------------------------------------------------------------------------
output "service_arn" {
description = "The Amazon Resource Name (ARN) that identifies the service."
value = aws_ecs_service.service.id
}
output "target_group_arn" {
description = "The ARN of the Target Group."
value = var.lb_arn == "" ? null : aws_lb_target_group.task[0].arn
}
output "target_group_name" {
description = "The Name of the Target Group."
value = var.lb_arn == "" ? null : aws_lb_target_group.task[0].name
}
output "task_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the service role."
value = aws_iam_role.task.arn
}
output "task_role_name" {
description = "The name of the service role."
value = aws_iam_role.task.name
}
output "task_execution_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the execution service role."
value = aws_iam_role.execution.arn
}
output "task_execution_role_name" {
description = "The name of the execution service role."
value = aws_iam_role.execution.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.log_group_name != "" ? var.log_group_name : aws_cloudwatch_log_group.main.0.name
}
output "desired_count" {
description = "Desired count"
value = var.desired_count
}