github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/aws/r/autoscaling_schedule.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_autoscaling_schedule" 4 sidebar_current: "docs-aws-resource-autoscaling-schedule" 5 description: |- 6 Provides an AutoScaling Schedule resource. 7 --- 8 9 # aws\_autoscaling\_schedule 10 11 Provides an AutoScaling Schedule resource. 12 13 ## Example Usage 14 ``` 15 resource "aws_autoscaling_group" "foobar" { 16 availability_zones = ["us-west-2a"] 17 name = "terraform-test-foobar5" 18 max_size = 1 19 min_size = 1 20 health_check_grace_period = 300 21 health_check_type = "ELB" 22 force_delete = true 23 termination_policies = ["OldestInstance"] 24 } 25 26 resource "aws_autoscaling_schedule" "foobar" { 27 scheduled_action_name = "foobar" 28 min_size = 0 29 max_size = 1 30 desired_capacity = 0 31 start_time = "2016-12-11T18:00:00Z" 32 end_time = "2016-12-12T06:00:00Z" 33 autoscaling_group_name = "${aws_autoscaling_group.foobar.name}" 34 } 35 ``` 36 37 ## Argument Reference 38 39 The following arguments are supported: 40 41 * `autoscaling_group_name` - (Required) The name or Amazon Resource Name (ARN) of the Auto Scaling group. 42 * `scheduled_action_name` - (Required) The name of this scaling action. 43 * `start_time` - (Optional) The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z ). 44 If you try to schedule your action in the past, Auto Scaling returns an error message. 45 * `end_time` - (Optional) The time for this action to end, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z ). 46 If you try to schedule your action in the past, Auto Scaling returns an error message. 47 * `recurrence` - (Optional) The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. 48 * `min_size` - (Optional) The minimum size for the Auto Scaling group. Default 49 0. 50 * `max_size` - (Optional) The maximum size for the Auto Scaling group. Default 51 0. 52 * `desired_capacity` - (Optional) The number of EC2 instances that should be running in the group. Default 0. 53 54 ~> **NOTE:** When `start_time` and `end_time` are specified with `recurrence` , they form the boundaries of when the recurring action will start and stop. 55 56 ## Attribute Reference 57 * `arn` - The ARN assigned by AWS to the autoscaling schedule.