You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# How to handle the terraform-aws-eks module upgrade
2
+
3
+
## Upgrade to v17.0.0
4
+
5
+
In this release, we now decided to remove random_pet resources in Managed Node Groups (MNG). Those were used to recreate MNG if something changed. But they were causing a lot of issues. To upgrade the module without recreating your MNG, you will need to explicitly reuse their previous name and set them in your MNG `name` argument.
6
+
7
+
```hcl
8
+
module "eks" {
9
+
source = "terraform-aws-modules/eks/aws"
10
+
version = "16.0.1"
11
+
12
+
cluster_name = "your-cluster-name"
13
+
cluster_version = "1.20"
14
+
# ...
15
+
16
+
node_groups = {
17
+
example = {
18
+
name = "your-pre-v17.0.0-managed-node-group-name"
19
+
desired_capacity = 1
20
+
max_capacity = 10
21
+
min_capacity = 1
22
+
23
+
# ...
24
+
}
25
+
}
26
+
# ...
27
+
}
28
+
```
29
+
30
+
After the first apply, we recommand you to create a new node group and let the module use the `node_group_name_prefix` (by removing the `name` argument) to generate names and collision during node groups re-creation if needed, because the lifce cycle is `create_before_destroy = true`.
Copy file name to clipboardexpand all lines: modules/node_groups/README.md
+4-6
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,8 @@ The role ARN specified in `var.default_iam_role_arn` will be used by default. In
33
33
| launch\_template_version | The version of the LT to use | string | none |
34
34
| max\_capacity | Max number of workers | number |`var.workers_group_defaults[asg_max_size]`|
35
35
| min\_capacity | Min number of workers | number |`var.workers_group_defaults[asg_min_size]`|
36
-
| name | Name of the node group | string | Auto generated |
36
+
| name | Name of the node group | string | Will use autogenerate name prefix |
37
+
| name_prefix | Name prefix of the node group | string | Auto generated |
37
38
| source\_security\_group\_ids | Source security groups for remote access to workers | list(string) | If key\_name is specified: THE REMOTE ACCESS WILL BE OPENED TO THE WORLD |
38
39
| subnets | Subnets to contain workers | list(string) |`var.workers_group_defaults[subnets]`|
39
40
| version | Kubernetes version | string | Provider default behavior |
@@ -50,16 +51,14 @@ The role ARN specified in `var.default_iam_role_arn` will be used by default. In
0 commit comments