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-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md

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-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
  • # ---------------------------------------------------------------------------------------------------------------------
  • # 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 {
  • required_version = ">= 0.12"
  • }
  • # ------------------------------------------------------------------------------
  • # CONFIGURE OUR AWS CONNECTION
  • # ------------------------------------------------------------------------------
  • provider "aws" {
  • region = var.aws_region
  • }
  • # ---------------------------------------------------------------------------------------------------------------------
  • # CREATE AN NLB
  • # ---------------------------------------------------------------------------------------------------------------------
  • resource "aws_lb" "nlb" {
  • name = var.nlb_name

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?