This module creates following resources.
aws_lbaws_lb_listener(optional)
| Name | Version |
|---|---|
| terraform | >= 1.12 |
| aws | >= 6.22 |
| Name | Version |
|---|---|
| aws | 6.42.0 |
| Name | Source | Version |
|---|---|---|
| resource_group | tedilabs/misc/aws//modules/resource-group | ~> 0.12.0 |
| Name | Type |
|---|---|
| aws_lb.this | resource |
| aws_lb_listener.this | resource |
| aws_availability_zones.available | data source |
| aws_subnet.this | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| 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({ |
[] |
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({ |
{} |
no |
| region | (Optional) The region in which to create the module resources. If not provided, the module resources will be created in the provider's configured region. | string |
null |
no |
| resource_group | (Optional) A configurations of Resource Group for this module. resource_group as defined below.(Optional) enabled - Whether to create Resource Group to find and group AWS resources which are created by this module. Defaults to true.(Optional) name - 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. If not provided, a name will be generated using the module name and instance name.(Optional) description - The description of Resource Group. Defaults to Managed by Terraform.. |
object({ |
{} |
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({ |
{} |
no |
| Name | Description |
|---|---|
| arn | The Amazon Resource Name (ARN) of the load balancer. |
| arn_suffix | The ARN suffix for use with CloudWatch Metrics. |
| attributes | Load Balancer Attributes that applied to the gateway load balancer. |
| availability_zone_ids | A list of the Availability Zone IDs which are used by the load balancer. |
| id | The ID of the load balancer. |
| listeners | Listeners of the load balancer. |
| name | The name of the load balancer. |
| network_mapping | The configuration for the load balancer how routes traffic to targets in which subnets and IP address settings. |
| region | The AWS region this module resources resides in. |
| resource_group | The resource group created to manage resources in this module. |
| subnets | A list of subnet IDs attached to the load balancer. |
| type | The type of the load balancer. Always return GATEWAY. |
| vpc_id | The VPC ID of the load balancer. |