Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconmigration_guides
file-type-iconnlb_to_0.15.0
file-type-iconafter_migration
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconbefore_migration
file-type-iconREADME.md
file-type-iconexamples
file-type-iconmodules
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_docs
file-type-iconmigration_guides
file-type-iconnlb_to_0.15.0
file-type-iconafter_migration
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconbefore_migration
file-type-iconREADME.md
file-type-iconexamples
file-type-iconmodules
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

main.tf

down
  • # ---------------------------------------------------------------------------------------------------------------------
  • # DEPLOY A STANDALONE NETWORK LOAD BALANCER (NLB)
  • # These templates show an example of how to deploy a standalone NLB using the terraform resources, as an example of how
  • # to migrate the `before_migration` terraform module using the deprecated `nlb` module to using the terraform resources
  • # directly.
  • # ---------------------------------------------------------------------------------------------------------------------
  • terraform {
  • # This module is now only being tested with Terraform 0.15.x. However, to make upgrading easier, we are setting
  • # 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
  • # forwards compatible with 0.15.x code.
  • required_version = ">= 0.12.26"
  • }
  • # ------------------------------------------------------------------------------
  • # CONFIGURE OUR AWS CONNECTION
  • # ------------------------------------------------------------------------------
  • provider "aws" {
  • region = var.aws_region
  • }
  • # ---------------------------------------------------------------------------------------------------------------------
  • # CREATE AN NLB
  • # ---------------------------------------------------------------------------------------------------------------------

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?