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

Filter and display instance storage information #101

Closed
stefansundin opened this issue Sep 1, 2021 · 0 comments
Closed

Filter and display instance storage information #101

stefansundin opened this issue Sep 1, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@stefansundin
Copy link

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

@bwagner5 bwagner5 added the enhancement New feature or request label Sep 2, 2021
@bwagner5 bwagner5 closed this as completed Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants