deploy-aws-docker-openvpn icon indicating copy to clipboard operation
deploy-aws-docker-openvpn copied to clipboard

Use AWS spot requests for further savings

Open tmlgcq opened this issue 6 years ago • 4 comments

Updated main.tf to leverage cheaper spot requests and also output private IP of new instance

tmlgcq avatar Jul 29 '19 16:07 tmlgcq

@nicjansma - is this something you're interested in merging or should I just release these changes on my fork?

tmlgcq avatar Aug 01 '19 15:08 tmlgcq

Sorry for the delay!

This one I'm not sure about, mostly because I personally deploy long-running instances. Is it easy to make optional?

nicjansma avatar Sep 17 '19 05:09 nicjansma

No worries. I also deploy instances that stay up for months or years and only once did I run into an issue with spot instances and that's because I got too aggressive with pricing. Either way, I suppose it wouldn't be too hard to modify the code to handle it as an option. I'll take a look this weekend and see what I can come up with.

tmlgcq avatar Sep 17 '19 05:09 tmlgcq

I think the only clean way to handle it is to modularize the aws provider and create a spot & non-spot module which can be commented out in main.tf. "Shouldn't be too onerous."

tmlgcq avatar Sep 17 '19 15:09 tmlgcq