Skip to content

Commit

Permalink
Fixed the Error: name cannot be longer than 32 characters issue
Browse files Browse the repository at this point in the history
  • Loading branch information
junaid18183 committed Aug 28, 2023
1 parent 1fe22df commit eddf1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nlb/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
# Handle case where target group/load balancer name exceeds 32 character limit without creating illegal names
controlplane_name = "${substr(var.name, 0, 23)}-rke2-cp"
controlplane_name = "${substr(var.name, 0, 18)}-rke2-cp"
server_name = "${substr(var.name, 0, 18)}-rke2-server"
supervisor_name = "${substr(var.name, 0, 15)}-rke2-supervisor"
}
Expand Down

0 comments on commit eddf1f8

Please sign in to comment.