Browse the Repo

file-type-icon.circleci
file-type-icon.github
file-type-iconexamples
file-type-iconmodules
file-type-iconacm-tls-certificate
file-type-iconalb
file-type-iconlb-listener-rules
file-type-iconlistener-rules-list-to-map
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
file-type-iconnlb
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...

Browse the Repo

file-type-icon.circleci
file-type-icon.github
file-type-iconexamples
file-type-iconmodules
file-type-iconacm-tls-certificate
file-type-iconalb
file-type-iconlb-listener-rules
file-type-iconlistener-rules-list-to-map
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
file-type-iconnlb
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...
Elastic Load Balancer (ELB)

Elastic Load Balancer (ELB)

Deploy the Application Load Balancer (ALB) for load balancing HTTP and HTTPS, with support for routing rules and WebSockets.

Code Preview

Preview the Code

mobile file icon

variables.tf

down
  • variable "default_listener_arns" {
  • description = "A map of all the listeners on the load balancer. The keys should be the port numbers and the values should be the ARN of the listener for that port."
  • type = map(string)
  • }
  • variable "default_listener_ports" {
  • description = "The default port numbers on the load balancer to attach listener rules to. You can override this default on a rule-by-rule basis by setting the listener_ports parameter in each rule. The port numbers specified in this variable and the listener_ports parameter must exist in var.listener_arns."
  • type = list(string)
  • }
  • variable "default_forward_target_group_arns" {
  • description = "The ARN of the Target Group to which to route traffic. Required if using forward rules."
  • type = list(map(any))
  • default = []
  • # Each entry in the map supports the following attributes:
  • # REQUIRED:
  • # - arn string: The ARN of the target group.
  • # OPTIONAL:
  • # - weight number: The weight. The range is 0 to 999. Only applies if len(target_group_arns) > 1.
  • }
  • variable "forward_rules" {
  • type = any
  • default = {}

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?