Skip to content

Commit 71b06ab

Browse files
authored
Merge pull request #38 from sourcefuse/listeners
Added Listener arns in outputs #minor
2 parents 0a7b009 + 5a0eba3 commit 71b06ab

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ module "ecs" {
137137
| <a name="output_alb_certificate_arn"></a> [alb\_certificate\_arn](#output\_alb\_certificate\_arn) | ACM Certificate ARN |
138138
| <a name="output_alb_dns_name"></a> [alb\_dns\_name](#output\_alb\_dns\_name) | External DNS name to the ALB |
139139
| <a name="output_alb_dns_zone_id"></a> [alb\_dns\_zone\_id](#output\_alb\_dns\_zone\_id) | External DNS name to the ALB |
140-
| <a name="output_alb_https_listener_arn"></a> [alb\_https\_listener\_arn](#output\_alb\_https\_listener\_arn) | HTTPs listener ARN for downstream services to use |
141-
| <a name="output_alb_security_group_id"></a> [alb\_security\_group\_id](#output\_alb\_security\_group\_id) | HTTPs listener ARN for downstream services to use |
140+
| <a name="output_alb_http_listener_arn"></a> [alb\_http\_listener\_arn](#output\_alb\_http\_listener\_arn) | HTTP listener ARN for downstream services to use |
141+
| <a name="output_alb_https_listener_arn"></a> [alb\_https\_listener\_arn](#output\_alb\_https\_listener\_arn) | HTTPS listener ARN for downstream services to use |
142+
| <a name="output_alb_security_group_id"></a> [alb\_security\_group\_id](#output\_alb\_security\_group\_id) | ALB Security Group |
142143
| <a name="output_cluster_arn"></a> [cluster\_arn](#output\_cluster\_arn) | ECS Cluster ARN |
143144
| <a name="output_cluster_id"></a> [cluster\_id](#output\_cluster\_id) | ECS Cluster ID |
144145
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | ECS Cluster name |

locals.tf

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ locals {
44

55
## ssm
66
ssm_params = concat(var.additional_ssm_params, [
7-
## alb
7+
# alb
88
{
99
name = "/${var.namespace}/${var.environment}/alb/${module.alb.alb_name}/endpoint"
1010
value = module.alb.alb_dns_name
@@ -29,6 +29,19 @@ locals {
2929
description = "ALB Health Check FQDN."
3030
type = "String"
3131
},
32+
## listeners
33+
{
34+
name = "/${var.namespace}/${var.environment}/alb/${module.alb.alb_name}/http-listener/arn"
35+
value = aws_lb_listener.http.arn
36+
description = "ARN of the HTTP listener"
37+
type = "String"
38+
},
39+
{
40+
name = "/${var.namespace}/${var.environment}/alb/${module.alb.alb_name}/https-listener/arn"
41+
value = aws_lb_listener.https.arn
42+
description = "ARN of the HTTPS listener"
43+
type = "String"
44+
},
3245

3346
## acm
3447
{

outputs.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@ output "health_check_fqdn" {
4141

4242
output "alb_https_listener_arn" {
4343
value = aws_lb_listener.https.arn
44-
description = "HTTPs listener ARN for downstream services to use"
44+
description = "HTTPS listener ARN for downstream services to use"
45+
}
46+
47+
output "alb_http_listener_arn" {
48+
value = aws_lb_listener.http.arn
49+
description = "HTTP listener ARN for downstream services to use"
4550
}
4651

4752
output "alb_security_group_id" {
4853
value = module.alb_sg.id
49-
description = "HTTPs listener ARN for downstream services to use"
54+
description = "ALB Security Group"
5055
}
5156

5257
################################################################################

0 commit comments

Comments
 (0)