-
Notifications
You must be signed in to change notification settings - Fork 2
/
output.tf
157 lines (128 loc) · 3.25 KB
/
output.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
output "private_subnets" {
value = "${module.vpc.private_subnets}"
}
output "nat_public_ips" {
value = "${module.vpc.nat_public_ips}"
}
output "vpc_id" {
value = "${module.vpc.vpc_id}"
}
output "public_subnets" {
value = "${module.vpc.public_subnets}"
}
output "vpc_main_route_table_id" {
value = "${module.vpc.vpc_main_route_table_id}"
}
output "private_route_table_ids" {
value = "${module.vpc.private_route_table_ids}"
}
output "vpc_igw_id" {
value = "${module.vpc.igw_id}"
}
output "vpc_nat_ids" {
value = "${module.vpc.nat_ids}"
}
output "default_security_group_id" {
value = "${module.vpc.default_security_group_id}"
}
output "database_subnets" {
value = "${module.vpc.database_subnets}"
}
output "database_subnet_group" {
value = "${module.vpc.database_subnet_group}"
}
output "cluster_id" {
value = "${module.ecs-cluster.cluster_id}"
depends_on = [
module.vpc.default_security_group_id,
]
}
output "cluster_arn" {
value = "${module.ecs-cluster.cluster_arn}"
depends_on = [
module.vpc.default_security_group_id,
]
}
output "asg_name" {
value = "${module.ecs-cluster.asg_name}"
depends_on = [
module.vpc.default_security_group_id,
module.vpc.private_subnets,
]
}
output "db_address" {
value = module.database.db_address
description = "The address of the database"
depends_on = [
module.vpc.default_security_group_id,
module.vpc.private_subnets,
]
}
output "db_port" {
value = module.database.db_port
description = "The port of the database"
depends_on = [
module.vpc.default_security_group_id,
module.vpc.private_subnets,
]
}
output "db_name" {
value = module.database.db_name
description = "The name of the database"
depends_on = [
module.vpc.default_security_group_id,
module.vpc.private_subnets,
]
}
output "db_status" {
value = module.database.db_status
description = "The status of the database"
}
##### ALB ####
output "alb_tg_arn" {
value = module.alb.alb_tg_arn
description = "The ARN of the ALB target group"
}
output "alb_tg_id" {
value = module.alb.alb_tg_id
description = "The ID of the ALB target group"
}
output "alb_tg_name" {
value = module.alb.alb_tg_name
description = "The name of the ALB target group"
}
output "alb_id" {
value = module.alb.alb_id
description = "The ID of the ALB"
}
output "alb_dns_name" {
value = module.alb.alb_dns_name
description = "The ID of the ALB"
}
output "alb_listener_arn" {
value = module.alb.alb_listener_arn
description = "The ARN of the ALB listener"
}
output "alb_listener_id" {
value = module.alb.alb_listener_id
description = "The ID of the ALB listener"
}
###--- TASK DEFINITION ---###
output "task_definition_arn" {
value = module.service.task_definition_arn
}
output "task_definition_family" {
value = module.service.task_definition_family
}
output "task_definition_revision" {
value = module.service.task_definition_revision
}
##### ECS SERVICE ####
output "ecs_service_arn" {
value = module.service.ecs_service_arn
description = "The ARN of the ECS service"
}
output "ecs_desired_count" {
value = module.service.ecs_desired_count
description = "The desired count of the ECS service"
}