Skip to content

dcos-terraform/terraform-aws-lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status AWS LB - Application and Network Load Balancer

This module create Application and Network Load Balancers. Beaware that Application supports only "HTTP" and "HTTPS" whereas Netowrk only supports "TCP" and "UDP"

EXAMPLE

module "dcos-masters-lb" {
  source  = "terraform-dcos/lb/aws"
  version = "~> 0.2.0"

  cluster_name = "production"

  subnet_ids = ["subnet-12345678"]
  load_balancer_type = "application"
  additional_listener = [{
    port = 8080
    protocol = "http"
  }]

  https_acm_cert_arn = "arn:aws:acm:us-east-1:123456789123:certificate/ooc4NeiF-1234-5678-9abc-vei5Eeniipo4"
}

Inputs

Name Description Type Default Required
cluster_name Name of the DC/OS cluster string n/a yes
instances List of instance IDs list n/a yes
num_instances How many instances should be created string n/a yes
subnet_ids List of subnet IDs created in this network list n/a yes
additional_listener List of additional listeners list <list> no
cross_zone_load_balancing Enable cross-zone load balancing string "true" no
disable Do not create load balancer and its resources string "false" no
elb_name_format Printf style format for naming the ELB. Gets truncated to 32 characters. (input cluster_name) string "load-balancer-%s" no
health_check Health check definition. map <map> no
https_acm_cert_arn ACM certifacte to be used. string "" no
internal This ELB is internal only string "false" no
listener List of listeners. By default HTTP and HTTPS are set. If set it overrides the default listeners. list <list> no
load_balancer_type Load Balancer type. Allowed values network, application string "network" no
name_prefix Name Prefix string "" no
security_groups Security Group IDs to use list <list> no
tags Add custom tags to all resources map <map> no

Outputs

Name Description
dns_name DNS Name of the master load balancer