Skip to content

Commit aa32d75

Browse files
authored
feat: ALB Health Check Logs (#428)
1 parent fd5fe5c commit aa32d75

File tree

16 files changed

+43
-17
lines changed

16 files changed

+43
-17
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,13 +357,13 @@ See [patterns.md](https://github.com/terraform-aws-modules/terraform-aws-alb/blo
357357
| Name | Version |
358358
|------|---------|
359359
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
360-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.22 |
360+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.25 |
361361

362362
## Providers
363363

364364
| Name | Version |
365365
|------|---------|
366-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.22 |
366+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.25 |
367367

368368
## Modules
369369

@@ -413,6 +413,7 @@ No modules.
413413
| <a name="input_enable_xff_client_port"></a> [enable\_xff\_client\_port](#input\_enable\_xff\_client\_port) | Indicates whether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer in `application` load balancers. Defaults to `false` | `bool` | `null` | no |
414414
| <a name="input_enable_zonal_shift"></a> [enable\_zonal\_shift](#input\_enable\_zonal\_shift) | Whether zonal shift is enabled | `bool` | `null` | no |
415415
| <a name="input_enforce_security_group_inbound_rules_on_private_link_traffic"></a> [enforce\_security\_group\_inbound\_rules\_on\_private\_link\_traffic](#input\_enforce\_security\_group\_inbound\_rules\_on\_private\_link\_traffic) | Indicates whether inbound security group rules are enforced for traffic originating from a PrivateLink. Only valid for Load Balancers of type network. The possible values are on and off | `string` | `null` | no |
416+
| <a name="input_health_check_logs"></a> [health\_check\_logs](#input\_health\_check\_logs) | Map containing health check logging configuration for application load balancers | <pre>object({<br/> bucket = string<br/> enabled = optional(bool, true)<br/> prefix = optional(string)<br/> })</pre> | `null` | no |
416417
| <a name="input_idle_timeout"></a> [idle\_timeout](#input\_idle\_timeout) | The time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type `application`. Default: `60` | `number` | `null` | no |
417418
| <a name="input_internal"></a> [internal](#input\_internal) | If true, the LB will be internal. Defaults to `false` | `bool` | `null` | no |
418419
| <a name="input_ip_address_type"></a> [ip\_address\_type](#input\_ip\_address\_type) | The type of IP addresses used by the subnets for your load balancer. The possible values are `ipv4` and `dualstack` | `string` | `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.5.7 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.22 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.25 |
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) | >= 6.22 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.25 |
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ module "alb" {
6767
prefix = "connection-logs"
6868
}
6969

70+
health_check_logs = {
71+
bucket = module.log_bucket.s3_bucket_id
72+
prefix = "health-check-logs"
73+
}
74+
7075
client_keep_alive = 7200
7176

7277
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 = ">= 6.22"
7+
version = ">= 6.25"
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.5.7 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.22 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.25 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.22 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.25 |
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 = ">= 6.22"
7+
version = ">= 6.25"
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.5.7 |
24-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.22 |
24+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.25 |
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) | >= 6.22 |
32+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.25 |
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 = ">= 6.22"
7+
version = ">= 6.25"
88
}
99
null = {
1010
source = "hashicorp/null"

main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ resource "aws_lb" "this" {
5454
internal = var.internal
5555
ip_address_type = var.ip_address_type
5656

57+
dynamic "health_check_logs" {
58+
for_each = var.health_check_logs != null ? [var.health_check_logs] : []
59+
content {
60+
bucket = health_check_logs.value.bucket
61+
enabled = health_check_logs.value.enabled
62+
prefix = health_check_logs.value.prefix
63+
}
64+
}
65+
5766
dynamic "ipam_pools" {
5867
for_each = var.ipam_pools != null ? [var.ipam_pools] : []
5968

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.5.7 |
33-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.22 |
33+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.25 |
3434

3535
## Providers
3636

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

4141
## Modules
4242

0 commit comments

Comments
 (0)