Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-iconacm-tls-certificate
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconwait-until-tls-cert-not-in-use.sh
file-type-iconalb
file-type-iconnlb
file-type-icontest
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md

Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-iconacm-tls-certificate
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconwait-until-tls-cert-not-in-use.sh
file-type-iconalb
file-type-iconnlb
file-type-icontest
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
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

main.tf

down
  • terraform {
  • # This module has been updated with 0.12 syntax, which means it is no longer compatible with any versions below 0.12.
  • required_version = ">= 0.12"
  • }
  • # ---------------------------------------------------------------------------------------------------------------------
  • # SET MODULE DEPENDENCY RESOURCE
  • # This works around a terraform limitation where we can not specify module dependencies natively.
  • # See https://github.com/hashicorp/terraform/issues/1178 for more discussion.
  • # By resolving and computing the dependencies list, we are able to make all the resources in this module depend on the
  • # resources backing the values in the dependencies list.
  • # ---------------------------------------------------------------------------------------------------------------------
  • resource "null_resource" "dependency_getter" {
  • triggers = {
  • instance = join(",", var.dependencies)
  • }
  • }
  • # ---------------------------------------------------------------------------------------------------------------------
  • # CREATE THE TLS CERTIFICATE(S)
  • # ---------------------------------------------------------------------------------------------------------------------
  • # Create a certificate for each of the defined certificate inputs

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?