Skip to content

Commit 4920998

Browse files
authored
Output ALB listener ARNs from aws-ecs-service (#141)
1 parent f4e551e commit 4920998

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

aws-ecs-service-fargate/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ resolvable from within the VPC; it is not publicly resolvable.
188188
|------|-------------|
189189
| alb\_access\_logs\_prefix | ALB access logs S3 prefix |
190190
| alb\_dns\_name | |
191+
| alb\_http\_listener\_arn | ALB HTTPS listener ARN" |
192+
| alb\_https\_listener\_arn | ALB HTTP listener ARN, only if HTTPS forwarding is disabled |
191193
| alb\_route53\_zone\_id | |
192194
| container\_security\_group\_id | Security group id for the container. |
193195
| ecs\_task\_definition\_family | The family of the task definition defined for the given/generated container definition. |

aws-ecs-service-fargate/outputs.tf

+10
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ output "alb_access_logs_prefix" {
2525
description = "ALB access logs S3 prefix"
2626
value = local.access_logs_prefix
2727
}
28+
29+
output "alb_https_listener_arn" {
30+
description = "ALB HTTPS listener ARN"
31+
value = aws_lb_listener.https.arn
32+
}
33+
34+
output "alb_http_listener_arn" {
35+
description = "ALB HTTP listener ARN, only if HTTPS forwarding is disabled"
36+
value = var.disable_http_redirect ? aws_lb_listener.http.arn : null
37+
}

aws-ecs-service/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ resolvable from within the VPC; it is not publicly resolvable.
178178
|------|-------------|
179179
| alb\_access\_logs\_prefix | ALB access logs S3 prefix |
180180
| alb\_dns\_name | |
181+
| alb\_http\_listener\_arn | ALB HTTPS listener ARN" |
182+
| alb\_https\_listener\_arn | ALB HTTP listener ARN, only if HTTPS forwarding is disabled |
181183
| alb\_route53\_zone\_id | |
182184
| container\_security\_group\_id | Security group id for the container. |
183185
| ecs\_task\_definition\_family | The family of the task definition defined for the given/generated container definition. |
184186
| private\_service\_discovery\_domain | Domain name for service discovery, if with_service_discovery=true. Only resolvable within the VPC. |
185-
186187
<!-- END -->

aws-ecs-service/outputs.tf

+10
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ output "alb_access_logs_prefix" {
2525
description = "ALB access logs S3 prefix"
2626
value = local.access_logs_prefix
2727
}
28+
29+
output "alb_https_listener_arn" {
30+
description = "ALB HTTPS listener ARN"
31+
value = aws_lb_listener.https.arn
32+
}
33+
34+
output "alb_http_listener_arn" {
35+
description = "ALB HTTP listener ARN, only if HTTPS forwarding is disabled"
36+
value = var.disable_http_redirect ? aws_lb_listener.http.arn : null
37+
}

0 commit comments

Comments
 (0)