Skip to content

Commit

Permalink
disable spot on mock (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
morsecodist authored Dec 17, 2021
1 parent 22c8917 commit 002602c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion terraform/modules/swipe-sfn-batch-queue/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ resource "aws_batch_compute_environment" "swipe_main" {
desired_vcpus = each.value["desired_vcpus"]
max_vcpus = var.max_vcpus

type = each.value["cr_type"]
# TODO: remove this once CZID monorepo updates moto
type = var.mock ? "EC2" : each.value["cr_type"]
allocation_strategy = "BEST_FIT"
bid_percentage = 100
spot_iam_fleet_role = aws_iam_role.swipe_batch_spot_fleet_service_role.arn
Expand Down
1 change: 0 additions & 1 deletion terraform/modules/swipe-sfn-batch-queue/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ variable "mock" {
default = false
}


variable "vpc_id" {
type = string
}
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.5.0-beta
v0.5.1-beta

0 comments on commit 002602c

Please sign in to comment.