1
1
terraform {
2
2
# Set your region and bucket name (output from shared state) in the placeholder below
3
3
# Then uncomment and apply!
4
- # backend "s3" {
5
- # region = "eu-west-1" # Change if desired
6
- # bucket = "" # Put your bucket name here
7
- # key = "wrongsecrets/terraform.tfstate" # Change if desired
8
- # }
4
+ backend "s3" {
5
+ region = " eu-west-1" # Change if desired
6
+ bucket = " terraform-20230102231352749300000001 " # Put your bucket name here
7
+ key = " wrongsecrets/terraform.tfstate" # Change if desired
8
+ }
9
9
}
10
10
11
11
locals {
@@ -72,6 +72,7 @@ module "eks" {
72
72
73
73
74
74
cluster_endpoint_private_access = true
75
+ cluster_endpoint_public_access = true
75
76
76
77
cluster_endpoint_public_access_cidrs = compact (concat ([" ${ data . http . ip . response_body } /32" ], var. extra_allowed_ip_ranges ))
77
78
@@ -89,19 +90,18 @@ module "eks" {
89
90
disk_iops = 3000
90
91
instance_types = [" t3a.medium" ]
91
92
92
- iam_role_additional_policies = [
93
- " arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy" ,
94
- " arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy" ,
95
- " arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly" ,
96
- " arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" ,
97
- " arn:aws:iam::aws:policy/AmazonEKSVPCResourceController"
98
- ]
93
+ iam_role_additional_policies = {
94
+ AmazonEKSWorkerNodePolicy : " arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy" ,
95
+ AmazonEKS_CNI_Policy : " arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy" ,
96
+ AmazonEC2ContainerRegistryReadOnly : " arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly" ,
97
+ AmazonSSMManagedInstanceCore : " arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" ,
98
+ AmazonEKSVPCResourceController : " arn:aws:iam::aws:policy/AmazonEKSVPCResourceController"
99
+ }
99
100
}
100
101
101
102
eks_managed_node_groups = {
102
103
bottlerocket_default = {
103
- create_launch_template = false
104
- launch_template_name = " "
104
+ use_custom_launch_template = false
105
105
min_size = 3
106
106
max_size = 50
107
107
desired_size = 3
0 commit comments