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

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_launch_configuration"
     4  sidebar_current: "docs-aws-resource-launch-config"
     5  ---
     6  
     7  # aws\_launch\_configuration
     8  
     9  Provides a resource to create a new launch configuration, used for autoscaling groups.
    10  
    11  ## Example Usage
    12  
    13  ```
    14  resource "aws_launch_configuration" "as_conf" {
    15      name = "web_config"
    16      image_id = "ami-1234"
    17      instance_type = "m1.small"
    18  }
    19  ```
    20  
    21  ## Argument Reference
    22  
    23  The following arguments are supported:
    24  
    25  * `name` - (Required) The name of the launch configuration.
    26  * `image_id` - (Required) The EC2 image ID to launch.
    27  * `instance_type` - (Required) The size of instance to launch.
    28  * `iam_instance_profile` - (Optional) The IAM instance profile to associate
    29       with launched instances.
    30  * `key_name` - (Optional) The key name that should be used for the instance.
    31  * `security_groups` - (Optional) A list of associated security group IDS.
    32  * `user_data` - (Optional) The user data to provide when launching the instance.
    33  
    34  ## Attributes Reference
    35  
    36  The following attributes are exported:
    37  
    38  * `id` - The ID of the launch configuration.