Rest API server with EC2 pricing for ondemand and reserved instances