Skip to content

Commit

Permalink
hotfix id names lb & tg
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamkite committed Sep 11, 2018
1 parent f6ecfa6 commit 720a5b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#######################################################

resource "aws_lb" "bastion-service" {
name = "bastion-service-${var.vpc}"
name = "${md5(format("bastion-service-%s",var.vpc))}"
load_balancer_type = "network"
internal = false
subnets = ["${var.subnets_lb}"]
Expand Down Expand Up @@ -46,7 +46,7 @@ resource "aws_lb_listener" "bastion-host" {
# Target group service
#######################################################
resource "aws_lb_target_group" "bastion-service" {
name = "bastion-service-${var.vpc}"
name = "${md5(format("bastion-service-%s",var.vpc))}"
protocol = "TCP"
port = 22
vpc_id = "${var.vpc}"
Expand Down

0 comments on commit 720a5b5

Please sign in to comment.