Allow parametrization for unregistration of all targets in target groups when attaching instance/ip to target group #11343
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/elbv2
Issues and PRs that pertain to the elbv2 service.
Community Note
Description
Having looked at the aws/resource_aws_lb_target_group_attachment.go code and considering the fact that by default, AWS/terraform-aws-provider (don't know which one) assigns all spawned instances in an Autoscaling group to all listeners in target group, it might be interesting to add an extra argument which, if specified to non-default false value, cleans up all existing attached targets prior to register the give one. Currently, without this argument the list of targets remain unchanged
New or Affected Resource(s)
Potential Terraform Configuration
References
None
The text was updated successfully, but these errors were encountered: