name |
(Required) The name of the load balancer. 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. |
string |
n/a |
yes |
cross_zone_load_balancing_enabled |
(Optional) Cross-zone load balancing distributes traffic evenly across all targets in the Availability Zones enabled for the load balancer. Indicates whether to enable cross-zone load balancing. Defaults to false . Regional data transfer charges may apply when cross-zone load balancing is enabled. |
bool |
false |
no |
deletion_protection_enabled |
(Optional) Indicates whether deletion of the load balancer via the AWS API will be protected. Defaults to false . |
bool |
false |
no |
listeners |
(Optional) A list of listener configurations of the gateway load balancer. Listeners listen for connection requests using their protocol and port . Each value of listener block as defined below. (Required) port - The number of port on which the listener of load balancer is listening. Must be 6081 . (Required) target_group - The ARN of the target group to which to route traffic. |
list(object({ port = number target_group = string })) |
[] |
no |
module_tags_enabled |
(Optional) Whether to create AWS Resource Tags for the module informations. |
bool |
true |
no |
network_mapping |
(Optional) The configuration for the load balancer how routes traffic to targets in which subnets, and in accordance with IP address settings. Select at least one Availability Zone and one subnet for each zone. We recommend selecting at least two Availability Zones. The load balancer will route traffic only to targets in the selected Availability Zones. Zones that are not supported by the load balancer or VPC cannot be selected. Subnets can be added, but not removed, once a load balancer is created. Each key of network_mapping is the availability zone id like apne2-az1 , use1-az1 . Each value of network_mapping block as defined below. (Required) subnet - The id of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone. |
map(object({ subnet = string })) |
{} |
no |
resource_group_description |
(Optional) The description of Resource Group. |
string |
"Managed by Terraform." |
no |
resource_group_enabled |
(Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. |
bool |
true |
no |
resource_group_name |
(Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws . |
string |
"" |
no |
tags |
(Optional) A map of tags to add to all resources. |
map(string) |
{} |
no |
timeouts |
(Optional) How long to wait for the load balancer to be created/updated/deleted. |
object({ create = optional(string, "10m") update = optional(string, "10m") delete = optional(string, "10m") }) |
{} |
no |