Skip to content

Commit

Permalink
Re-enable EBS CSI driver
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Nov 6, 2024
1 parent d6c9b0b commit 77b97cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ resource "aws_iam_role" "materialize_s3" {
})

tags = var.tags

depends_on = [
module.eks
]
}

# Attach S3 bucket policy to the role
Expand Down
11 changes: 5 additions & 6 deletions modules/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77b97cc

Please sign in to comment.