Skip to content

Commit a922a4d

Browse files
Add variables for fargate spot providers (#23)
1 parent 17e3e6b commit a922a4d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Diff for: main.tf

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ module "cluster" {
3939
name = var.name
4040
link_ecs_to_asg_capacity_provider = var.link_ecs_to_asg_capacity_provider
4141
asg_arn = module.autoscaling_group.autoscaling_group_arn
42+
43+
default_capacity_provider_strategy = var.default_capacity_provider_strategy
44+
capacity_providers = var.capacity_providers
4245
}
4346

4447
module "service" {

Diff for: variables.tf

+12
Original file line numberDiff line numberDiff line change
@@ -277,3 +277,15 @@ variable "task_placement_constraints" {
277277
}))
278278
default = []
279279
}
280+
281+
variable "capacity_providers" {
282+
description = "List of short names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT."
283+
type = list(string)
284+
default = []
285+
}
286+
287+
variable "default_capacity_provider_strategy" {
288+
description = "The capacity provider strategy to use by default for the cluster. Can be one or more."
289+
type = list(map(any))
290+
default = []
291+
}

0 commit comments

Comments
 (0)