nixops-aws
nixops-aws copied to clipboard
`deployment.ec2.spotInstancePrice` does not support fractions of a penny
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.
I don't suppose this is likely to be fixed ever, eh?
$0.0016 per Hour
for t3a.nano