FEATURES PRICING ABOUT DOCS LOGIN

aws_alb_target_group_attachment

Provides the ability to register instances and containers with an ALB target group

Example Usage

resource "aws_alb_target_group_attachment" "test" {
  target_group_arn = "${aws_alb_target_group.test.arn}"
  target_id = "${aws_instance.test.id}"
  port = 80
}

resource "aws_alb_target_group" "test" {
  // Other arguments
}

resource "aws_instance" "test" {
  // Other arguments
}

Argument Reference

The following arguments are supported:

Attributes Reference

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

Import

Target Group Attachments cannot be imported.


See the source of this document at Terraform.io

REQUEST A DEMO