lb
devops-workflow/lb/aws
A Terraform module to create an AWS new style Load Balancer (ALB/NLB) and associated resources.
terraform-aws-alb A Terraform module containing common configurations for an AWS new style Load Balancer (ALB/NLB). Available through the terraform registry. NOTE: There has been significant changes to the upstream module and this README has not been updated yet. | Branch | Build status | | --- | --- | | master |  | | master (upstream) |  | Assumptions You want to create a set of resources for the ALB: namely an associated target group and listener. You've created a Virtual Private Cloud (VPC) + subnets where you intend to put this ALB. You have one or more security groups to attach to the ALB. You want to configure a listener for HTTPS/HTTP You've
| Name | Type | Description | Default |
|---|---|---|---|
| subnets | any | A list of subnets to associate with the LB. e.g. ['subnet-1a2b3c4d','subnet-1a2b | required |
| vpc_id | any | VPC id where the LB and other resources will be deployed. | required |
| name | any | Base name for resource | required |
| environment | any | Environment (ex: `dev`, `qa`, `stage`, `prod`). (Second or top level namespace. | required |
| owner | any | TAG: Owner of the service | "UNDEF-LB" |
| namespace-org | any | Prefix name with the organization. If true, format is: <org>-<env namespaced nam | false |
| idle_timeout | any | The time in seconds that the connection is allowed to be idle | "60" |
| internal | any | Boolean determining if the LB is internal or externally facing. | true |
| backend_port | any | The port the service on the EC2 instances listen on. | 80 |
| health_check_healthy_threshold | any | Number of consecutive positive health checks before a backend instance is consid | 3 |
| health_check_path | any | The URL the ELB should use for health checks. e.g. /health | "/" |
| instance_http_ports | any | Backend HTTP instance (target group) ports | "" |
| security_groups | any | The security groups with which we associate the LB. e.g. ["sg-edcd9784","sg-edcd | [] |
| backend_protocol | any | The protocol the backend service speaks. Options: HTTP, HTTPS, TCP, SSL (secure | "HTTP" |
| lb_tcp_ports | any | Frontend TCP listener ports | "" |
| target_type | any | Type for targets for target group. Can be: instance or ip | "instance" |
| health_check_unhealthy_threshold | any | Number of consecutive positive health checks before a backend instance is consid | 3 |
| enable_cross_zone_load_balancing | any | Enable cross-zone load balancing on NLB | false |
| lb_http_ports | any | Frontend HTTP listener ports | "" |
| enable_logging | any | Enable the LB to write log entries to S3. | false |
| team | any | TAG: Department/team of people responsible for service | "UNDEF-LB" |
| attributes | any | Suffix name with additional attributes (policy, role, etc.) | [] |
| tags | any | A map of additional tags | {} |
| lb_https_ports | any | Frontend HTTPS listener ports | "" |
| … and 10 more inputs | |||
target_group_tcp_arns — ARNs of the TCP target groups. Useful for passing to your Auto Scaling group module.target_group_https_ids — IDs of the HTTPS target groupsarn — ARN of the LB itself. Useful for debug output, for example when attaching a WAF.id — The ID of the LB we created.listener_http_ids — The IDs of the HTTP LB Listenerslistener_tcp_arns — The ARNs of the network TCP LB Listenerslistener_tcp_ids — The IDs of the network TCP LB Listenerstarget_group_http_arns — ARNs of the HTTP target groups. Useful for passing to your Auto Scaling group module.target_group_http_ids — IDs of the HTTP target groupsarn_suffix — ARN suffix of the LB itself. Useful for debug output, for example when attaching a WAF.listener_arns — ARNs of all the LB Listenerslistener_ids — IDs of all the LB Listenerstarget_group_https_arns — ARNs of the HTTPS target groups. Useful for passing to your Auto Scaling group module.target_group_arns — ARNs of all the target groups. Useful for passing to your Auto Scaling group module.target_group_ids — IDs of all the target groupsprincipal_account_id — The AWS-owned account given permissions to write your LB logs to S3.dns_name — The DNS name of the LB presumably to be used with a friendlier CNAME.zone_id — The zone_id of the LB to assist with creating DNS records.listener_http_arns — The ARNs of the HTTP LB Listenerslistener_https_arns — The ARNs of the HTTPS LB Listenerslistener_https_ids — The IDs of the HTTPS LB Listenerstarget_group_arns_suffix — ARNs suffix of all the target groups. Useful for passing to your Auto Scaling group module.target_group_tcp_ids — IDs of the TCP target groupsAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,