Skip to content

Commit

Permalink
Apply tflint
Browse files Browse the repository at this point in the history
  • Loading branch information
caiovfernandes committed Jan 21, 2024
1 parent 9dab85d commit f8c2e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alb-target-group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ resource "random_string" "alb_prefix" {
}

resource "aws_lb_target_group" "green" {
name = var.compat_keep_target_group_naming ? "${var.cluster_name}-${var.name}-gr" : format("%s-gr-%s", substr("${var.cluster_name}-${replace(var.name,"_" ,"-" )}", 0, 24), random_string.alb_prefix.result)
name = var.compat_keep_target_group_naming ? "${var.cluster_name}-${var.name}-gr" : format("%s-gr-%s", substr("${var.cluster_name}-${replace(var.name, "_", "-")}", 0, 24), random_string.alb_prefix.result)
port = var.port
protocol = var.protocol
vpc_id = var.vpc_id
Expand Down Expand Up @@ -180,7 +180,7 @@ resource "aws_lb_target_group" "green" {
}

resource "aws_lb_target_group" "blue" {
name = var.compat_keep_target_group_naming ? "${var.cluster_name}-${var.name}-bl" : format("%s-bl-%s", substr("${var.cluster_name}-${replace(var.name,"_" ,"-" )}", 0, 24), random_string.alb_prefix.result)
name = var.compat_keep_target_group_naming ? "${var.cluster_name}-${var.name}-bl" : format("%s-bl-%s", substr("${var.cluster_name}-${replace(var.name, "_", "-")}", 0, 24), random_string.alb_prefix.result)
port = var.port
protocol = var.protocol
vpc_id = var.vpc_id
Expand Down

0 comments on commit f8c2e32

Please sign in to comment.