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
enhancement: Bumped upstream version of eks module and changed variables to support better handling of node group changes, also added missing provider requirements. (#52)
* enhancement: Bumped upstream version of eks module and changed variables to support better handling of node group changes, also added missing provider requirements.
BREAKING CHANGE: The change to the EKS module had its own breaking change that will require a bit of state management, you can read about it here: https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/upgrades.md#upgrade-module-to-v1700-for-managed-node-groups . Also, this change may require some state management since it changes the name of the node group. You should be able to upgrade gracefully by importing the previous group into the state and removing the old one. Feel free to ask in the community channel at slack.getzero.dev if you have any questions.
* fix: Bump validation workflow to tf 1.0
| iam\_account\_id | Account ID of the current IAM user |`any`| n/a | yes |
28
30
| iam\_role\_mapping | List of mappings of AWS Roles to Kubernetes Groups | <pre>list(object({<br> iam_role_arn = string<br> k8s_role_name = string<br> k8s_groups = list(string)<br> }))</pre> | n/a | yes |
29
31
| private\_subnets | VPC subnets for the EKS cluster |`list(string)`| n/a | yes |
30
32
| project | Name of the project |`any`| n/a | yes |
31
-
| use\_spot\_instances | Enable use of spot instances instead of on-demand. This can provide significant cost savings and should be stable due to the use of the termination handler, but means that individuial nodes could be restarted at any time. May not be suitable for clusters with long-running workloads |`bool`|`false`| no |
32
33
| vpc\_id | VPC ID for EKS cluster |`any`| n/a | yes |
33
-
| worker\_ami\_type | AMI type for the EKS worker instances. The default will be the normal image. Other possibilities are AL2\_x86\_64\_GPU for gpu instances or AL2\_ARM\_64 for ARM instances |`string`|`"AL2_x86_64"`| no |
34
-
| worker\_asg\_max\_size | Maximum number of instances for the EKS ASG |`any`| n/a | yes |
35
-
| worker\_asg\_min\_size | Minimum number of instances for the EKS ASG |`any`| n/a | yes |
36
-
| worker\_instance\_types | Instance types to use for the EKS workers. When use\_spot\_instances is true you may provide multiple instance types and it will diversify across the cheapest pools |`list(string)`|`[]`| no |
Copy file name to clipboardExpand all lines: modules/eks/variables.tf
+9-23Lines changed: 9 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -23,29 +23,15 @@ variable "vpc_id" {
23
23
description="VPC ID for EKS cluster"
24
24
}
25
25
26
-
variable"worker_instance_types" {
27
-
description="Instance types to use for the EKS workers. When use_spot_instances is true you may provide multiple instance types and it will diversify across the cheapest pools"
28
-
type=list(string)
29
-
default=[]
30
-
}
31
-
32
-
variable"worker_ami_type" {
33
-
description="AMI type for the EKS worker instances. The default will be the normal image. Other possibilities are AL2_x86_64_GPU for gpu instances or AL2_ARM_64 for ARM instances"
34
-
type=string
35
-
default="AL2_x86_64"
36
-
}
37
-
variable"use_spot_instances" {
38
-
description="Enable use of spot instances instead of on-demand. This can provide significant cost savings and should be stable due to the use of the termination handler, but means that individuial nodes could be restarted at any time. May not be suitable for clusters with long-running workloads"
39
-
type=bool
40
-
default=false
41
-
}
42
-
43
-
variable"worker_asg_min_size" {
44
-
description="Minimum number of instances for the EKS ASG"
45
-
}
46
-
47
-
variable"worker_asg_max_size" {
48
-
description="Maximum number of instances for the EKS ASG"
26
+
variable"eks_node_groups" {
27
+
type=map(object({
28
+
instance_types =list(string)
29
+
asg_min_size =string
30
+
asg_max_size =string
31
+
use_spot_instances =bool
32
+
ami_type =string
33
+
}))
34
+
description="Map of maps of EKS node group config where keys are node group names"
0 commit comments