-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add web documentation, and include a warning about the conflict between aws_elb_attachment and aws_elb.instances.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
website/source/docs/providers/aws/r/elb_attachment.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
layout: "aws" | ||
page_title: "AWS: aws_elb_attachment" | ||
sidebar_current: "docs-aws-resource-elb-attachment" | ||
description: |- | ||
Provides an Elastic Load Balancer Attachment resource. | ||
--- | ||
|
||
# aws\_elb\_attachment | ||
|
||
Provides an Elastic Load Balancer Attachment resource. | ||
|
||
~> **NOTE on ELB Instances and ELB Attachments:** Terraform currently provides | ||
both a standalone ELB Attachment resource (describing the instances attached to | ||
an ELB), and an [Elastic Load Balancer resource)[elb.html] with | ||
`instances` defined in-line. At this time you cannot use an ELB with in-line | ||
instaces in conjunction with an ELB Attachment resource. Doing so will cause a | ||
conflict of rule settings and will overwrite rules. | ||
## Example Usage | ||
|
||
``` | ||
# Create a new load balancer attachment | ||
resource "aws_elb_attachment" "baz" { | ||
elb = "${aws_elb.bar.id}" | ||
instances = ["${aws_instance.foo.id}"] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `elb` - (Required) The name of the ELB. | ||
* `instances` - (Required) A list of instance ids to place in the ELB pool. |