Skip to content

Commit 9261b3b

Browse files
committed
Adding outputs
1 parent 0202352 commit 9261b3b

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed

outputs.tf

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,129 @@ output "ecs_tasks_sg_description" {
4444
value = aws_security_group.ecs_tasks_sg.description
4545
}
4646

47+
#------------------------------------------------------------------------------
48+
# APPLICATION LOAD BALANCER
49+
#------------------------------------------------------------------------------
50+
output "aws_lb_lb_id" {
51+
description = "The ARN of the load balancer (matches arn)."
52+
value = module.ecs-alb.aws_lb_lb_id
53+
}
54+
55+
output "aws_lb_lb_arn" {
56+
description = "The ARN of the load balancer (matches id)."
57+
value = module.ecs-alb.aws_lb_lb_arn
58+
}
59+
60+
output "aws_lb_lb_arn_suffix" {
61+
description = "The ARN suffix for use with CloudWatch Metrics."
62+
value = module.ecs-alb.aws_lb_lb_arn_suffix
63+
}
64+
65+
output "aws_lb_lb_dns_name" {
66+
description = "The DNS name of the load balancer."
67+
value = module.ecs-alb.aws_lb_lb_dns_name
68+
}
69+
70+
output "aws_lb_lb_zone_id" {
71+
description = "The canonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record)."
72+
value = module.ecs-alb.aws_lb_lb_zone_id
73+
}
74+
75+
#------------------------------------------------------------------------------
76+
# ACCESS CONTROL TO APPLICATION LOAD BALANCER
77+
#------------------------------------------------------------------------------
78+
output "aws_security_group_lb_access_sg_id" {
79+
description = "The ID of the security group"
80+
value = module.ecs-alb.aws_security_group_lb_access_sg_id
81+
}
82+
83+
output "aws_security_group_lb_access_sg_arn" {
84+
description = "The ARN of the security group"
85+
value = module.ecs-alb.aws_security_group_lb_access_sg_arn
86+
}
87+
88+
output "aws_security_group_lb_access_sg_vpc_id" {
89+
description = "The VPC ID."
90+
value = module.ecs-alb.aws_security_group_lb_access_sg_vpc_id
91+
}
92+
93+
output "aws_security_group_lb_access_sg_owner_id" {
94+
description = "The owner ID."
95+
value = module.ecs-alb.aws_security_group_lb_access_sg_owner_id
96+
}
97+
98+
output "aws_security_group_lb_access_sg_name" {
99+
description = "The name of the security group"
100+
value = module.ecs-alb.aws_security_group_lb_access_sg_name
101+
}
102+
103+
output "aws_security_group_lb_access_sg_description" {
104+
description = "The description of the security group"
105+
value = module.ecs-alb.aws_security_group_lb_access_sg_description
106+
}
107+
108+
output "aws_security_group_lb_access_sg_ingress" {
109+
description = "The ingress rules."
110+
value = module.ecs-alb.aws_security_group_lb_access_sg_ingress
111+
}
112+
113+
output "aws_security_group_lb_access_sg_egress" {
114+
description = "The egress rules."
115+
value = module.ecs-alb.aws_security_group_lb_access_sg_egress
116+
}
117+
118+
#------------------------------------------------------------------------------
119+
# AWS LOAD BALANCER - Target Groups
120+
#------------------------------------------------------------------------------
121+
output "lb_http_tgs_ids" {
122+
description = "List of HTTP Target Groups IDs"
123+
value = module.ecs-alb.lb_http_tgs_ids
124+
}
125+
126+
output "lb_http_tgs_arns" {
127+
description = "List of HTTP Target Groups ARNs"
128+
value = module.ecs-alb.lb_http_tgs_arns
129+
}
130+
131+
output "lb_http_tgs_names" {
132+
description = "List of HTTP Target Groups Names"
133+
value = module.ecs-alb.lb_http_tgs_names
134+
}
135+
136+
output "lb_https_tgs_ids" {
137+
description = "List of HTTPS Target Groups IDs"
138+
value = module.ecs-alb.lb_https_tgs_ids
139+
}
140+
141+
output "lb_https_tgs_arns" {
142+
description = "List of HTTPS Target Groups ARNs"
143+
value = module.ecs-alb.lb_https_tgs_arns
144+
}
145+
146+
output "lb_https_tgs_names" {
147+
description = "List of HTTPS Target Groups Names"
148+
value = module.ecs-alb.lb_https_tgs_names
149+
}
150+
151+
#------------------------------------------------------------------------------
152+
# AWS LOAD BALANCER - Listeners
153+
#------------------------------------------------------------------------------
154+
output "lb_http_listeners_ids" {
155+
description = "List of HTTP Listeners IDs"
156+
value = module.ecs-alb.lb_http_listeners_ids
157+
}
158+
159+
output "lb_http_listeners_arns" {
160+
description = "List of HTTP Listeners ARNs"
161+
value = module.ecs-alb.lb_http_listeners_arns
162+
}
163+
164+
output "lb_https_listeners_ids" {
165+
description = "List of HTTPS Listeners IDs"
166+
value = module.ecs-alb.lb_https_listeners_ids
167+
}
168+
169+
output "lb_https_listeners_arns" {
170+
description = "List of HTTPS Listeners ARNs"
171+
value = module.ecs-alb.lb_https_listeners_arns
172+
}

0 commit comments

Comments
 (0)