diff --git a/modules/app_eks/add-ons.tf b/modules/app_eks/add-ons.tf index 250cb8b0..12856e39 100644 --- a/modules/app_eks/add-ons.tf +++ b/modules/app_eks/add-ons.tf @@ -27,7 +27,7 @@ resource "aws_iam_role" "oidc" { assume_role_policy = data.aws_iam_policy_document.oidc_assume_role.json } -resource "aws_eks_addon" "core-dns" { +resource "aws_eks_addon" "aws-efs-csi-driver" { depends_on = [ aws_eks_addon.vpc-cni ] @@ -37,7 +37,7 @@ resource "aws_eks_addon" "core-dns" { resolve_conflicts = "OVERWRITE" } -resource "aws_eks_addon" "ebs-csi" { +resource "aws_eks_addon" "aws-ebs-csi-driver" { depends_on = [ aws_eks_addon.vpc-cni ] @@ -47,6 +47,16 @@ resource "aws_eks_addon" "ebs-csi" { resolve_conflicts = "OVERWRITE" } +resource "aws_eks_addon" "coredns" { + depends_on = [ + aws_eks_addon.vpc-cni + ] + cluster_name = var.namespace + addon_name = "coredns" + addon_version = "v1.9.3-eksbuild.11" + resolve_conflicts = "OVERWRITE" +} + resource "aws_eks_addon" "kube-proxy" { depends_on = [ aws_eks_addon.vpc-cni