Skip to content

About

Terraform module which creates Network Load Balancer / It's Listener & Target Group on AWS.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Requirements

Name Version
terraform >= 1.0
aws >= 4.5

Providers

Name Version
aws >= 4.5

Modules

No modules.

Resources

Name Type
aws_lb.nlb resource
aws_lb_listener.listener resource
aws_lb_target_group.target_group resource
aws_network_interface.nlb data source
aws_network_interfaces.nlb data source

Inputs

Name Description Type Default Required
access_logs An Access Logs block
list(object({
bucket = string
prefix = string
enabled = bool
}))
[] no
create_nlb Create NLB bool false no
create_nlb_listener Create NLB Listener bool false no
deregistration_delay Amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. number 60 no
enable_cross_zone_load_balancing If true, cross-zone load balancing of the load balancer will be enabled. bool true no
enable_deletion_protection If true, deletion of the load balancer will be disabled via the AWS API. bool true no
enforce_security_group_inbound_rules_on_private_link_traffic If on, then inbound security group rules are enforced for traffic originating from a PrivateLink, o/w set it off string "on" no
health_check Listener Rule Health Check map(string) {} no
internal If true, the LB will be internal bool true no
name The name of the LB string "" no
nlb_arn NLB arn string "" no
port Listener port number 80 no
protocol Protocol for Listener & Target Group string "TCP" no
security_group_ids NLB security group id list(string) [] no
subnet_mapping A list of subnet IDs to attach to the LB
list(object({
allocation_id = string # The allocation ID of the Elastic IP address for an internet-facing load balancer.
ipv6_address = string # An ipv6 address within the subnet to assign to the internet-facing load balancer.
private_ipv4_address = string # A private ipv4 address within the subnet to assign to the internal-facing load balancer.
subnet_id = string # The id of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone.
}))
[] no
subnets Subnets to host NLB list(string) [] no
tags A map of tags to add to all resources map(string) {} no
target_group_name Target group name string "" no
target_type Type of target that you must specify when registering targets with this target group string "ip" no
vpc_id VPC id string "" no

Outputs

Name Description
arn n/a
arn_suffix n/a
dns n/a
ips n/a
port n/a
subnets n/a
target_group_arn n/a
target_group_arn_suffix n/a

License

Apache 2 Licensed. See LICENSE for full details.

About

Terraform module which creates Network Load Balancer / It's Listener & Target Group on AWS.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages