FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_autoscaling_schedule

Provides an AutoScaling Schedule resource.

Example Usage

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

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

Argument Reference

The following arguments are supported:

~> NOTE: When start_time and end_time are specified with recurrence , they form the boundaries of when the recurring action will start and stop.

Attribute Reference


See the source of this document at Terraform.io