Skip to content

Commit 2f3a65d

Browse files
committed
Fix aws lb target groups naming collision
1 parent 4f9e377 commit 2f3a65d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/nlb/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resource "aws_lb" "nlb" {
99
module "target_pgwire" {
1010
source = "./target"
1111

12-
name = "pgwire"
12+
name = "${var.name_prefix}-pgwire"
1313
nlb_arn = aws_lb.nlb.arn
1414
namespace = var.namespace
1515
vpc_id = var.vpc_id
@@ -21,7 +21,7 @@ module "target_pgwire" {
2121
module "target_http" {
2222
source = "./target"
2323

24-
name = "http"
24+
name = "${var.name_prefix}-http"
2525
nlb_arn = aws_lb.nlb.arn
2626
namespace = var.namespace
2727
vpc_id = var.vpc_id
@@ -33,7 +33,7 @@ module "target_http" {
3333
module "target_console" {
3434
source = "./target"
3535

36-
name = "console"
36+
name = "${var.name_prefix}-console"
3737
nlb_arn = aws_lb.nlb.arn
3838
namespace = var.namespace
3939
vpc_id = var.vpc_id

0 commit comments

Comments
 (0)