Oh shoot if there's no easy endpoint to query then that makes sense. Could do something like maintain a simplified price list somewhere in Canonical land that can be queried, but that's more of a pain.
Alternative could be preferring certain classes of machine (take a t3 if it exists) or preferring certain hardware (take something that only has cpu/mem and no storage/gpu/...), but then you're stuck maintaining that list.
If it isn't called out somewhere in the docs, maybe a warning would be good to add so people don't get costs they don't expect.
fwiw I don't think aws is even consistent on their spot prices. The prices [here](https://aws.amazon.com/ec2/spot/pricing/) don't match the prices in the ones in the Console->Spot Requests->Price history. Not sure if I'm comparing the wrong things but it seems odd
Oh shoot if there's no easy endpoint to query then that makes sense. Could do something like maintain a simplified price list somewhere in Canonical land that can be queried, but that's more of a pain.
Alternative could be preferring certain classes of machine (take a t3 if it exists) or preferring certain hardware (take something that only has cpu/mem and no storage/gpu/...), but then you're stuck maintaining that list.
If it isn't called out somewhere in the docs, maybe a warning would be good to add so people don't get costs they don't expect.
fwiw I don't think aws is even consistent on their spot prices. The prices [here](https:/ /aws.amazon. com/ec2/ spot/pricing/) don't match the prices in the ones in the Console->Spot Requests->Price history. Not sure if I'm comparing the wrong things but it seems odd