AWS ec2-instance-selector CLI tool
- AWS Docs: Instance Types
- Karpenter uses the price-capacity-optimized strategy. EC2 Fleet identifies the pools with the highest capacity availability for the number of instances that are launching.
- This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term.
- EC2 Fleet then requests Spot Instances from the lowest priced of these pools.
- Knowing this, it's important to give Karpenter the widest possible list of EC2 Instance Types.
Installation
AWS Instance Types Summary
EC2 Instance Type | Optimized For |
---|---|
m5.large | General purpose |
c5.large | Compute optimized |
r5.large | Memory optimized |
g4dn.xlarge | GPU optimized |
Example CLI Commands
Export your AWS region.