Skip to content

Commit

Permalink
updating irsa
Browse files Browse the repository at this point in the history
  • Loading branch information
jerowe committed Sep 14, 2021
1 parent 53e7713 commit 448cfa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irsa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module "iam_assumable_role_admin" {
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc"
version = "3.6.0"
create_role = true
role_name = "cluster-autoscaler"
role_name = "cluster-autoscaler-${module.eks_cluster.eks_cluster_id}"
provider_url = replace(local.eks_cluster_oidc_issuer_url, "https://", "")

role_policy_arns = [
Expand All @@ -25,7 +25,7 @@ module "iam_assumable_role_admin" {


resource "aws_iam_policy" "cluster_autoscaler" {
name_prefix = "cluster-autoscaler"
name_prefix = "cluster-autoscaler-${module.eks_cluster.eks_cluster_id}"
description = "EKS cluster-autoscaler policy for cluster ${module.eks_cluster.eks_cluster_id}"
policy = data.aws_iam_policy_document.cluster_autoscaler.json
}
Expand Down

0 comments on commit 448cfa2

Please sign in to comment.