Skip to content

Commit 0178d70

Browse files
authored
feat: Add load_balancing_cross_zone_enabled option to aws_lb_target_group (#282)
Co-authored-by: magreenbaum <magreenbaum>
1 parent e7c33ba commit 0178d70

File tree

8 files changed

+16
-14
lines changed

8 files changed

+16
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ module "lb" {
295295
| Name | Version |
296296
|------|---------|
297297
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
298-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.27 |
298+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.59 |
299299

300300
## Providers
301301

302302
| Name | Version |
303303
|------|---------|
304-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.27 |
304+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.59 |
305305

306306
## Modules
307307

examples/complete-alb/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.27 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.59 |
2424
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.0 |
2525

2626
## Providers
2727

2828
| Name | Version |
2929
|------|---------|
30-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.27 |
30+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.59 |
3131
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.0 |
3232

3333
## Modules

examples/complete-alb/main.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,12 @@ module "alb" {
358358

359359
target_groups = [
360360
{
361-
name_prefix = "h1"
362-
backend_protocol = "HTTP"
363-
backend_port = 80
364-
target_type = "instance"
365-
deregistration_delay = 10
361+
name_prefix = "h1"
362+
backend_protocol = "HTTP"
363+
backend_port = 80
364+
target_type = "instance"
365+
deregistration_delay = 10
366+
load_balancing_cross_zone_enabled = false
366367
health_check = {
367368
enabled = true
368369
interval = 30

examples/complete-alb/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.27"
7+
version = ">= 4.59"
88
}
99
null = {
1010
source = "hashicorp/null"

examples/complete-nlb/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.27 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.59 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.27 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.59 |
3030

3131
## Modules
3232

examples/complete-nlb/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.27"
7+
version = ">= 4.59"
88
}
99
}
1010
}

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ resource "aws_lb_target_group" "main" {
7979
load_balancing_algorithm_type = try(var.target_groups[count.index].load_balancing_algorithm_type, null)
8080
preserve_client_ip = try(var.target_groups[count.index].preserve_client_ip, null)
8181
ip_address_type = try(var.target_groups[count.index].ip_address_type, null)
82+
load_balancing_cross_zone_enabled = try(var.target_groups[count.index].load_balancing_cross_zone_enabled, null)
8283

8384
dynamic "health_check" {
8485
for_each = try([var.target_groups[count.index].health_check], [])

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.27"
7+
version = ">= 4.59"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)