github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/aws/r/opsworks_mysql_layer.html.markdown (about)

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