Skip to content

AWS Rule 10: Idle ELBs#66

Merged
sureshcsdp merged 1 commit intomainfrom
PR65
Feb 14, 2026
Merged

AWS Rule 10: Idle ELBs#66
sureshcsdp merged 1 commit intomainfrom
PR65

Conversation

@sureshcsdp
Copy link
Collaborator

No description provided.

tags = instance.get("TagList", [])
tag_keys_lower = {t["Key"].lower() for t in tags}
if "keep" in tag_keys_lower or "do-not-delete" in tag_keys_lower:
continue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we did you remove this ? intensional ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont need this as --ignore-flag command line param feature already suports this

connections = get_metric(DatabaseConnections, period=idle_threshold_days)
if connections == 0:
confidence = "HIGH"
risk = "HIGH"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont need this as --ignore-flag command line param feature already suports this

"ReadReplicaSourceDBInstanceIdentifier": None,
"DBClusterIdentifier": None,
"TagList": [{"Key": "Keep", "Value": "true"}],
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Collaborator Author

@sureshcsdp sureshcsdp Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

from cleancloud.core.risk import RiskLevel


def find_idle_load_balancers(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you ran one full real end to end test just to make sure this works fine ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it works fine but returns 0 findings though as its freshly created LB

@sureshcsdp sureshcsdp merged commit b3a05bd into main Feb 14, 2026
14 checks passed
@sureshcsdp sureshcsdp deleted the PR65 branch February 14, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants