Creates an AWS AutoScaling Group and schedules scaling actions for it.

Terraform Template

resource "aws_autoscaling_group" "foobar" {
  availability_zones = ["us-west-2a"]
  force_delete = true
  health_check_grace_period = 300
  health_check_type = "ELB"
  max_size = 1
  min_size = 1
  name = "terraform-test-foobar5"
  termination_policies = ["OldestInstance"]
}

resource "aws_autoscaling_schedule" "foobar" {
  autoscaling_group_name = aws_autoscaling_group.foobar.name
  desired_capacity = 0
  end_time = "2016-12-12T06:00:00Z"
  max_size = 1
  min_size = 0
  scheduled_action_name = "foobar"
  start_time = "2016-12-11T18:00:00Z"
}