Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ variable "on_demand_percentage" {
description = "Percentage of on-demand intances vs spot"
default = 100
}
variable "on_demand_base_capacity" {
description = "You can designate a base portion of your total capacity as On-Demand. As the group scales, per your settings, the base portion is provisioned first, while additional On-Demand capacity is percentage-based."
default = 0
}


variable "vpc_id" {
description = "VPC ID to deploy the ECS cluster"
Expand Down
2 changes: 1 addition & 1 deletion asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "aws_autoscaling_group" "ecs" {

instances_distribution {
spot_instance_pools = 3
on_demand_base_capacity = 0
on_demand_base_capacity = "${var.on_demand_base_capacity}"
on_demand_percentage_above_base_capacity = "${var.on_demand_percentage}"
}
}
Expand Down