Data Source: aws_lb

Provides information about a Load Balancer.

This data source can prove useful when a module accepts an LB as an input variable and needs to, for example, determine the security groups associated with it, etc.

Example Usage

variable "lb_arn" {
  type    = string
  default = ""
}

variable "lb_name" {
  type    = string
  default = ""
}

data "aws_lb" "test" {
  arn  = var.lb_arn
  name = var.lb_name
}

Argument Reference

This data source supports the following arguments:

Attribute Reference

See the LB Resource for details on the returned attributes - they are identical.

Timeouts

Configuration options: