Optional
accessAn Access Logs block. Access Logs documented below.
Optional
customerThe ID of the customer owned ipv4 pool to use for this load balancer.
Optional
defaultOptions for creating a default security group if [securityGroups] not specified.
Optional
defaultOptions creating a default target group.
Optional
defaultPort to use to connect with the target. Valid values are ports 1-65535. Defaults to 80.
Optional
desyncDetermines how the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values are monitor
, defensive
(default), strictest
.
Optional
dnsIndicates how traffic is distributed among the load balancer Availability Zones. Possible values are any_availability_zone
(default), availability_zone_affinity
, or partial_availability_zone_affinity
. See Availability Zone DNS affinity for additional details. Only valid for network
type load balancers.
Optional
dropIndicates whether HTTP headers with header fields that are not valid are removed by the load balancer (true) or routed to targets (false). The default is false. Elastic Load Balancing requires that message header names contain only alphanumeric characters and hyphens. Only valid for Load Balancers of type application
.
Optional
enableIf true, deletion of the load balancer will be disabled via the AWS API. This will prevent this provider from deleting the load balancer. Defaults to false
.
Optional
enableIndicates whether HTTP/2 is enabled in application
load balancers. Defaults to true
.
Optional
enableIndicates whether the two headers (x-amzn-tls-version
and x-amzn-tls-cipher-suite
), which contain information about the negotiated TLS version and cipher suite, are added to the client request before sending it to the target. Only valid for Load Balancers of type application
. Defaults to false
Optional
enableIndicates whether to allow a WAF-enabled load balancer to route requests to targets if it is unable to forward the request to AWS WAF. Defaults to false
.
Optional
enableIndicates 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
.
Optional
idleThe time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type application
. Default: 60.
Optional
internalIf true, the LB will be internal. Defaults to false
.
Optional
ipThe type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
and dualstack
.
Optional
listenerA listener to create. Only one of [listener] and [listeners] can be specified.
Optional
listenersList of listeners to create. Only one of [listener] and [listeners] can be specified.
Optional
nameThe 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,
this provider will autogenerate a name beginning with tf-lb
.
Optional
nameCreates a unique name beginning with the specified prefix. Conflicts with name
.
Optional
preserveIndicates 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
.
Optional
securityA list of security group IDs to assign to the LB. Only valid for Load Balancers of type application
or network
. For load balancers of type network
security groups cannot be added if none are currently present, and cannot all be removed once added. If either of these conditions are met, this will force a recreation of the resource.
Optional
subnetA list of subnet IDs to attach to the LB. Subnets
cannot be updated for Load Balancers of type network
. Changing this value
for load balancers of type network
will force a recreation of the resource.
Optional
subnetA subnet mapping block as documented below.
Optional
subnetsA list of subnets to attach to the LB. Only one of [subnets], [subnetIds] or [subnetMappings] can be specified
Optional
tagsA map of tags to assign to the resource. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Optional
xffDetermines how the load balancer modifies the X-Forwarded-For
header in the HTTP request before sending the request to the target. The possible values are append
, preserve
, and remove
. Only valid for Load Balancers of type application
. The default is append
.
Generated using TypeDoc
The set of arguments for constructing a ApplicationLoadBalancer resource.