@@ -5,14 +5,16 @@ locals {
55
66module "eks" {
77 source = " terraform-aws-modules/eks/aws"
8- version = " 21.0.9 "
8+ version = " ~> 21.0"
99
10- cluster_name = var. cluster_name
11- cluster_version = var. cluster_version
12- cluster_endpoint_public_access = true
10+ name = var. cluster_name
11+ kubernetes_version = var. cluster_version
12+ endpoint_public_access = true
1313 enable_cluster_creator_admin_permissions = true
1414
15- cluster_addons = {
15+ addons = {
16+ coredns = {}
17+ kube-proxy = {}
1618 vpc-cni = {
1719 before_compute = true
1820 most_recent = true
@@ -33,9 +35,9 @@ module "eks" {
3335 vpc_id = module. vpc . vpc_id
3436 subnet_ids = module. vpc . private_subnets
3537
36- create_cluster_security_group = false
37- create_node_security_group = false
38- cluster_security_group_additional_rules = {
38+ create_security_group = false
39+ create_node_security_group = false
40+ security_group_additional_rules = {
3941 hybrid-node = {
4042 cidr_blocks = [local.remote_node_cidr]
4143 description = " Allow all traffic from remote node/pod network"
@@ -76,7 +78,7 @@ module "eks" {
7678 }
7779
7880
79- cluster_remote_network_config = {
81+ remote_network_config = {
8082 remote_node_networks = {
8183 cidrs = [local.remote_node_cidr]
8284 }
0 commit comments