Code Monkey home page Code Monkey logo

terraform-aws-lb's Introduction

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

terraform-aws-lb's People

Contributors

bernadinm avatar fatz avatar sebbrandt87 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

terraform-aws-lb's Issues

lb_target_group max length 32 characters

We need to truncate the lb_target_group name to 32 characters also, which is not documented here.
We may should use name_prefix with a specific identifier, with a max of 6 characters, to be safe here and use tags with longer strings.

"name" cannot be longer than 32 characters

name = "${local.elb_name}-tg-${lookup(local.concat_listeners[count.index], "port")}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.