generated from ministryofjustice/ap-terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
addons.tf
31 lines (29 loc) · 875 Bytes
/
addons.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
resource "aws_eks_addon" "coredns" {
depends_on = [
module.eks
]
addon_name = "coredns"
addon_version = var.cluster_coredns_version
cluster_name = module.eks.cluster_id
resolve_conflicts = "OVERWRITE"
}
resource "aws_eks_addon" "vpc_cni" {
depends_on = [
module.eks
]
addon_name = "vpc-cni"
addon_version = var.cluster_vpc_cni_version
cluster_name = module.eks.cluster_id
resolve_conflicts = "OVERWRITE"
}
resource "aws_eks_addon" "ebs_csi" {
depends_on = [
module.eks,
module.iam_assumable_role_ebs_csi_driver
]
addon_name = "aws-ebs-csi-driver"
addon_version = var.cluster_ebs_csi_version
cluster_name = module.eks.cluster_id
resolve_conflicts = "OVERWRITE"
service_account_role_arn = module.iam_assumable_role_ebs_csi_driver.iam_role_arn
}