FEATURES PRICING ABOUT DOCS LOGIN

aws_alb_target_group

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

Example Usage

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

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

Argument Reference

The following arguments are supported:

Stickiness Blocks (stickiness) support the following:

Health Check Blocks (health_check) support the following:

Attributes Reference

The following attributes are exported in addition to the arguments listed above:

Import

Target Groups can be imported using their ARN, e.g.

$ terraform import aws_alb_target_group.app_front_end arn:aws:elasticloadbalancing:us-west-2:187416307283:targetgroup/app-front-end/20cfe21448b66314 

See the source of this document at Terraform.io

REQUEST A DEMO