github.com/chalford/terraform@v0.3.7-0.20150113080010-a78c69a8c81f/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  description: |-
     6    Provides a resource to create a new launch configuration, used for autoscaling groups.
     7  ---
     8  
     9  # aws\_launch\_configuration
    10  
    11  Provides a resource to create a new launch configuration, used for autoscaling groups.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_launch_configuration" "as_conf" {
    17      name = "web_config"
    18      image_id = "ami-1234"
    19      instance_type = "m1.small"
    20  }
    21  ```
    22  
    23  ## Argument Reference
    24  
    25  The following arguments are supported:
    26  
    27  * `name` - (Required) The name of the launch configuration.
    28  * `image_id` - (Required) The EC2 image ID to launch.
    29  * `instance_type` - (Required) The size of instance to launch.
    30  * `iam_instance_profile` - (Optional) The IAM instance profile to associate
    31       with launched instances.
    32  * `key_name` - (Optional) The key name that should be used for the instance.
    33  * `security_groups` - (Optional) A list of associated security group IDS.
    34  * `user_data` - (Optional) The user data to provide when launching the instance.
    35  
    36  ## Attributes Reference
    37  
    38  The following attributes are exported:
    39  
    40  * `id` - The ID of the launch configuration.