Lambda function to launch cost-optimized EC2 instances
When the Spot Price is much lower, this function tries to request Spot Instance. If higher than ondemand price, this function launches Ondemand Instance.
Spot bidding strategy is similar to vimeo's strategy.
$ npm install
# Run locally
$ npm run local
# Run linter
$ npm run lint
# Build .zip package
$ npm run build