Skip to content

Commit

Permalink
fix: restrict cluster iam role name prefix length
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsxu committed Dec 10, 2024
1 parent 0f1987c commit e482e17
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 @@ -253,7 +253,7 @@ module "eks" {
iam_role_arn = try(var.cluster_iam.iam_role_arn, aws_iam_role.cluster[0].arn, null)
create_iam_role = try(var.cluster_iam.create_iam_role, true)
iam_role_use_name_prefix = try(var.cluster_iam.iam_role_use_name_prefix, true)
iam_role_name = try(var.cluster_iam.iam_role_name, null)
iam_role_name = try(var.cluster_iam.iam_role_name, substr("${var.cluster_name}-cluster", 0, 37), null)
iam_role_path = try(var.cluster_iam.iam_role_path, var.iam_path, "/StreamNative/")
iam_role_permissions_boundary = try(var.cluster_iam.iam_role_permissions_boundary, var.permissions_boundary_arn, null)

Expand Down

0 comments on commit e482e17

Please sign in to comment.