github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/website/source/docs/providers/aws/r/opsworks_custom_layer.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_opsworks_custom_layer"
     4  sidebar_current: "docs-aws-resource-opsworks-custom-layer"
     5  description: |-
     6    Provides an OpsWorks custom layer resource.
     7  ---
     8  
     9  # aws\_opsworks\_custom\_layer
    10  
    11  Provides an OpsWorks custom layer resource.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_opsworks_custom_layer" "custlayer" {
    17      name = "My Awesome Custom Layer"
    18      short_name = "awesome"
    19      stack_id = "${aws_opsworks_stack.main.id}"
    20  }
    21  ```
    22  
    23  ## Argument Reference
    24  
    25  The following arguments are supported:
    26  
    27  * `name` - (Required) A human-readable name for the layer.
    28  * `short_name` - (Required) A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
    29  * `stack_id` - (Required) The id of the stack the layer will belong to.
    30  * `auto_assign_elastic_ips` - (Optional) Whether to automatically assign an elastic IP address to the layer's instances.
    31  * `auto_assign_public_ips` - (Optional) For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
    32  * `custom_instance_profile_arn` - (Optional) The ARN of an IAM profile that will be used for the layer's instances.
    33  * `custom_security_group_ids` - (Optional) Ids for a set of security groups to apply to the layer's instances.
    34  * `auto_healing` - (Optional) Whether to enable auto-healing for the layer.
    35  * `install_updates_on_boot` - (Optional) Whether to install OS and package updates on each instance when it boots.
    36  * `instance_shutdown_timeout` - (Optional) The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
    37  * `drain_elb_on_shutdown` - (Optional) Whether to enable Elastic Load Balancing connection draining.
    38  * `system_packages` - (Optional) Names of a set of system packages to install on the layer's instances.
    39  * `use_ebs_optimized_instances` - (Optional) Whether to use EBS-optimized instances.
    40  * `ebs_volume` - (Optional) `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
    41  
    42  The following extra optional arguments, all lists of Chef recipe names, allow
    43  custom Chef recipes to be applied to layer instances at the five different
    44  lifecycle events, if custom cookbooks are enabled on the layer's stack:
    45  
    46  * `custom_configure_recipes`
    47  * `custom_deploy_recipes`
    48  * `custom_setup_recipes`
    49  * `custom_shutdown_recipes`
    50  * `custom_undeploy_recipes`
    51  
    52  An `ebs_volume` block supports the following arguments:
    53  
    54  * `mount_point` - (Required) The path to mount the EBS volume on the layer's instances.
    55  * `size` - (Required) The size of the volume in gigabytes.
    56  * `number_of_disks` - (Required) The number of disks to use for the EBS volume.
    57  * `raid_level` - (Required) The RAID level to use for the volume.
    58  * `type` - (Optional) The type of volume to create. This may be `standard` (the default), `io1` or `gp2`.
    59  * `iops` - (Optional) For PIOPS volumes, the IOPS per disk.
    60  
    61  ## Attributes Reference
    62  
    63  The following attributes are exported:
    64  
    65  * `id` - The id of the layer.