From 04b7c9301578d0aa3497cf534f7b7e395c37b152 Mon Sep 17 00:00:00 2001
From: Melissa Greenbaum <69476188+magreenbaum@users.noreply.github.com>
Date: Tue, 13 Aug 2024 20:09:38 -0400
Subject: [PATCH] feat: Support
`target_health_state.unhealthy_draining_interval` (#378)
---
README.md | 4 ++--
examples/complete-alb/README.md | 4 ++--
examples/complete-alb/versions.tf | 2 +-
examples/complete-nlb/README.md | 4 ++--
examples/complete-nlb/main.tf | 1 +
examples/complete-nlb/versions.tf | 2 +-
examples/mutual-auth-alb/README.md | 4 ++--
examples/mutual-auth-alb/versions.tf | 2 +-
main.tf | 1 +
modules/lb_trust_store/README.md | 4 ++--
modules/lb_trust_store/versions.tf | 2 +-
versions.tf | 2 +-
12 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/README.md b/README.md
index 50ead95..1b24ce8 100644
--- a/README.md
+++ b/README.md
@@ -352,13 +352,13 @@ See [patterns.md](https://github.com/terraform-aws-modules/terraform-aws-alb/blo
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
-| [aws](#requirement\_aws) | >= 5.59 |
+| [aws](#requirement\_aws) | >= 5.62 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.59 |
+| [aws](#provider\_aws) | >= 5.62 |
## Modules
diff --git a/examples/complete-alb/README.md b/examples/complete-alb/README.md
index a074dd8..39b3121 100644
--- a/examples/complete-alb/README.md
+++ b/examples/complete-alb/README.md
@@ -20,7 +20,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
-| [aws](#requirement\_aws) | >= 5.59 |
+| [aws](#requirement\_aws) | >= 5.62 |
| [null](#requirement\_null) | >= 2.0 |
| [random](#requirement\_random) | >= 3.6 |
@@ -28,7 +28,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.59 |
+| [aws](#provider\_aws) | >= 5.62 |
| [null](#provider\_null) | >= 2.0 |
| [random](#provider\_random) | >= 3.6 |
diff --git a/examples/complete-alb/versions.tf b/examples/complete-alb/versions.tf
index ead740a..fcba2f5 100644
--- a/examples/complete-alb/versions.tf
+++ b/examples/complete-alb/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.59"
+ version = ">= 5.62"
}
null = {
source = "hashicorp/null"
diff --git a/examples/complete-nlb/README.md b/examples/complete-nlb/README.md
index f13d75d..763b91d 100644
--- a/examples/complete-nlb/README.md
+++ b/examples/complete-nlb/README.md
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
-| [aws](#requirement\_aws) | >= 5.59 |
+| [aws](#requirement\_aws) | >= 5.62 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.59 |
+| [aws](#provider\_aws) | >= 5.62 |
## Modules
diff --git a/examples/complete-nlb/main.tf b/examples/complete-nlb/main.tf
index 8de943e..ffc8acc 100644
--- a/examples/complete-nlb/main.tf
+++ b/examples/complete-nlb/main.tf
@@ -162,6 +162,7 @@ module "nlb" {
target_id = aws_instance.this.id
target_health_state = {
enable_unhealthy_connection_termination = false
+ unhealthy_draining_interval = 600
}
}
}
diff --git a/examples/complete-nlb/versions.tf b/examples/complete-nlb/versions.tf
index 7ea0158..53040bf 100644
--- a/examples/complete-nlb/versions.tf
+++ b/examples/complete-nlb/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.59"
+ version = ">= 5.62"
}
}
}
diff --git a/examples/mutual-auth-alb/README.md b/examples/mutual-auth-alb/README.md
index 5de85b0..b8ba33e 100644
--- a/examples/mutual-auth-alb/README.md
+++ b/examples/mutual-auth-alb/README.md
@@ -21,7 +21,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
-| [aws](#requirement\_aws) | >= 5.59 |
+| [aws](#requirement\_aws) | >= 5.62 |
| [null](#requirement\_null) | >= 2.0 |
| [tls](#requirement\_tls) | >= 4.0 |
@@ -29,7 +29,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.59 |
+| [aws](#provider\_aws) | >= 5.62 |
| [null](#provider\_null) | >= 2.0 |
| [tls](#provider\_tls) | >= 4.0 |
diff --git a/examples/mutual-auth-alb/versions.tf b/examples/mutual-auth-alb/versions.tf
index c72c794..6d8526d 100644
--- a/examples/mutual-auth-alb/versions.tf
+++ b/examples/mutual-auth-alb/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.59"
+ version = ">= 5.62"
}
null = {
source = "hashicorp/null"
diff --git a/main.tf b/main.tf
index 62fb381..79e3f41 100644
--- a/main.tf
+++ b/main.tf
@@ -569,6 +569,7 @@ resource "aws_lb_target_group" "this" {
for_each = try([each.value.target_health_state], [])
content {
enable_unhealthy_connection_termination = try(target_health_state.value.enable_unhealthy_connection_termination, true)
+ unhealthy_draining_interval = try(target_health_state.value.unhealthy_draining_interval, null)
}
}
diff --git a/modules/lb_trust_store/README.md b/modules/lb_trust_store/README.md
index a440195..ffc9790 100644
--- a/modules/lb_trust_store/README.md
+++ b/modules/lb_trust_store/README.md
@@ -30,13 +30,13 @@ module "trust_store" {
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
-| [aws](#requirement\_aws) | >= 5.59 |
+| [aws](#requirement\_aws) | >= 5.62 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.59 |
+| [aws](#provider\_aws) | >= 5.62 |
## Modules
diff --git a/modules/lb_trust_store/versions.tf b/modules/lb_trust_store/versions.tf
index 7ea0158..53040bf 100644
--- a/modules/lb_trust_store/versions.tf
+++ b/modules/lb_trust_store/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.59"
+ version = ">= 5.62"
}
}
}
diff --git a/versions.tf b/versions.tf
index 7ea0158..53040bf 100644
--- a/versions.tf
+++ b/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.59"
+ version = ">= 5.62"
}
}
}