Skip to content

Commit fd7434b

Browse files
style: align terraform variable assignments and clean whitespace
Standardizes formatting of value assignments in Terraform files to improve readability.
1 parent af27ba1 commit fd7434b

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

_outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ output "alb_internal_listener_test_traffic_arn" {
8787
}
8888

8989
output "alb_path_based_routing_rules" {
90-
value = try(aws_lb_listener_rule.path_based_routing.*.id, [])
90+
value = try(aws_lb_listener_rule.path_based_routing.*.id, [])
9191
description = "IDs of the path-based routing rules for the external ALB"
9292
}
9393

9494
output "alb_internal_path_based_routing_rules" {
95-
value = try(aws_lb_listener_rule.path_based_routing_internal.*.id, [])
95+
value = try(aws_lb_listener_rule.path_based_routing_internal.*.id, [])
9696
description = "IDs of the path-based routing rules for the internal ALB"
9797
}
9898

alb-listener-rules.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ resource "aws_lb_listener_rule" "path_based_routing" {
1717

1818
dynamic "condition" {
1919
for_each = var.alb_listener_rules[count.index].host_header != null ? [1] : []
20-
20+
2121
content {
2222
host_header {
2323
values = [var.alb_listener_rules[count.index].host_header]
@@ -52,7 +52,7 @@ resource "aws_lb_listener_rule" "path_based_routing_test" {
5252

5353
dynamic "condition" {
5454
for_each = var.alb_listener_rules[count.index].host_header != null ? [1] : []
55-
55+
5656
content {
5757
host_header {
5858
values = [var.alb_listener_rules[count.index].host_header]
@@ -87,7 +87,7 @@ resource "aws_lb_listener_rule" "path_based_routing_internal" {
8787

8888
dynamic "condition" {
8989
for_each = var.alb_internal_listener_rules[count.index].host_header != null ? [1] : []
90-
90+
9191
content {
9292
host_header {
9393
values = [var.alb_internal_listener_rules[count.index].host_header]
@@ -122,7 +122,7 @@ resource "aws_lb_listener_rule" "path_based_routing_internal_test" {
122122

123123
dynamic "condition" {
124124
for_each = var.alb_internal_listener_rules[count.index].host_header != null ? [1] : []
125-
125+
126126
content {
127127
host_header {
128128
values = [var.alb_internal_listener_rules[count.index].host_header]

example/ecs-app-path-routing.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ module "ecs_app_wordpress_01" {
1616
hostname_blue = "wp01-blue.labs.dnx.host"
1717
hostname_origin = "wp01-origin.labs.dnx.host"
1818
hosted_zone = "labs.dnx.host"
19-
certificate_arn = local.workspace["cf_certificate_arn"]
20-
healthcheck_path = "/readme.html"
21-
service_health_check_grace_period_seconds = 120
19+
certificate_arn = local.workspace["cf_certificate_arn"]
20+
healthcheck_path = "/readme.html"
21+
service_health_check_grace_period_seconds = 120
2222
}
2323

2424
# Second service - API
@@ -37,9 +37,9 @@ module "ecs_app_api" {
3737
hostname_blue = "api-blue.labs.dnx.host"
3838
hostname_origin = "api-origin.labs.dnx.host"
3939
hosted_zone = "labs.dnx.host"
40-
certificate_arn = local.workspace["cf_certificate_arn"]
41-
healthcheck_path = "/health"
42-
service_health_check_grace_period_seconds = 120
40+
certificate_arn = local.workspace["cf_certificate_arn"]
41+
healthcheck_path = "/health"
42+
service_health_check_grace_period_seconds = 120
4343
}
4444

4545
# Configure path-based routing in the ECS cluster module

0 commit comments

Comments
 (0)