mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Clarify usage of aws_elb
Address confusion regarding ELB in VPC or EC2-classic. See #958.
This commit is contained in:
parent
3b5ee93f73
commit
81b5c238ef
@ -51,15 +51,18 @@ resource "aws_elb" "bar" {
|
||||
The following arguments are supported:
|
||||
|
||||
* `name` - (Required) The name of the ELB
|
||||
* `availability_zones` - (Optional) The AZ's to serve traffic in.
|
||||
* `availability_zones` - (Required for an EC2-classic ELB) The AZ's to serve traffic in.
|
||||
* `security_groups` - (Optional) A list of security group IDs to assign to the ELB.
|
||||
* `subnets` - (Optional) A list of subnets to attach to the ELB.
|
||||
* `subnets` - (Required for a VPC ELB) A list of subnet IDs to attach to the ELB.
|
||||
* `instances` - (Optional) A list of instance ids to place in the ELB pool.
|
||||
* `internal` - (Optional) If true, ELB will be an internal ELB.
|
||||
* `listener` - (Required) A list of listener blocks. Listeners documented below.
|
||||
* `health_check` - (Optional) A health_check block. Health Check documented below.
|
||||
* `cross_zone_load_balancing` - (Optional) Enable cross-zone load balancing.
|
||||
|
||||
Exactly one of `availability_zones` or `subnets` must be specified: this
|
||||
determines if the ELB exists in a VPC or in EC2-classic.
|
||||
|
||||
Listeners support the following:
|
||||
|
||||
* `instance_port` - (Required) The port on the instance to route to
|
||||
|
Loading…
Reference in New Issue
Block a user