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

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
  
===Attributes Reference===
+
== Attributes Reference ==
*<code>[[arn_suffix]]</code> - ARN suffix for use with CloudWatch Metrics.
+
* <code>[[arn_suffix]]</code> - ARN suffix for use with CloudWatch Metrics.
*<code>[[arn]]</code> - ARN of the Target Group (matches id).
+
* <code>[[arn]]</code> - ARN of the Target Group (matches id).
*<code>[[id]]</code> - ARN of the Target Group (matches arn).
+
* <code>[[id]]</code> - ARN of the Target Group (matches arn).
*<code>[[name]]</code> - Name of the Target Group.
+
* <code>[[name]]</code> - Name of the Target Group.
*<code>[[tags_all]]</code> - A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
+
* <code>[[tags_all]]</code> - A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
 +
* <code>[[type]]</code> https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group#type
  
 
===Example Instance Target Group===
 
===Example Instance Target Group===

Revision as of 13:06, 8 September 2021


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: