Comments (3)
Hmmm I don't see any value we can use to filter those in the DescribeInstanceTypes API. I might be missing the attribute, do you see anything? It may very well not be exposed by this API yet, but I'd be hesitant hard code instance types or anything like that.
➜ ~ aws ec2 describe-instance-types --instance-types c5a.large --region us-east-1
{
"InstanceTypes": [
{
"InstanceType": "c5a.large",
"CurrentGeneration": true,
"FreeTierEligible": false,
"SupportedUsageClasses": [
"on-demand",
"spot"
],
"SupportedRootDeviceTypes": [
"ebs"
],
"SupportedVirtualizationTypes": [
"hvm"
],
"BareMetal": false,
"Hypervisor": "nitro",
"ProcessorInfo": {
"SupportedArchitectures": [
"x86_64"
],
"SustainedClockSpeedInGhz": 3.3
},
"VCpuInfo": {
"DefaultVCpus": 2,
"DefaultCores": 1,
"DefaultThreadsPerCore": 2,
"ValidCores": [
1
],
"ValidThreadsPerCore": [
1,
2
]
},
"MemoryInfo": {
"SizeInMiB": 4096
},
"InstanceStorageSupported": false,
"EbsInfo": {
"EbsOptimizedSupport": "default",
"EncryptionSupport": "supported",
"EbsOptimizedInfo": {
"BaselineBandwidthInMbps": 200,
"BaselineThroughputInMBps": 25.0,
"BaselineIops": 800,
"MaximumBandwidthInMbps": 3170,
"MaximumThroughputInMBps": 396.25,
"MaximumIops": 13300
},
"NvmeSupport": "required"
},
"NetworkInfo": {
"NetworkPerformance": "Up to 10 Gigabit",
"MaximumNetworkInterfaces": 3,
"MaximumNetworkCards": 1,
"DefaultNetworkCardIndex": 0,
"NetworkCards": [
{
"NetworkCardIndex": 0,
"NetworkPerformance": "Up to 10 Gigabit",
"MaximumNetworkInterfaces": 3
}
],
"Ipv4AddressesPerInterface": 10,
"Ipv6AddressesPerInterface": 10,
"Ipv6Supported": true,
"EnaSupport": "required",
"EfaSupported": false
},
"PlacementGroupInfo": {
"SupportedStrategies": [
"cluster",
"partition",
"spread"
]
},
"HibernationSupported": false,
"BurstablePerformanceSupported": false,
"DedicatedHostsSupported": false,
"AutoRecoverySupported": true
}
]
}
from amazon-ec2-instance-selector.
I have not done the full comparison with the documented list, but I think the filter is
Hypervisor == "nitro" && NetworkInfo.enaSupport == "required" && EbsInfo.NvmeSupport == "required"
You might consider using that filter with a documented caveat if it omits a small number of instance types that should be included, so long as it does not include any instance types that should be excluded.
Is that something you can try out?
Update: Well, z1d
passes the filter but is not on the list. Bummer.
I can understand why you do not want to include (or maintain) a hard coded list, but if you don't, I have to, in order to provide the network encryption guarantee. So please think about a way you can support it with caveats.
Hopefully there is some other API call that will distinguish the z1d
from the other instance types. Is there something more specific to networking?
from amazon-ec2-instance-selector.
I can look into this deeper and try to find something that works. Based on your suggestion of a filter, it would be neat to allow users to specify their own filters based on the describe-instance-types response so that you could do something like this without including it in the actual distribution.
from amazon-ec2-instance-selector.
Related Issues (20)
- assets (binaries) missing for release 2.1.0
- support filtering inf. and vt1. instances HOT 2
- sort by price HOT 1
- on-demand pricing cache bug HOT 1
- support for network baseline/burst flags
- OD Pricing for some Regions do not work
- Instance types not supported by EMR HOT 4
- Pricing API change in aws-sdk-go HOT 3
- Ability to filter Ipv4 per ENIs HOT 2
- Specifying storage requirements fails to return any instances HOT 2
- Ability to filter if IsTrunkingCompatible
- vcpus=96 returned r5.large which is 2cpu HOT 5
- Filter for AVX-512 support
- --cpu-manufacturer intel shows AMD EPYC based c5ad and m5ad HOT 1
- Feature-request : frequency-interruption for Ec2 Spot Instance HOT 1
- java library
- Filter memory per vcpus HOT 1
- Add support for AWS IAM Identity Center (successor to AWS Single Sign-On) SSO credential format HOT 5
- --output table-wide never return
- Unable to connect to EC2 instance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-ec2-instance-selector.