Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cleancloud/demo/findings.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
AZURE_FINDINGS: List[Finding] = [
Finding(
provider="azure",
rule_id="azure.unattached_disk",
rule_id="azure.compute.disk.unattached",
resource_type="azure.compute.disk",
resource_id="data-disk-legacy-api",
region="eastus",
Expand Down Expand Up @@ -291,7 +291,7 @@
),
Finding(
provider="azure",
rule_id="azure.vm_stopped_not_deallocated",
rule_id="azure.vm.stopped_not_deallocated",
resource_type="azure.compute.vm",
resource_id="vm-old-jumpbox",
region="eastus",
Expand Down
10 changes: 8 additions & 2 deletions cleancloud/providers/aws/rules/ai/ec2_gpu_idle.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,21 @@
"p4d.",
"p4de.",
"p5.",
"p5en.", # H100 + higher network bandwidth than p5
"p6.", # NVIDIA B200 (Blackwell)
"p5e.", # NVIDIA H200
"p5en.", # H200 + higher network bandwidth than p5e
# Blackwell families use hyphenated names (e.g. p6-b200.48xlarge), not "p6."
"p6-b200.", # NVIDIA B200
"p6-b300.", # NVIDIA B300
"p6e-gb200.", # NVIDIA GB200 (UltraServer nodes)
"g4dn.",
"g4ad.",
"g5.",
"g5g.",
"g6.",
"g6e.",
"g6f.", # NVIDIA L4 (fractional GPU)
"gr6.",
"gr6f.", # NVIDIA L4 (fractional GPU, high memory)
"trn1.",
"trn1n.",
"trn2.",
Expand Down
2 changes: 1 addition & 1 deletion cleancloud/providers/azure/rules/vnet_gateway_idle.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
from azure.core.exceptions import HttpResponseError, ServiceRequestError, ServiceResponseError
from azure.mgmt.monitor import MonitorManagementClient
from azure.mgmt.network import NetworkManagementClient
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.resource.resources import ResourceManagementClient

from cleancloud.core.confidence import ConfidenceLevel
from cleancloud.core.evidence import Evidence
Expand Down
4 changes: 2 additions & 2 deletions docs/example-outputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ Found 7 hygiene issues:
Confidence : Medium
Resource : azure.compute.disk → data-disk-legacy-api
Region : eastus
Rule : azure.unattached_disk
Rule : azure.compute.disk.unattached
Reason : Managed disk not attached to any VM (age: 34 days)
Detected : 2026-02-08T14:45:12+00:00
Details:
Expand Down Expand Up @@ -1121,7 +1121,7 @@ Scanned at: 2026-02-08T14:45:19+00:00
"findings": [
{
"provider": "azure",
"rule_id": "azure.unattached_disk",
"rule_id": "azure.compute.disk.unattached",
"resource_type": "azure.compute.disk",
"resource_id": "/subscriptions/a1b2c3d4-e5f6-7890-abcd-ef1234567890/resourceGroups/rg-legacy/providers/Microsoft.Compute/disks/data-disk-legacy-api",
"region": "eastus",
Expand Down
7 changes: 5 additions & 2 deletions docs/specs/aws/ai/ec2_gpu_idle.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ Out of scope:

The current rule targets these instance-type prefixes:

- `p2.`, `p3.`, `p3dn.`, `p4d.`, `p4de.`, `p5.`, `p5en.`, `p6.`
- `g4dn.`, `g4ad.`, `g5.`, `g5g.`, `g6.`, `g6e.`, `gr6.`
- `p2.`, `p3.`, `p3dn.`, `p4d.`, `p4de.`, `p5.`, `p5e.`, `p5en.`
- `p6-b200.`, `p6-b300.`, `p6e-gb200.`
- `g4dn.`, `g4ad.`, `g5.`, `g5g.`, `g6.`, `g6e.`, `g6f.`, `gr6.`, `gr6f.`
- `trn1.`, `trn1n.`, `trn2.`
- `inf1.`, `inf2.`
- `dl1.`, `dl2q.`
Expand All @@ -131,6 +132,8 @@ Notes:
- Non-AI accelerated families such as `f1`, `f2`, and `vt1` are intentionally out of scope.
- Future AWS family-name additions may require allowlist updates even when they are documented in
the latest accelerated-computing pages.
- Blackwell families use hyphenated instance-type names (for example `p6-b200.48xlarge`), so each
must be listed with its full family prefix; a bare `p6.` prefix matches no AWS instance type.

---

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "cleancloud"
version = "1.32.0"
version = "1.33.0"
description = "Read-only cloud hygiene for AWS, Azure, and GCP. Multi-account org scanning, CI/CD enforcement, and deterministic cost modeling. No agents, no telemetry."
readme = "README.md"
requires-python = ">=3.10"
Expand Down
21 changes: 21 additions & 0 deletions tests/cleancloud/providers/aws/ai/test_aws_ec2_gpu_idle.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,27 @@ def test_trn1_is_gpu(self):
def test_inf2_is_gpu(self):
assert _is_gpu_instance("inf2.xlarge")

def test_p5e_is_gpu(self):
assert _is_gpu_instance("p5e.48xlarge")

def test_p5en_is_gpu(self):
assert _is_gpu_instance("p5en.48xlarge")

def test_p6_b200_is_gpu(self):
assert _is_gpu_instance("p6-b200.48xlarge")

def test_p6_b300_is_gpu(self):
assert _is_gpu_instance("p6-b300.48xlarge")

def test_p6e_gb200_is_gpu(self):
assert _is_gpu_instance("p6e-gb200.36xlarge")

def test_g6f_is_gpu(self):
assert _is_gpu_instance("g6f.xlarge")

def test_gr6f_is_gpu(self):
assert _is_gpu_instance("gr6f.4xlarge")

def test_t3_is_not_gpu(self):
assert not _is_gpu_instance("t3.large")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
def _make_finding(resource_id="disk-1"):
return Finding(
provider="azure",
rule_id="azure.unattached_disk",
rule_id="azure.compute.disk.unattached",
resource_type="azure.compute.disk",
resource_id=resource_id,
region="eastus",
Expand Down
Loading