Skip to content

Commit

Permalink
Check random id to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
marcincuber committed Jan 24, 2020
1 parent db3f30f commit 80020af
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
Expand Up @@ -21,7 +21,7 @@ resource "aws_eks_node_group" "main" {
count = var.enabled ? 1 : 0

cluster_name = var.cluster_name
node_group_name = join("-", [var.cluster_name, random_id.main[0].id])
node_group_name = join("-", [var.cluster_name, random_id.main[0].hex])
node_role_arn = var.node_role_arn == "" ? join("", aws_iam_role.main.*.arn) : var.node_role_arn

subnet_ids = var.subnet_ids
Expand Down

0 comments on commit 80020af

Please sign in to comment.