diff --git a/main.tf b/main.tf index d15dfa9..16f2c2b 100644 --- a/main.tf +++ b/main.tf @@ -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" { diff --git a/variables.tf b/variables.tf index 882ac20..d92f843 100644 --- a/variables.tf +++ b/variables.tf @@ -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 = [] +}