@@ -84,12 +84,10 @@ module "eks" {
8484 cluster_name = "example"
8585 cluster_version = "1.31"
8686
87- # Optional: for the EKS managed node group that runs within AWS
8887 cluster_addons = {
8988 coredns = {}
9089 eks-pod-identity-agent = {}
9190 kube-proxy = {}
92- vpc-cni = {}
9391 }
9492
9593 # Optional
@@ -98,30 +96,23 @@ module "eks" {
9896 # Optional: Adds the current caller identity as an administrator via cluster access entry
9997 enable_cluster_creator_admin_permissions = true
10098
99+ create_node_security_group = false
101100 cluster_security_group_additional_rules = {
102- hybrid-all = {
103- cidr_blocks = [local.remote_network_cidr]
104- description = "Allow all HTTPS traffic from remote node/pod network"
105- from_port = 443
106- to_port = 443
107- protocol = "tcp"
108- type = "ingress"
109- }
110- }
111-
112- node_security_group_additional_rules = {
113101 hybrid-all = {
114102 cidr_blocks = [local.remote_network_cidr]
115103 description = "Allow all traffic from remote node/pod network"
116- from_port = "-1"
117- to_port = "-1"
104+ from_port = 0
105+ to_port = 0
118106 protocol = "all"
119107 type = "ingress"
120108 }
121109 }
122110
123- vpc_id = "vpc-1234556abcdef"
124- subnet_ids = ["subnet-abcde012", "subnet-bcde012a", "subnet-fghi345a"]
111+ # Optional
112+ cluster_compute_config = {
113+ enabled = true
114+ node_pools = ["system"]
115+ }
125116
126117 access_entries = {
127118 hybrid-node-role = {
@@ -130,6 +121,9 @@ module "eks" {
130121 }
131122 }
132123
124+ vpc_id = "vpc-1234556abcdef"
125+ subnet_ids = ["subnet-abcde012", "subnet-bcde012a", "subnet-fghi345a"]
126+
133127 cluster_remote_network_config = {
134128 remote_node_networks = {
135129 cidrs = [local.remote_node_cidr]
@@ -140,17 +134,6 @@ module "eks" {
140134 }
141135 }
142136
143- # Optional
144- eks_managed_node_groups = {
145- default = {
146- instance_types = ["m6i.large"]
147-
148- min_size = 2
149- max_size = 5
150- desired_size = 2
151- }
152- }
153-
154137 tags = {
155138 Environment = "dev"
156139 Terraform = "true"
@@ -168,6 +151,7 @@ module "eks" {
168151 cluster_name = "my-cluster"
169152 cluster_version = "1.31"
170153
154+ bootstrap_self_managed_addons = false
171155 cluster_addons = {
172156 coredns = {}
173157 eks-pod-identity-agent = {}
0 commit comments