github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/website/source/docs/providers/aws/r/autoscale.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_autoscaling_group"
     4  sidebar_current: "docs-aws-resource-autoscale"
     5  ---
     6  
     7  # aws\_autoscaling\_group
     8  
     9  Provides an AutoScaling Group resource.
    10  
    11  ## Example Usage
    12  
    13  ```
    14  resource "aws_autoscaling_group" "bar" {
    15    availability_zones = ["us-east-1a"]
    16    name = "foobar3-terraform-test"
    17    max_size = 5
    18    min_size = 2
    19    health_check_grace_period = 300
    20    health_check_type = "ELB"
    21    desired_capacity = 4
    22    force_delete = true
    23    launch_configuration = "${aws_launch_configuration.foobar.name}"
    24  }
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `name` - (Required) The name of the auto scale group.
    32  * `max_size` - (Required) The maximum size of the auto scale group.
    33  * `min_size` - (Required) The minimum size of the auto scale group.
    34  * `availability_zones` - (Required) A list of AZs to launch resources in.
    35  * `launch_configuration` - (Required) The ID of the launch configuration to use.
    36  * `health_check_grace_period` - (Optional) Time after instance comes into service before checking health.
    37  * `health_check_type` - (Optional) "EC2" or "ELB". Controls how health checking is done.
    38  * `desired_capacity` - (Optional) The number of Amazon EC2 instances that should be running in the group.
    39  * `force_delete` - (Optional) Allows deleting the autoscaling group without waiting
    40     for all instances in the pool to terminate.
    41  * `load_balancers` (Optional) A list of load balancer names to add to the autoscaling
    42     group names.
    43  * `vpc_zone_identifier` (Optional) A list of vpc IDs to launch resources in.
    44  
    45  ## Attributes Reference
    46  
    47  The following attributes are exported:
    48  
    49  * `id` - The autoscaling group name.
    50  * `availability_zones` - The availability zones of the autoscale group.
    51  * `min_size` - The minimum size of the autoscale group
    52  * `max_size` - The maximum size of the autoscale group
    53  * `default_cooldown` - Time between a scaling activity and the succeeding scaling activity.
    54  * `name` - The name of the autoscale group
    55  * `health_check_grace_period` - Time after instance comes into service before checking health.
    56  * `health_check_type` - "EC2" or "ELB". Controls how health checking is done.
    57  * `desired_capacity` -The number of Amazon EC2 instances that should be running in the group.
    58  * `launch_configuration` - The launch configuration of the autoscale group
    59  * `vpc_zone_identifier` - The VPC zone identifier
    60  * `load_balancers` (Optional) The load balancer names associated with the
    61     autoscaling group.