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