From 1dc5446d9e7c9e7438bb41f759bda5a05ea004db Mon Sep 17 00:00:00 2001 From: Bogdan Mania Date: Mon, 10 Oct 2022 14:02:02 +0100 Subject: [PATCH] feat: add EBS CSI add-on --- addons.tf | 10 ++++++++++ variables.tf | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/addons.tf b/addons.tf index 7c71db3..831df0f 100644 --- a/addons.tf +++ b/addons.tf @@ -17,3 +17,13 @@ resource "aws_eks_addon" "vpc_cni" { cluster_name = module.eks.cluster_id resolve_conflicts = "OVERWRITE" } + +resource "aws_eks_addon" "ebs_csi" { + depends_on = [ + module.eks + ] + addon_name = "ebs-csi" + addon_version = var.cluster_ebs_csi_version + cluster_name = module.eks.cluster_id + resolve_conflicts = "OVERWRITE" +} diff --git a/variables.tf b/variables.tf index e413c72..27b0f8b 100644 --- a/variables.tf +++ b/variables.tf @@ -32,6 +32,11 @@ variable "cluster_vpc_cni_version" { type = string } +variable "cluster_ebs_csi_version" { + description = "Version of the EBS CSI add on" + type = string +} + variable "cluster_coredns_version" { description = "Version of the CoreDNS add on" type = string