tobischw / ecs-instance-type-selector

Easily find cheapest AWS configurations and cluster pricing rates, in many different configurations. Written in Elm. SIUE Senior Project.
2 stars 2 forks source link

Filter incoming instances by changing API parameters when requesting #104

Open tobischw opened 4 years ago

tobischw commented 4 years ago

Currently, we receive over 7,000+ instances when hitting up the API. Many of those are irrelevant to what we want to do, and have invalid pricing, memory, or VCPU data. We should filter these out when performing the request in the index.js.

See https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/aws-jsdk-reference.html for a reference. For example, you can pass filters in for certain attributes (CLI, but same idea: https://docs.aws.amazon.com/cli/latest/reference/pricing/get-products.html)

tobischw commented 4 years ago

SP: 2