Skip to content

Commit ebc7b1a

Browse files
authored
feat: Added outputs of ECS and ALB resources (#216)
1 parent f95540c commit ebc7b1a

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,19 @@ allow_github_webhooks = true
365365

366366
| Name | Description |
367367
|------|-------------|
368+
| <a name="output_alb_arn"></a> [alb\_arn](#output\_alb\_arn) | ARN of alb |
368369
| <a name="output_alb_dns_name"></a> [alb\_dns\_name](#output\_alb\_dns\_name) | Dns name of alb |
370+
| <a name="output_alb_http_listeners_arn"></a> [alb\_http\_listeners\_arn](#output\_alb\_http\_listeners\_arn) | ARNs of alb http listeners |
371+
| <a name="output_alb_http_listeners_id"></a> [alb\_http\_listeners\_id](#output\_alb\_http\_listeners\_id) | Ids of alb http listeners |
372+
| <a name="output_alb_https_listeners_arn"></a> [alb\_https\_listeners\_arn](#output\_alb\_https\_listeners\_arn) | ARN of alb https listeners |
373+
| <a name="output_alb_https_listeners_id"></a> [alb\_https\_listeners\_id](#output\_alb\_https\_listeners\_id) | Ids of alb https listeners |
374+
| <a name="output_alb_security_group_id"></a> [alb\_security\_group\_id](#output\_alb\_security\_group\_id) | Security group of alb |
369375
| <a name="output_alb_zone_id"></a> [alb\_zone\_id](#output\_alb\_zone\_id) | Zone ID of alb |
370376
| <a name="output_atlantis_allowed_repo_names"></a> [atlantis\_allowed\_repo\_names](#output\_atlantis\_allowed\_repo\_names) | Git repositories where webhook should be created |
371377
| <a name="output_atlantis_url"></a> [atlantis\_url](#output\_atlantis\_url) | URL of Atlantis |
372378
| <a name="output_atlantis_url_events"></a> [atlantis\_url\_events](#output\_atlantis\_url\_events) | Webhook events URL of Atlantis |
379+
| <a name="output_ecs_cluster_arn"></a> [ecs\_cluster\_arn](#output\_ecs\_cluster\_arn) | ECS cluster ARN |
380+
| <a name="output_ecs_cluster_id"></a> [ecs\_cluster\_id](#output\_ecs\_cluster\_id) | ECS cluster id |
373381
| <a name="output_ecs_security_group"></a> [ecs\_security\_group](#output\_ecs\_security\_group) | Security group assigned to ECS Service in network configuration |
374382
| <a name="output_ecs_task_definition"></a> [ecs\_task\_definition](#output\_ecs\_task\_definition) | Task definition for ECS service (used for external triggers) |
375383
| <a name="output_private_subnet_ids"></a> [private\_subnet\_ids](#output\_private\_subnet\_ids) | IDs of the VPC private subnets that were created or passed in |

outputs.tf

+40
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ output "ecs_security_group" {
5050
value = module.atlantis_sg.this_security_group_id
5151
}
5252

53+
output "ecs_cluster_id" {
54+
description = "ECS cluster id"
55+
value = module.ecs.this_ecs_cluster_id
56+
}
57+
58+
output "ecs_cluster_arn" {
59+
description = "ECS cluster ARN"
60+
value = module.ecs.this_ecs_cluster_arn
61+
}
62+
5363
# VPC
5464
output "vpc_id" {
5565
description = "ID of the VPC that was created or passed in"
@@ -76,3 +86,33 @@ output "alb_zone_id" {
7686
description = "Zone ID of alb"
7787
value = module.alb.this_lb_zone_id
7888
}
89+
90+
output "alb_arn" {
91+
description = "ARN of alb"
92+
value = module.alb.this_lb_arn
93+
}
94+
95+
output "alb_security_group_id" {
96+
description = "Security group of alb"
97+
value = module.alb_https_sg.this_security_group_id
98+
}
99+
100+
output "alb_http_listeners_id" {
101+
description = "Ids of alb http listeners"
102+
value = module.alb.http_tcp_listener_ids
103+
}
104+
105+
output "alb_http_listeners_arn" {
106+
description = "ARNs of alb http listeners"
107+
value = module.alb.http_tcp_listener_arns
108+
}
109+
110+
output "alb_https_listeners_id" {
111+
description = "Ids of alb https listeners"
112+
value = module.alb.https_listener_ids
113+
}
114+
115+
output "alb_https_listeners_arn" {
116+
description = "ARN of alb https listeners"
117+
value = module.alb.https_listener_arns
118+
}

0 commit comments

Comments
 (0)