NixOS / nixops-aws

GNU Lesser General Public License v3.0
53 stars 37 forks source link

`deployment.ec2.spotInstancePrice` does not support fractions of a penny #79

Open grahamc opened 8 years ago

grahamc commented 8 years ago

Desired behavior: The current bid for a r3.large in eu-central-1 is $0.0238, and I would like to bid $0.024 per hour for an instance.

Actual behavior: Because the option is specified as an integer, and the division is by 100 (https://github.com/NixOS/nixops/blob/af75e5108088b2ebaff741d77b52e5263e24faf4/nixops/backends/ec2.py#L649) I am restricted to bidding $0.03 or $0.02 per hour for an instance.

virusdave commented 4 years ago

I don't suppose this is likely to be fixed ever, eh?
$0.0016 per Hour for t3a.nano