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

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* Terraform resource: <code>aws_lb_target_group</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group</ref>
 
* Terraform resource: <code>aws_lb_target_group</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group</ref>
 +
** https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group
 +
  
 
===Attributes Reference===
 
===Attributes Reference===

Revision as of 13:05, 8 September 2021


Attributes Reference

  • arn_suffix - ARN suffix for use with CloudWatch Metrics.
  • arn - ARN of the Target Group (matches id).
  • id - ARN of the Target Group (matches arn).
  • name - Name of the Target Group.
  • tags_all - A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

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: