Skip to content

Commit

Permalink
Add variables for fargate spot providers (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagagovindarajan authored Jan 19, 2024
1 parent 17e3e6b commit a922a4d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ module "cluster" {
name = var.name
link_ecs_to_asg_capacity_provider = var.link_ecs_to_asg_capacity_provider
asg_arn = module.autoscaling_group.autoscaling_group_arn

default_capacity_provider_strategy = var.default_capacity_provider_strategy
capacity_providers = var.capacity_providers
}

module "service" {
Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,15 @@ variable "task_placement_constraints" {
}))
default = []
}

variable "capacity_providers" {
description = "List of short names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT."
type = list(string)
default = []
}

variable "default_capacity_provider_strategy" {
description = "The capacity provider strategy to use by default for the cluster. Can be one or more."
type = list(map(any))
default = []
}

0 comments on commit a922a4d

Please sign in to comment.