find_unused_target_groups
Identify AWS target groups that are unused by detecting those unattached to load balancers, lacking registered targets, or showing no traffic over a specified period.
Instructions
Find target groups with no registered targets or no traffic.
This function identifies target groups that are:
1. Not attached to any load balancer, OR
2. Have no registered targets, OR
3. Have registered targets but no traffic in the specified period
Args:
region_name: AWS region name
period: Lookback period in days for traffic check (default: 7)
max_results: Maximum results to return (default: 100)
profile_name: AWS profile name (optional)
role_arn: IAM role ARN to assume (optional)
access_key: AWS access key ID (optional)
secret_access_key: AWS secret access key (optional)
session_token: AWS session token for temporary credentials (optional)
Returns:
Dictionary with unused target groups
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region_name | No | us-east-1 | |
| period | No | ||
| max_results | No | ||
| profile_name | No | ||
| role_arn | No | ||
| access_key | No | ||
| secret_access_key | No | ||
| session_token | No |