Skip to content

Commit

Permalink
fix: shorten the name of resources (#11)
Browse files Browse the repository at this point in the history
* fix: shorten the name of resources

* fix: typo
  • Loading branch information
aldor007 authored Apr 25, 2024
1 parent 2f30676 commit 84b2d85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
locals {
resource_name_postfix = var.aws_cluster_name

iam_role_name = "castai-eks-${local.resource_name_postfix}"
iam_role_name = "castai-eks-${substr(local.resource_name_postfix, 0, 53)}"
iam_policy_name = var.create_iam_resources_per_cluster ? "CastEKSPolicy-${local.resource_name_postfix}" : "CastEKSPolicy-tf"
iam_role_policy_name = "castai-user-policy-${local.resource_name_postfix}"
instance_profile_role_name = "castai-eks-instance-${local.resource_name_postfix}"
iam_role_policy_name = "castai-user-policy-${substr(local.resource_name_postfix, 0, 45)}"
instance_profile_role_name = "castai-eks-instance-${substr(local.resource_name_postfix, 0, 44)}"
iam_policy_prefix = "arn:${data.aws_partition.current.partition}:iam::aws:policy"
}

Expand Down

0 comments on commit 84b2d85

Please sign in to comment.