github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/elb_attachment.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_elb_attachment"
     4  sidebar_current: "docs-aws-resource-elb-attachment"
     5  description: |-
     6    Provides an Elastic Load Balancer Attachment resource.
     7  ---
     8  
     9  # aws\_elb\_attachment
    10  
    11  Provides an Elastic Load Balancer Attachment resource.
    12  
    13  ~> **NOTE on ELB Instances and ELB Attachments:** Terraform currently provides
    14  both a standalone ELB Attachment resource (describing an instance attached to
    15  an ELB), and an [Elastic Load Balancer resource](elb.html) with
    16  `instances` defined in-line. At this time you cannot use an ELB with in-line
    17  instances in conjunction with an ELB Attachment resource. Doing so will cause a
    18  conflict and will overwrite attachments.
    19  ## Example Usage
    20  
    21  ```hcl
    22  # Create a new load balancer attachment
    23  resource "aws_elb_attachment" "baz" {
    24    elb      = "${aws_elb.bar.id}"
    25    instance = "${aws_instance.foo.id}"
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  The following arguments are supported:
    32  
    33  * `elb` - (Required) The name of the ELB.
    34  * `instance` - (Required) Instance ID to place in the ELB pool.