From a28daaf0089661fd61a31c7f48f4646bffefb1a6 Mon Sep 17 00:00:00 2001 From: Bobby Iliev Date: Thu, 14 Nov 2024 19:39:43 +0200 Subject: [PATCH] Disable ebs addon --- modules/eks/main.tf | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/modules/eks/main.tf b/modules/eks/main.tf index 91c3a05..8c2b5be 100644 --- a/modules/eks/main.tf +++ b/modules/eks/main.tf @@ -5,12 +5,6 @@ module "eks" { cluster_name = var.cluster_name cluster_version = var.cluster_version - cluster_addons = { - aws-ebs-csi-driver = { - service_account_role_arn = module.irsa-ebs-csi.iam_role_arn - } - } - vpc_id = var.vpc_id subnet_ids = var.private_subnet_ids @@ -39,18 +33,3 @@ module "eks" { tags = var.tags } - -data "aws_iam_policy" "ebs_csi_policy" { - arn = "arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy" -} - -module "irsa-ebs-csi" { - source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc" - version = "5.39.0" - - create_role = true - role_name = "AmazonEKSTFEBSCSIRole-${module.eks.cluster_name}" - provider_url = module.eks.oidc_provider - role_policy_arns = [data.aws_iam_policy.ebs_csi_policy.arn] - oidc_fully_qualified_subjects = ["system:serviceaccount:kube-system:ebs-csi-controller-sa"] -}