-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheks_cluster.tf
95 lines (86 loc) · 2.06 KB
/
eks_cluster.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# aws_eks_cluster.test-automation1:
resource "aws_eks_cluster" "test-automation1" {
bootstrap_self_managed_addons = false
enabled_cluster_log_types = [
"api",
"audit",
"authenticator",
"controllerManager",
"scheduler",
]
name = "test-automation1"
role_arn = "arn:aws:iam::202410010000:role/EKSClusterRole"
tags = {}
tags_all = {}
version = "1.29"
access_config {
authentication_mode = "API"
bootstrap_cluster_creator_admin_permissions = true
}
kubernetes_network_config {
ip_family = "ipv4"
service_ipv4_cidr = "172.20.0.0/16"
service_ipv6_cidr = null
}
upgrade_policy {
support_type = "EXTENDED"
}
vpc_config {
endpoint_private_access = true
endpoint_public_access = true
public_access_cidrs = [
"0.0.0.0/0",
]
security_group_ids = [
"sg-03ad9d550602b826e",
"sg-08f9feb7cbaa5021d",
]
subnet_ids = [
"subnet-00b0c102e6ed49c6c",
"subnet-0385724146fd0afb9",
]
}
}
# aws_eks_cluster.test-automation2:
resource "aws_eks_cluster" "test-automation2" {
bootstrap_self_managed_addons = false
enabled_cluster_log_types = [
"api",
"audit",
"authenticator",
"controllerManager",
"scheduler",
]
name = "test-automation2"
role_arn = "arn:aws:iam::202410010000:role/EKSClusterRole"
tags = {}
tags_all = {}
version = "1.29"
access_config {
authentication_mode = "API_AND_CONFIG_MAP"
bootstrap_cluster_creator_admin_permissions = true
}
kubernetes_network_config {
ip_family = "ipv4"
service_ipv4_cidr = "172.20.0.0/16"
service_ipv6_cidr = null
}
upgrade_policy {
support_type = "EXTENDED"
}
vpc_config {
endpoint_private_access = true
endpoint_public_access = true
public_access_cidrs = [
"0.0.0.0/0",
]
security_group_ids = [
"sg-03ad9d550602b826e",
"sg-08f9feb7cbaa5021d",
]
subnet_ids = [
"subnet-00b0c102e6ed49c6c",
"subnet-0385724146fd0afb9",
]
}
}