OnDemand:
$ curl -s https://raw.githubusercontent.com/powdahound/ec2instances.info/master/www/instances.json | jq -r '.[] | select(.instance_type == "t2.micro") | .pricing."eu-west-1".linux.ondemand'
0.0126
Spot:
$ aws --profile dev ec2 describe-spot-price-history --instance-types t2.micro --product-descriptions "Linux/UNIX" --max-items 1 | jq -r '.SpotPriceHistory[].SpotPrice'
0.003800
Note to self - Calculate a higher number from the current spot price:
$ spot_price=$(aws --profile dev ec2 describe-spot-price-history --instance-types t2.micro --product-descriptions "Linux/UNIX" --max-items 1 | jq -r '.SpotPriceHistory[].SpotPrice')
echo ${spot_price} 2 | awk '{printf "%4.3f\n",$1*$2}'
0.008