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

Attribute-Based Instance Type Selection for node groups #1800

Closed
youwalther65 opened this issue Jan 19, 2022 · 14 comments · Fixed by #2250
Closed

Attribute-Based Instance Type Selection for node groups #1800

youwalther65 opened this issue Jan 19, 2022 · 14 comments · Fixed by #2250

Comments

@youwalther65
Copy link

Is your request related to a new offering from AWS?

Yes, see:
https://aws.amazon.com/blogs/aws/new-attribute-based-instance-type-selection-for-ec2-auto-scaling-and-ec2-fleet/
https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html

The feature is not yet implemented in the Terraform AWS provider, see corresponding issue:
hashicorp/terraform-provider-aws#21566

This would be a great feature for node groups using SPOT or ON DEMAND with instance diversification. It would simplify node group configuration and make it future proof by just provision the needed resources (for example vCPU and memory) and let the corresponding AWS API pickup suitable instance types even new ones as they become available.

@github-actions
Copy link

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Feb 20, 2022
@github-actions
Copy link

github-actions bot commented Mar 3, 2022

This issue was automatically closed because of stale in 10 days

@github-actions github-actions bot closed this as completed Mar 3, 2022
@bryantbiggs bryantbiggs reopened this Mar 3, 2022
@bryantbiggs
Copy link
Member

bad bot

@bryantbiggs bryantbiggs added on hold and removed stale labels Mar 3, 2022
@github-actions
Copy link

github-actions bot commented Apr 3, 2022

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Apr 3, 2022
@github-actions
Copy link

This issue was automatically closed because of stale in 10 days

@risinger
Copy link

Would a maintainer please reopen and stop the bot from marking this stale?

@bryantbiggs bryantbiggs added wip and removed on hold labels May 14, 2022
@bryantbiggs bryantbiggs reopened this May 14, 2022
@bryantbiggs
Copy link
Member

bryantbiggs commented May 16, 2022

Launch template support has been added to the AWS provider, we still need autoscaling group support as well hashicorp/terraform-provider-aws#21566

@sacksi28
Copy link

@bryantbiggs I believe hashicorp/terraform-provider-aws#21566 doesn't cover the aws_eks_node_group resource unless I have missed something. :-)

May be we look at using ec2_instance_types data source to implement instance selector similar to how eksctl does here

Any thoughts?

@bryantbiggs
Copy link
Member

Correct - getting it into the EKS managed node group is a whole different ball of yarn. First we need the EKS service to support it in managed node groups, then the AWS provider will need to update (possibly, depending on implementation/API). We could try passing a launch template with the attribute based instance selection and see what happens - haven't tried that myself 🤷🏽

@ruecarlo
Copy link

hashicorp/terraform-provider-aws#21566 is now closed so work on this can progress.

@davidweizheng
Copy link

This feature would be very useful. Can someone look into it?

@bryantbiggs
Copy link
Member

v19 needs to be released to increase the provider version to at least v4.x first

@antonbabenko
Copy link
Member

This issue has been resolved in version 19.0.0 🎉

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
7 participants