mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-14 06:15:24 +01:00
fix: limit cluster_name when creating fargate IAM Role (#1270)
This commit is contained in:
committed by
GitHub
parent
b752b1d517
commit
f8bdea11ab
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user