2014-07-23 23:26:47 +02:00
|
|
|
---
|
|
|
|
layout: "aws"
|
|
|
|
page_title: "AWS: aws_launch_configuration"
|
|
|
|
sidebar_current: "docs-aws-resource-launch-config"
|
2014-10-22 05:21:56 +02:00
|
|
|
description: |-
|
|
|
|
Provides a resource to create a new launch configuration, used for autoscaling groups.
|
2014-07-23 23:26:47 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# aws\_launch\_configuration
|
|
|
|
|
|
|
|
Provides a resource to create a new launch configuration, used for autoscaling groups.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "aws_launch_configuration" "as_conf" {
|
|
|
|
name = "web_config"
|
|
|
|
image_id = "ami-1234"
|
|
|
|
instance_type = "m1.small"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) The name of the launch configuration.
|
|
|
|
* `image_id` - (Required) The EC2 image ID to launch.
|
|
|
|
* `instance_type` - (Required) The size of instance to launch.
|
2014-10-08 19:54:34 +02:00
|
|
|
* `iam_instance_profile` - (Optional) The IAM instance profile to associate
|
|
|
|
with launched instances.
|
2014-07-23 23:26:47 +02:00
|
|
|
* `key_name` - (Optional) The key name that should be used for the instance.
|
2015-01-12 21:10:13 +01:00
|
|
|
* `security_groups` - (Optional) An array of associated security group IDS.
|
2014-07-29 23:31:21 +02:00
|
|
|
* `user_data` - (Optional) The user data to provide when launching the instance.
|
2014-07-23 23:26:47 +02:00
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `id` - The ID of the launch configuration.
|