diff --git a/_variables.tf b/_variables.tf index ffee4de..ad6a26f 100644 --- a/_variables.tf +++ b/_variables.tf @@ -15,7 +15,7 @@ variable "architecture" { description = "Architecture to select the AMI, x86_64 or arm64" } -variable "on_demand_percentage" { +variable "on_demand_percentage_above_base_capacity" { description = "Percentage of on-demand intances vs spot." default = 100 } diff --git a/asg.tf b/asg.tf index 6be6f3e..fe8be20 100644 --- a/asg.tf +++ b/asg.tf @@ -20,7 +20,7 @@ resource "aws_autoscaling_group" "ecs" { instances_distribution { spot_instance_pools = var.spot_instance_pools on_demand_base_capacity = var.on_demand_base_capacity - on_demand_percentage_above_base_capacity = var.on_demand_percentage + on_demand_percentage_above_base_capacity = var.on_demand_percentage_above_base_capacity spot_allocation_strategy = var.spot_allocation_strategy on_demand_allocation_strategy = var.on_demand_allocation_strategy }