Skip to content

Commit

Permalink
[bugfix] fixed name_prefix error with null value
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-rhm committed Jan 7, 2022
1 parent b8d2637 commit 73c76dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "aws_lb_target_group" "this" {
name = var.name
name_prefix = substr(var.name_prefix,0,6)
name_prefix = try(substr(var.name_prefix,0,6), null)
port = var.port
protocol = var.protocol
vpc_id = var.vpc_id
Expand Down

0 comments on commit 73c76dd

Please sign in to comment.