Resource: aws_autoscaling_traffic_source_attachment

Attaches a traffic source to an Auto Scaling group.

Example Usage

Basic Usage

resource "aws_autoscaling_traffic_source_attachment" "example" {
  autoscaling_group_name = aws_autoscaling_group.example.id

  traffic_source {
    identifier = aws_lb_target_group.example.arn
    type       = "elbv2"
  }
}

Argument Reference

This resource supports the following arguments:

traffic_source supports the following:

Attribute Reference

This resource exports no additional attributes.