Difference between revisions of "Terraform resource: aws lb target group"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
 
   name    = "tf-example-lb-tg"
 
   name    = "tf-example-lb-tg"
 
   port    = 80
 
   port    = 80
   protocol = "HTTP"
+
   [[protocol]] = "HTTP"
 
   [[vpc_id]]  = [[aws_vpc]].main.id
 
   [[vpc_id]]  = [[aws_vpc]].main.id
 
  }  
 
  }  

Revision as of 15:30, 12 January 2023


Attributes Reference

Example Instance Target Group

resource "aws_lb_target_group" "test" {
  name     = "tf-example-lb-tg"
  port     = 80
  protocol = "HTTP"
  vpc_id   = aws_vpc.main.id
} 

resource "aws_vpc" "main" {
  cidr_block = "10.0.0.0/16"
}

Related terms

See also

  • https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group
  • Advertising: