From 19ec35cb3962499fe239779fc47a764e7c7b16d9 Mon Sep 17 00:00:00 2001 From: Dave DeRicco <30156588+ddericco@users.noreply.github.com> Date: Fri, 24 May 2024 16:38:40 -0400 Subject: [PATCH 1/2] Add acctests, docs for dualstack-without-public-ipv4 --- internal/service/elbv2/load_balancer_test.go | 7 +++++++ website/docs/r/lb.html.markdown | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/service/elbv2/load_balancer_test.go b/internal/service/elbv2/load_balancer_test.go index 311b571a962..c4c9e38155b 100644 --- a/internal/service/elbv2/load_balancer_test.go +++ b/internal/service/elbv2/load_balancer_test.go @@ -1028,6 +1028,13 @@ func TestAccELBV2LoadBalancer_updateIPAddressType(t *testing.T) { resource.TestCheckResourceAttr(resourceName, names.AttrIPAddressType, "dualstack"), ), }, + { + Config: testAccLoadBalancerConfig_ipAddressType(rName, "dualstack-without-public-ipv4"), + Check: resource.ComposeAggregateTestCheckFunc( + testAccCheckLoadBalancerExists(ctx, resourceName, &post), + resource.TestCheckResourceAttr(resourceName, names.AttrIPAddressType, "dualstack-without-public-ipv4"), + ), + }, }, }) } diff --git a/website/docs/r/lb.html.markdown b/website/docs/r/lb.html.markdown index 37344f24709..d4811f663fb 100644 --- a/website/docs/r/lb.html.markdown +++ b/website/docs/r/lb.html.markdown @@ -117,7 +117,7 @@ This resource supports the following arguments: * `enforce_security_group_inbound_rules_on_private_link_traffic` - (Optional) 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`. * `idle_timeout` - (Optional) Time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type `application`. Default: 60. * `internal` - (Optional) If true, the LB will be internal. Defaults to `false`. -* `ip_address_type` - (Optional) Type of IP addresses used by the subnets for your load balancer. The possible values are `ipv4` and `dualstack`. +* `ip_address_type` - (Optional) Type of IP addresses used by the subnets for your load balancer. The possible values depend upon the load balancer type: `ipv4` (all load balancer types), `dualstack` (all load balancer types), and `dualstack-without-public-ipv4` (type `application` only). * `load_balancer_type` - (Optional) Type of load balancer to create. Possible values are `application`, `gateway`, or `network`. The default value is `application`. * `name` - (Optional) 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. If not specified, Terraform will autogenerate a name beginning with `tf-lb`. * `name_prefix` - (Optional) Creates a unique name beginning with the specified prefix. Conflicts with `name`. From b4fae1926e411fabdfff84c93480977ef0c9342c Mon Sep 17 00:00:00 2001 From: Dave DeRicco <30156588+ddericco@users.noreply.github.com> Date: Fri, 24 May 2024 16:51:30 -0400 Subject: [PATCH 2/2] Add changelog --- .changelog/37700.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/37700.txt diff --git a/.changelog/37700.txt b/.changelog/37700.txt new file mode 100644 index 00000000000..d856a9a5379 --- /dev/null +++ b/.changelog/37700.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/aws_lb: Add support for IPv6-only Application Load Balancers +``` \ No newline at end of file