@@ -84,12 +84,10 @@ module "eks" {
84
84
cluster_name = "example"
85
85
cluster_version = "1.31"
86
86
87
- # Optional: for the EKS managed node group that runs within AWS
88
87
cluster_addons = {
89
88
coredns = {}
90
89
eks-pod-identity-agent = {}
91
90
kube-proxy = {}
92
- vpc-cni = {}
93
91
}
94
92
95
93
# Optional
@@ -98,30 +96,23 @@ module "eks" {
98
96
# Optional: Adds the current caller identity as an administrator via cluster access entry
99
97
enable_cluster_creator_admin_permissions = true
100
98
99
+ create_node_security_group = false
101
100
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 = {
113
101
hybrid-all = {
114
102
cidr_blocks = [local.remote_network_cidr]
115
103
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
118
106
protocol = "all"
119
107
type = "ingress"
120
108
}
121
109
}
122
110
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
+ }
125
116
126
117
access_entries = {
127
118
hybrid-node-role = {
@@ -130,6 +121,9 @@ module "eks" {
130
121
}
131
122
}
132
123
124
+ vpc_id = "vpc-1234556abcdef"
125
+ subnet_ids = ["subnet-abcde012", "subnet-bcde012a", "subnet-fghi345a"]
126
+
133
127
cluster_remote_network_config = {
134
128
remote_node_networks = {
135
129
cidrs = [local.remote_node_cidr]
@@ -140,17 +134,6 @@ module "eks" {
140
134
}
141
135
}
142
136
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
-
154
137
tags = {
155
138
Environment = "dev"
156
139
Terraform = "true"
@@ -168,6 +151,7 @@ module "eks" {
168
151
cluster_name = "my-cluster"
169
152
cluster_version = "1.31"
170
153
154
+ bootstrap_self_managed_addons = false
171
155
cluster_addons = {
172
156
coredns = {}
173
157
eks-pod-identity-agent = {}
0 commit comments