Intermediatereporting

AWS VM Snooze SousChef

Professional PowerShell script that discovers and analyzes stopped EC2 instances across AWS accounts and regions like a sous chef organizing ingredients in a professional kitchen. Fast AWS CLI integration with comprehensive CSV + HTML reporting.

⏱️ Prep Time:Perfect stir-fry timing
🧩 Difficulty:Intermediate

🔍 What It Does

  • 🖥️ Native AWS CLI integration for authenticated access and reliable data retrieval across accounts
  • 🌍 Automatic region discovery or targeted regional analysis for focused resource management
  • 🛡️ Support for multiple AWS profiles with automatic authentication verification and credential handling
  • ⚡ High-performance parallel processing across regions with configurable concurrency limits
  • 🖥️ Comprehensive analysis of stopped and optionally terminated instances with detailed metadata
  • 👤 Owner detection through EC2 tags for accountability and lifecycle management
  • 📅 Intelligent age calculation with configurable age-based filtering for lifecycle decisions
  • 📊 Dual report formats: structured CSV for analysis and rich HTML for executive presentation

⚙️ Requirements Checklist

  • ✅ PowerShell 5.1+ with parallel job support and advanced cmdlets
  • ✅ AWS CLI v2 installed and configured with proper authentication
  • ✅ Valid AWS credentials configured via AWS CLI, environment variables, or IAM roles
  • ✅ EC2 read permissions (ec2:DescribeInstances, ec2:DescribeRegions) across target regions
  • ✅ Network connectivity to AWS API endpoints

📌 Talk Nerdy Tip:

Start with a complete account scan to get baseline visibility, then use age-based filtering (30+ days) for focused cleanup analysis. Like taking inventory of your entire kitchen before deciding what to keep. 👨‍🍳

aws-instancesamazon-web-servicesstopped-instancesresource-discoverypowershellaws-clicsv-exporthtml-reportsparallel-processinglifecycle-management