Skip to content

Commit 3005be3

Browse files
author
James Crowley
authored
Merge pull request #22 from sourcefuse/chore/add-output
add additional outputs
2 parents ef08f91 + e95eb43 commit 3005be3

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.3
1+
1.2.4

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ module "ecs" {
135135
| <a name="output_alb_arn"></a> [alb\_arn](#output\_alb\_arn) | ARN to the ALB |
136136
| <a name="output_alb_certificate_arn"></a> [alb\_certificate\_arn](#output\_alb\_certificate\_arn) | ACM Certificate ARN |
137137
| <a name="output_alb_dns_name"></a> [alb\_dns\_name](#output\_alb\_dns\_name) | External DNS name to the ALB |
138+
| <a name="output_alb_dns_zone_id"></a> [alb\_dns\_zone\_id](#output\_alb\_dns\_zone\_id) | External DNS name to the ALB |
139+
| <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 |
140+
| <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 |
138141
| <a name="output_cluster_arn"></a> [cluster\_arn](#output\_cluster\_arn) | ECS Cluster ARN |
139142
| <a name="output_cluster_id"></a> [cluster\_id](#output\_cluster\_id) | ECS Cluster ID |
140143
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | ECS Cluster name |

modules/health-check/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ resource "aws_lb_listener_rule" "forward" {
117117
}
118118

119119
condition {
120-
path_pattern {
121-
values = [var.health_check_path_pattern]
120+
host_header {
121+
values = var.health_check_route_53_records
122122
}
123123
}
124124

outputs.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,26 @@ output "alb_dns_name" {
2929
value = module.alb.alb_dns_name
3030
}
3131

32+
output "alb_dns_zone_id" {
33+
description = "External DNS name to the ALB"
34+
value = module.alb.alb_zone_id
35+
}
36+
3237
output "health_check_fqdn" {
3338
description = "Health check FQDN record created in Route 53."
3439
value = module.health_check.route_53_fqdn
3540
}
3641

42+
output "alb_https_listener_arn" {
43+
value = aws_lb_listener.https.arn
44+
description = "HTTPs listener ARN for downstream services to use"
45+
}
46+
47+
output "alb_security_group_id" {
48+
value = module.alb_sg.id
49+
description = "HTTPs listener ARN for downstream services to use"
50+
}
51+
3752
################################################################################
3853
## acm
3954
################################################################################

0 commit comments

Comments
 (0)