PyForge è in vendita solo qui, sul sito ufficiale py-forge.com — diffida delle imitazioni.

Torna al catalogo
CloudPrune CLIAI & Automation

CloudPrune CLI

#python#automation#microsaas

Riduci drasticamente gli sprechi su AWS e GCP con CloudPrune CLI—il killer dei costi automatizzato. Rileva all'istante volumi EBS scollegati, IP orfani e snapshot RDS inutilizzati tramite un'elegante dashboard da terminale. Il pacchetto include GitHub Actions per l'auditing automatizzato e script di pulizia pronti all'uso. Metti fine alle spese cloud eccessive e aumenta i tuoi margini.

Leggi l'approfondimento tecnicoAutomatizzare l'Individuazione degli Sprechi Cloud con CloudPrune CLI
main.pymain.py — estratto d'esempio nello stile del tool
#!/usr/bin/env python3
"""CloudPrune CLI - Automated AWS & GCP Cloud Resource Cost Killer.

CloudPrune CLI scans your AWS and GCP infrastructure to identify abandoned
and underutilized resources such as unattached EBS volumes, orphan static
IPs, and idle RDS snapshots, delivering actionable terminal reports.

Features:
- Multi-cloud asset discovery for AWS & GCP standard services
- Automated detection of unattached disks, orphan IPs, and stale snapshots
- Estimated monthly waste calculation with currency formatting
- GitHub Actions workflow generator for scheduled infrastructure auditing
- Safe executable cleanup script generation with dry-run support

Usage:
    $ python main.py audit --provider aws --region us-east-1
    $ python main.py prune --dry-run --config prune_config.json
"""

from dataclasses import dataclass, field
from enum import Enum, auto
from typing import Any, Dict, List, Optional
import json
import logging
import sys


class CloudProvider(Enum):
    """Supported cloud infrastructure providers."""
    AWS = "aws"
    GCP = "gcp"


class ResourceType(Enum):
    """Target resource types prone to cloud waste."""
    UNATTACHED_VOLUME = "unattached_volume"
    ORPHAN_IP = "orphan_ip"
    IDLE_SNAPSHOT = "idle_snapshot"


@dataclass
class WastedResource:
    """Represents a detected waste item candidate for pruning."""
    resource_id: str
    resource_type: ResourceType
    provider: CloudProvider
    region: str
    estimated_monthly_cost: float
    details: Dict[str, Any] = field(default_factory=dict)


class CloudPruneEngine:
    """Core orchestration engine for multi-cloud resource auditing."""
    # ... the full file ships with your download