Skip to content

Commit

Permalink
Merge pull request #2 from MaterializeInc/disable-ebs-addon
Browse files Browse the repository at this point in the history
Disable ebs addon
  • Loading branch information
bobbyiliev authored Nov 14, 2024
2 parents 9bb4a71 + a28daaf commit 92d48c5
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions modules/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"]
}

0 comments on commit 92d48c5

Please sign in to comment.