Skip to content

Commit

Permalink
Merge pull request #2 from rearc/mwkaufman-internal
Browse files Browse the repository at this point in the history
Add support for internal load balancer
  • Loading branch information
mwkaufman authored Mar 24, 2021
2 parents 857d3f8 + dd3fe6a commit 70c6fd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "aws_lb" "alb" {
name = replace("${local.stack}_${var.name}", "_", "")
subnets = var.public_subnets
security_groups = [aws_security_group.alb_sg[0].id]
internal = false
internal = var.internal
load_balancer_type = "application"
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,10 @@ variable "health_check_path" {
type = string
description = "Path to check target for healthiness"
default = "/"
}

variable "internal" {
description = "Bool to set load balancer to internal versus internet-facing"
type = bool
default = false
}

0 comments on commit 70c6fd7

Please sign in to comment.