-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
feat: add aws_instance_types_from_instance_requirements data source #34030
base: main
Are you sure you want to change the base?
feat: add aws_instance_types_from_instance_requirements data source #34030
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Happy to rewrite this one in aws-sdk-go-v2 as per #32976 if desired |
Hi everyone, Cheers |
I ended up switching to Karpenter so I no longer have a requirement to create node groups with specific instance requirements, but I'm happy to sit down and do the sdk-v2 refactor if this data source is still desired |
I think this would be a great addition. Maybe the maintainers can also post their view on this? CC @johnsonaj |
Refactored to AWS SDK Go V2. Passes all the same tests as before. Now uses the AutoExpand flex functions which tidies up the code quite a bit. |
Description
This adds the GetInstanceTypesFromInstanceRequirements API used by Autoscaling and Spot Fleet as a generic data source. I'm planning to use this for the
instance_types
attribute in anaws_eks_node_group
resource so I can filter instance types better than with theaws_ec2_instance_types
data sourceReferences
GetInstanceTypesFromInstanceRequirements documentation
Output from Acceptance Testing