Skip to content

runbooks finops ec2-snapshotsΒΆ

Auto-generated from runbooks finops ec2-snapshots --help on 2026-05-21. Source of truth: runbooks PyPI package v1.3.22

Usage: runbooks finops ec2-snapshots [OPTIONS]

  EC2 snapshot cost optimization and cleanup analysis.

  Sprint 1, Task 1: Analyze EC2 snapshots for cost optimization opportunities
  targeting $50K+ annual savings through systematic age-based cleanup with
  enterprise safety validations and MCP accuracy frameworks.

  Enterprise Features: β€’ Multi-account snapshot discovery via AWS Config
  aggregator β€’ Dynamic pricing via AWS Pricing API for accurate cost
  calculations β€’ MCP validation framework with β‰₯99.5% accuracy cross-
  validation β€’ Comprehensive safety checks (volume attachment, AMI
  association, age) β€’ Executive reporting with Sprint 1 business impact
  metrics

  Safety Features: β€’ READ-ONLY analysis by default (no actual cleanup
  performed) β€’ Volume attachment verification before recommendations β€’ AMI
  association checking to prevent data loss β€’ Configurable age thresholds with
  safety validations

  Examples:     # Basic analysis with MCP validation using parent profile
  runbooks finops --profile BILLING_PROFILE ec2-snapshots --validate

      # Override parent profile with command-specific profile     runbooks
      finops ec2-snapshots --all-profiles BILLING_PROFILE --validate

      # Custom age threshold with export     runbooks finops --profile
      BILLING_PROFILE ec2-snapshots --older-than-days 120 --export-results

      # Comprehensive analysis for Sprint 1     runbooks finops --profile
      BILLING_PROFILE ec2-snapshots --cleanup --validate --export-results

      # Quick analysis without safety checks (not recommended)     runbooks
      finops ec2-snapshots --all-profiles BILLING_PROFILE --no-safety-checks
      --older-than-days 30

  Sprint 1 Context:     Task 1 targeting $50K+ annual savings through
  systematic snapshot cleanup     with enterprise coordination and MCP
  validation accuracy β‰₯99.5%

Options:
  --older-than-days INTEGER       Minimum age in days for cleanup
                                  consideration (default: 90)
  --validate                      Enable MCP validation for β‰₯99.5% accuracy
                                  (default: enabled)
  --cleanup                       Enable cleanup recommendations (READ-ONLY
                                  analysis only)
  --export-results                Export analysis results to JSON file
  --safety-checks / --no-safety-checks
                                  Enable comprehensive safety validations
                                  (default: enabled)
  --all                           Use all available AWS profiles for multi-
                                  account snapshot analysis
  --output-dir PATH               Output directory for exported files
  --help                          Show this message and exit.

ExamplesΒΆ