Skip to content

Commit a329f5e

Browse files
committed
Added support form minimum_load_balancer_capacity.
Support for `minimum_load_balancer_capacity` was added to terraform-provider-aws [v5.99.0](https://github.com/hashicorp/terraform-provider-aws/releases/tag/v5.99.0). If you have an ALB with minimum load balancer capacity configured applying the `terraform-aws-modules/alb/aws` with the lastest version of terraform-provider-aws would result in the setting being wiped out.
1 parent 03cdf9d commit a329f5e

File tree

16 files changed

+39
-17
lines changed

16 files changed

+39
-17
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,13 @@ See [patterns.md](https://github.com/terraform-aws-modules/terraform-aws-alb/blo
352352
| Name | Version |
353353
|------|---------|
354354
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
355-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.93 |
355+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.99 |
356356

357357
## Providers
358358

359359
| Name | Version |
360360
|------|---------|
361-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.93 |
361+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.99 |
362362

363363
## Modules
364364

@@ -414,6 +414,7 @@ No modules.
414414
| <a name="input_ipam_pools"></a> [ipam\_pools](#input\_ipam\_pools) | The IPAM pools to use with the load balancer | `map(string)` | `{}` | no |
415415
| <a name="input_listeners"></a> [listeners](#input\_listeners) | Map of listener configurations to create | `any` | `{}` | no |
416416
| <a name="input_load_balancer_type"></a> [load\_balancer\_type](#input\_load\_balancer\_type) | The type of load balancer to create. Possible values are `application`, `gateway`, or `network`. The default value is `application` | `string` | `"application"` | no |
417+
| <a name="input_minimum_load_balancer_capacity"></a> [minimum_load_balancer_capacity](#input\_minimum\_load\_balancer\_capacity) | Minimum capacity for a load balancer. Only valid for Load Balancers of type `application` or `network`. | `number` | `null` | no |
417418
| <a name="input_name"></a> [name](#input\_name) | The name of the LB. This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen | `string` | `null` | no |
418419
| <a name="input_name_prefix"></a> [name\_prefix](#input\_name\_prefix) | Creates a unique name beginning with the specified prefix. Conflicts with `name` | `string` | `null` | no |
419420
| <a name="input_preserve_host_header"></a> [preserve\_host\_header](#input\_preserve\_host\_header) | Indicates whether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change. Defaults to `false` | `bool` | `null` | no |

examples/complete-alb/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ 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) | >= 5.93 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.99 |
2424
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.0 |
2525
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.6 |
2626

2727
## Providers
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.93 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.99 |
3232
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.0 |
3333
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.6 |
3434

examples/complete-alb/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ module "alb" {
7171
ipv4_ipam_pool_id = aws_vpc_ipam_pool.this.id
7272
}
7373

74+
minimum_load_balancer_capacity = 10
75+
7476
client_keep_alive = 7200
7577

7678
listeners = {

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 = ">= 5.93"
7+
version = ">= 5.99"
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) | >= 5.93 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.99 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.93 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.99 |
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 = ">= 5.93"
7+
version = ">= 5.99"
88
}
99
}
1010
}

examples/mutual-auth-alb/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ Note that this example may create resources which cost money. Run `terraform des
2121
| Name | Version |
2222
|------|---------|
2323
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
24-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.93 |
24+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.99 |
2525
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.0 |
2626
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 4.0 |
2727

2828
## Providers
2929

3030
| Name | Version |
3131
|------|---------|
32-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.93 |
32+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.99 |
3333
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.0 |
3434
| <a name="provider_tls"></a> [tls](#provider\_tls) | >= 4.0 |
3535

examples/mutual-auth-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 = ">= 5.93"
7+
version = ">= 5.99"
88
}
99
null = {
1010
source = "hashicorp/null"

main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ resource "aws_lb" "this" {
3939
}
4040
}
4141

42+
dynamic "minimum_load_balancer_capacity" {
43+
for_each = var.minimum_load_balancer_capacity != null ? [var.minimum_load_balancer_capacity] : []
44+
45+
content {
46+
capacity_units = minimum_load_balancer_capacity.value
47+
}
48+
}
49+
4250
client_keep_alive = var.client_keep_alive
4351
customer_owned_ipv4_pool = var.customer_owned_ipv4_pool
4452
desync_mitigation_mode = var.desync_mitigation_mode

modules/lb_trust_store/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ module "trust_store" {
3030
| Name | Version |
3131
|------|---------|
3232
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
33-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.93 |
33+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.99 |
3434

3535
## Providers
3636

3737
| Name | Version |
3838
|------|---------|
39-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.93 |
39+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.99 |
4040

4141
## Modules
4242

0 commit comments

Comments
 (0)