Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance type order preference not respected #135

Closed
xeivieni opened this issue Dec 16, 2022 · 1 comment
Closed

Instance type order preference not respected #135

xeivieni opened this issue Dec 16, 2022 · 1 comment
Labels
bug 🐛 An issue with the system

Comments

@xeivieni
Copy link
Contributor

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

As stated in the AWS node group documentation here https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html

Managed node groups use the order of instance types passed in the API to determine which instance type to use first when fulfilling On-Demand capacity. For example, you might specify three instance types in the following order: c5.large, c4.large, and c3.large. When your On-Demand Instances are launched, the managed node group fulfills On-Demand capacity by starting with c5.large, then c4.large, and then c3.large

However, the module overrides the order of the instance_types list by doing a sort on it https://github.com/cloudposse/terraform-aws-eks-node-group/blob/master/main.tf#L74

Expected Behavior

The order of preference of the instance_types shall be passed to the node_group resource as specified by the user

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a node group with three instance types
  2. Apply
  3. Change the order of the instance types
  4. plan
  5. See no changes
@xeivieni xeivieni added the bug 🐛 An issue with the system label Dec 16, 2022
@Nuru
Copy link
Sponsor Contributor

Nuru commented Aug 3, 2023

closed by #142

@Nuru Nuru closed this as completed Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

2 participants