Creates an Auto Scaling Group with a warm pool to maintain a set of pre-initialized instances that can quickly scale out.

Terraform Template

resource "aws_autoscaling_group" "example" {
  availability_zones = ["us-east-1a"]
  desired_capacity = 1
  max_size = 5
  min_size = 1

  warm_pool {
    max_group_prepared_capacity = 10
    min_size = 1
    pool_state = "Hibernated"
  }
}

resource "aws_launch_template" "example" {
  image_id = "data.aws_ami.example.id"
  instance_type = "c5.large"
  name_prefix = "example"
  name = ""
}