Closed
Description
Would be cool if you could filter by type of instance storage (HDD/SSD/NVME) and amount of storage, i.e. --instance-storage-type
, --instance-storage-min
and --instance-storage-max
. And then have the instance storage information displayed in the output.
If I get the time later then I might make an attempt at implementing this myself.
Relevant info from aws-sdk-go:
https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#DescribeInstanceTypesInput
// * instance-storage-info.disk.count - The number of local disks.
//
// * instance-storage-info.disk.size-in-gb - The storage size of each instance
// storage disk, in GB.
//
// * instance-storage-info.disk.type - The storage technology for the local
// instance storage disks (hdd | ssd).
//
// * instance-storage-info.nvme-support - Indicates whether non-volatile
// memory express (NVMe) is supported for instance store (required | supported)
// | unsupported).
//
// * instance-storage-info.total-size-in-gb - The total amount of storage
// available from all local instance storage, in GB.
//
// * instance-storage-supported - Indicates whether the instance type has
// local instance storage (true | false).
https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#InstanceTypeInfo
// Describes the instance storage for the instance type.
InstanceStorageInfo *InstanceStorageInfo `locationName:"instanceStorageInfo" type:"structure"`
// Indicates whether instance storage is supported.
InstanceStorageSupported *bool `locationName:"instanceStorageSupported" type:"boolean"`
https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#InstanceStorageInfo
https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#DiskInfo