cablelabs / snaps-boot

Linux install and network setup for SNAPS
Apache License 2.0
13 stars 11 forks source link

Change AWS CI to use spot instances #272

Closed RandyLevensalor closed 5 years ago

RandyLevensalor commented 5 years ago

https://www.terraform.io/docs/providers/aws/r/spot_instance_request.html

Spot instances cost about 1/4th the price for m5.metal when initially checked.

Just change ci/aws/aws-insts.tf

bo-quan commented 5 years ago

I tried it but ran into the following issue:

https://github.com/terraform-providers/terraform-provider-aws/issues/4313

bo-quan commented 5 years ago

Found a workaround by setting wait_for_fulfillment to true for the aws_spot_instance_request resource.