Skip to content

Commit

Permalink
Merge pull request #37700 from ddericco/f-aws_lb-dualstack-without-pu…
Browse files Browse the repository at this point in the history
…blic-ipv4

r/aws-lb: Add support for IPv6-only ALB
  • Loading branch information
YakDriver committed Jun 3, 2024
2 parents 1acf1cf + b4fae19 commit 493ef64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/37700.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_lb: Add support for IPv6-only Application Load Balancers
```
7 changes: 7 additions & 0 deletions internal/service/elbv2/load_balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
},
},
})
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/lb.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 493ef64

Please sign in to comment.