From e3e62fbaaf69920a44d779e946e80949fbc55cac Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 3 Jul 2018 20:12:03 +0100 Subject: Change the spot_type of the spot requests to one-time The setup for these machines is dependant on the Terraform provisioners, so make the spot requests one time rather than persistent. --- terraform/aws/backend/main.tf | 2 ++ terraform/aws/mini_environment/main.tf | 1 + 2 files changed, 3 insertions(+) diff --git a/terraform/aws/backend/main.tf b/terraform/aws/backend/main.tf index 00d8b07..e066034 100644 --- a/terraform/aws/backend/main.tf +++ b/terraform/aws/backend/main.tf @@ -233,6 +233,8 @@ resource "aws_spot_instance_request" "main" { wait_for_fulfillment = true spot_price = "0.05" + spot_type = "one-time" + root_block_device { volume_size = "100" } diff --git a/terraform/aws/mini_environment/main.tf b/terraform/aws/mini_environment/main.tf index a0c5045..9c3cc14 100644 --- a/terraform/aws/mini_environment/main.tf +++ b/terraform/aws/mini_environment/main.tf @@ -73,6 +73,7 @@ resource "aws_spot_instance_request" "main" { wait_for_fulfillment = true spot_price = "0.05" + spot_type = "one-time" root_block_device { volume_size = "100" -- cgit v1.2.3