Skip to content

Commit b6c22ed

Browse files
committed
feat(rate-limiter): simplify target group name format and remove lifecycle block
1 parent 4709017 commit b6c22ed

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • terraform/aws/modules/composition/rate-limiter

terraform/aws/modules/composition/rate-limiter/main.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ resource "aws_lb" "this" {
355355
resource "aws_lb_target_group" "this" {
356356
count = var.create_nlb ? 1 : 0
357357

358-
name = "${substr(local.name_prefix, 0, 19)}-tg-${substr(md5("${var.target_group_protocol}-${var.traffic_port}"), 0, 6)}"
358+
name = "${local.name_prefix}-tg"
359359
port = var.traffic_port
360360
protocol = var.target_group_protocol
361361
vpc_id = var.vpc_id
@@ -380,10 +380,6 @@ resource "aws_lb_target_group" "this" {
380380
Name = "${local.name_prefix}-tg"
381381
}
382382
)
383-
384-
lifecycle {
385-
create_before_destroy = true
386-
}
387383
}
388384

389385
# =========================================================================

0 commit comments

Comments
 (0)