Attaches an EC2 instance to an Elastic Load Balancer (ELB). For attaching resources with Application Load Balancer (ALB) or Network Load Balancer (NLB), see the aws_lb_target_group_attachment
resource.
# Create a new load balancer attachment
resource "aws_elb_attachment" "baz" {
elb = aws_elb.bar.id
instance = aws_instance.foo.id
}
This resource supports the following arguments:
elb
- (Required) The name of the ELB.instance
- (Required) Instance ID to place in the ELB pool.This resource exports no additional attributes.