Skip to content

Commit

Permalink
fix: limit cluster_name when creating fargate IAM Role (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
gugacavalieri authored Apr 19, 2021
1 parent b752b1d commit f8bdea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/fargate/fargate.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "aws_iam_role" "eks_fargate_pod" {
count = local.create_eks && var.create_fargate_pod_execution_role ? 1 : 0
name_prefix = format("%s-fargate", var.cluster_name)
name_prefix = format("%s-fargate", substr(var.cluster_name, 0, 24))
assume_role_policy = data.aws_iam_policy_document.eks_fargate_pod_assume_role[0].json
permissions_boundary = var.permissions_boundary
tags = var.tags
Expand Down

0 comments on commit f8bdea1

Please sign in to comment.