nlb

cloudposse/nlb/aws

Terraform Module HCL AWS

Terraform module to provision a standard NLB for TCP/UDP/TLS traffic https://cloudposse.com/accelerate

Install
module "nlb" {
source = "cloudposse/nlb/aws"
version = "0.18.2"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform module to create an NLB and a default NLB target and related security groups. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated test of the complete example using bats and Terratest, see test. ```hcl provider "aws" { region = var.region } module "vpc" { source = "cloudposse/vpc/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" cidr_block = var.vpc_cidr_block context = module.this.context namespace = "eg" } modu

Inputs (50)
NameTypeDescriptionDefault
vpc_idstringVPC ID to associate with NLB required
subnet_idslist(string)A list of subnet IDs to associate with NLB required
default_listener_ingress_prefix_list_idslist(string)List of prefix list IDs for allowing access to TLS ingress security group[]
stickiness_enabledboolWhether to enable sticky sessionsfalse
target_group_additional_tagsmap(string)The additional tags to apply to the default target group{}
additional_certslist(string)A list of additonal certs to add to the https listerner[]
enabledboolSet to false to prevent the module from creating any resourcesnull
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
standard_transition_daysnumber(Deprecated, use `lifecycle_configuration_rules` instead) Number of days to pers30
subnet_mapping_enabledboolEnable generate EIP for defined subnet idsfalse
allow_ssl_requests_onlyboolSet to true to require requests to use Secure Socket Layer (HTTPS/SSL) on the acfalse
cross_zone_load_balancing_enabledboolA boolean flag to enable/disable cross zone load balancingtrue
target_group_name_max_lengthnumberThe max length of characters for the target group name.32
tls_enabledboolA boolean flag to enable/disable TLS listenerfalse
ip_address_typestringThe type of IP addresses used by the subnets for your load balancer. The possibl"ipv4"
connection_termination_enabledboolWhether to terminate connections at the end of the deregistration timeoutfalse
health_check_thresholdnumberThe number of consecutive health checks successes required before considering an2
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
udp_portnumberThe port for the UDP listener53
deletion_protection_enabledboolA boolean flag to enable/disable deletion protection for NLBfalse
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
… and 10 more inputs
Outputs (11)
nlb_dns_name — DNS name of NLB
nlb_zone_id — The ID of the zone which NLB is provisioned
default_target_group_arn — The default target group ARN
default_listener_arn — The ARN of the default listener
listener_arns — A list of all the listener ARNs
access_logs_bucket_id — The S3 bucket ID for access logs
nlb_arn — The ARN of the NLB
security_group_id — The security group ID of the NLB
tls_listener_arn — The ARN of the TLS listener
nlb_name — The ARN suffix of the NLB
nlb_arn_suffix — The ARN suffix of the NLB
Resources (7)
aws_eipaws_lbaws_lb_listeneraws_lb_listener_certificateaws_lb_target_groupaws_security_groupaws_security_group_rule
Details
FrameworkTerraform Module
LanguageHCL
Version0.18.2
Cloud AWS
★ Stars25
Forks39
Total downloads352.3k
Inputs50
Outputs11
Resources7
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated