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