Skip to content

Filter and display instance storage information #101

Closed
@stefansundin

Description

@stefansundin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions