Improve this page

Back to AWS Terraform templates index <–

AWS Load Balancer

Provides a Target Group resource for use with Load Balancer resources.

Template Locations

Online documentation

Template reference
Service description

Resource Description Automation
module "aws_lb" {
    load_balancer_name  = "aws_lb_cosole_name"   
    security_groups     = ["sg-044340d263eba5508", "sg-02a8b9074c9926dd5"]
    subnets             = ["subnet-0c6f6f567dd82a5ad", "subnet-0a85bc7cc24e9ccee"]
    target_name         = "target_console_name"
    vpc_id              = "vpc-0ac9efbdb4bf47b83"
    health_check {
    healthy_threshold   = "4"
    interval            = "15"
    path                = "/api/health"
    timeout             = "10"
    unhealthy_threshold = "2"
  }
}