diff options
author | Christopher Baines <mail@cbaines.net> | 2018-07-03 20:12:03 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-07-03 20:12:03 +0100 |
commit | e3e62fbaaf69920a44d779e946e80949fbc55cac (patch) | |
tree | 998e01be42807157303dc96b22fd552788a7b52d | |
parent | 1750a12888fce3eee221233cd11cdb2ec8ae76c3 (diff) | |
download | govuk-mini-environment-admin-e3e62fbaaf69920a44d779e946e80949fbc55cac.tar govuk-mini-environment-admin-e3e62fbaaf69920a44d779e946e80949fbc55cac.tar.gz |
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.
-rw-r--r-- | terraform/aws/backend/main.tf | 2 | ||||
-rw-r--r-- | terraform/aws/mini_environment/main.tf | 1 |
2 files changed, 3 insertions, 0 deletions
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" |