nixops-aws icon indicating copy to clipboard operation
nixops-aws copied to clipboard

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

Open grahamc opened this issue 8 years ago • 1 comments

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.

grahamc avatar Mar 19 '16 23:03 grahamc

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

virusdave avatar May 29 '20 05:05 virusdave