github.com/ezbercih/terraform@v0.1.1-0.20140729011846-3c33865e0839/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_capicity = 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_capicity` - (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  
    42  ## Attributes Reference
    43  
    44  The following attributes are exported:
    45  
    46  * `id` - The autoscaling group name.
    47  * `availability_zones` - The availability zones of the autoscale group.
    48  * `min_size` - The minimum size of the autoscale group
    49  * `max_size` - The maximum size of the autoscale group
    50  * `default_cooldown` - Time between a scaling activity and the succeeding scaling activity.
    51  * `name` - The name of the autoscale group
    52  * `health_check_grace_period` - Time after instance comes into service before checking health.
    53  * `health_check_type` - "EC2" or "ELB". Controls how health checking is done.
    54  * `desired_capicity` -The number of Amazon EC2 instances that should be running in the group.
    55  * `launch_configuration` - The launch configuration of the autoscale group
    56  * `vpc_zone_identifier` - The VPC zone identifier
    57