Skip to content

Commit

Permalink
Merge pull request #145 from lmilbaum/on-demand
Browse files Browse the repository at this point in the history
Use on-demand worker instances
  • Loading branch information
lmilbaum authored Jun 27, 2024
2 parents ff3bfdd + 93cfa1e commit d2415ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ module "runner-instance" {
}

runner_worker_docker_machine_instance_spot = {
enable = var.enable
max_price = "on-demand-price"
}

runner_worker_docker_machine_instance = {
types = var.runner_worker_docker_machine_instance_types
root_size = var.runner_worker_docker_machine_instance_root_size
max_price = "on-demand-price"
}

runner_networking = {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,9 @@ variable "tag_list" {
type = string
default = "platform-engineering"
}

variable "enable" {
description = "Enable spot instances for the Runner Worker"
type = bool
default = true
}

0 comments on commit d2415ac

Please sign in to comment.