Skip to content

Commit

Permalink
add placement_constraint_on_demand_only variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marciogoda committed Jan 17, 2024
1 parent 70d4ed4 commit 3c09a9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module "service" {

module "taskdef" {
source = "mergermarket/task-definition-with-task-role/acuris"
version = "2.1.0"
version = "2.2.0"

family = local.full_service_name
container_definitions = [module.service_container_definition.rendered]
Expand All @@ -47,6 +47,7 @@ module "taskdef" {
release = var.release
network_mode = var.network_mode
is_test = var.is_test
placement_constraint_on_demand_only = var.placement_constraint_on_demand_only
}

module "service_container_definition" {
Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,10 @@ variable "scaling_metrics" {
type = list(any)
default = []
}

variable "placement_constraint_on_demand_only" {
description = "Add placement constraint to only run on on-demand instances"
type = bool
default = false
}

0 comments on commit 3c09a9b

Please sign in to comment.