W3cubDocs

/Terraform

aws_elb_attachment

Provides an Elastic Load Balancer Attachment resource.

Example Usage

# Create a new load balancer attachment
resource "aws_elb_attachment" "baz" {
  elb      = "${aws_elb.bar.id}"
  instance = "${aws_instance.foo.id}"
}

Argument Reference

The following arguments are supported:

  • elb - (Required) The name of the ELB.
  • instance - (Required) Instance ID to place in the ELB pool.

© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/elb_attachment.html