From 77b97cc8799461a77dd55317936dc25b10497e4a Mon Sep 17 00:00:00 2001 From: Bobby Iliev Date: Wed, 6 Nov 2024 10:31:54 +0200 Subject: [PATCH] Re-enable EBS CSI driver --- main.tf | 4 ++++ modules/eks/main.tf | 11 +++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/main.tf b/main.tf index a2f50ca..1b5be6f 100644 --- a/main.tf +++ b/main.tf @@ -123,6 +123,10 @@ resource "aws_iam_role" "materialize_s3" { }) tags = var.tags + + depends_on = [ + module.eks + ] } # Attach S3 bucket policy to the role diff --git a/modules/eks/main.tf b/modules/eks/main.tf index 2369971..91c3a05 100644 --- a/modules/eks/main.tf +++ b/modules/eks/main.tf @@ -5,12 +5,11 @@ module "eks" { cluster_name = var.cluster_name cluster_version = var.cluster_version - # TODO: Uncomment the following to enable the EBS CSI driver - # cluster_addons = { - # aws-ebs-csi-driver = { - # service_account_role_arn = module.irsa-ebs-csi.iam_role_arn - # } - # } + 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