Skip to content

Commit 09804e5

Browse files
committed
Trim LB Target Group name to 32 characters
1 parent fd746fd commit 09804e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ui/ec2.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ resource "aws_lb" "this" {
8686
}
8787

8888
resource "aws_lb_target_group" "ui_backend" {
89-
name = "${var.resource_prefix}ui-backend${var.resource_suffix}"
89+
name = format("%.32s", "${var.resource_prefix}ui-backend${var.resource_suffix}")
9090
port = 8083
9191
protocol = "HTTP"
9292
target_type = "ip"
@@ -105,7 +105,7 @@ resource "aws_lb_target_group" "ui_backend" {
105105
}
106106

107107
resource "aws_lb_target_group" "ui_static" {
108-
name = "${var.resource_prefix}ui-static${var.resource_suffix}"
108+
name = format("%.32s", "${var.resource_prefix}ui-static${var.resource_suffix}")
109109
port = 3000
110110
protocol = "HTTP"
111111
target_type = "ip"

0 commit comments

Comments
 (0)