-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
75 lines (60 loc) · 2.14 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
65
66
67
68
69
70
71
72
73
74
output "ecs_service_arn" {
value = try(aws_ecs_service.service.id, null)
description = "ecs_service_arn"
}
output "ecs_service_security_group_ids" {
value = try(values(module.service_container_sg)[*].security_group_id, null)
description = "ecs service security group ids"
}
output "container_definitions" {
value = try(jsonencode(values(module.service_container_definition)[*].json_map_object), null)
description = "container definitions of your task definition"
}
output "ecs_task_definition_arn" {
value = try(aws_ecs_task_definition.service.arn, null)
description = "task definition arn"
}
output "ecs_service_name" {
value = try(aws_ecs_service.service.name, null)
description = "ecs service name"
}
output "cloudwatch_log_group_arns" {
value = try([for k, v in aws_cloudwatch_log_group.service_logs : v.arn], null)
description = "aws cloudwatch log group arns"
}
output "lb_listener_certificate" {
value = try([for k, v in aws_lb_listener_certificate.this : v.listener_arn], null)
description = "lb listener certificate"
}
output "acm_arn" {
value = try(module.acm.acm_certificate_arn, null)
description = "acm arn"
}
output "target_group_arns" {
value = try([for k, v in aws_lb_target_group.service : v.arn], null)
description = "target group arns"
}
output "lb_listener_rule_arns" {
value = try(aws_lb_listener_rule.service[*].arn, null)
description = "load balancer listener rules arns"
}
output "ecs_task_execution_role_arn" {
value = module.ecs_task_execution_role.iam_role_arn
description = "ecs task execution role arn"
}
output "ecs_task_policy_arn" {
value = module.ecs_task_policy.arn
description = "ecs task policy arn"
}
output "ecs_task_role_arn" {
value = module.ecs_task_role.iam_role_arn
description = "ecs task role arn"
}
output "records_lb_names" {
value = try(aws_route53_record.lb_records[*].name, null)
description = "load balancers records names"
}
output "service_container_sg_ids" {
value = try(module.service_container_sg[*].security_group_id, null)
description = "service container sg ids"
}