Skip to content

runbooks finops lambda-analysisΒΆ

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

Usage: runbooks finops lambda-analysis [OPTIONS]

  Lambda cost and activity analysis with optimization signals.

  πŸ”„ LAMBDA ENRICHMENT LAYERS (L1-L6 Optimization Scoring)
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Layer 1: Discovery       β”‚ Lambda function inventory         β”‚
  β”‚ Layer 2: Organizations   β”‚ Account metadata (6 columns)      β”‚
  β”‚ Layer 3: Cost            β”‚ 12-month Cost Explorer trends     β”‚
  β”‚ Layer 4: CloudWatch      β”‚ Invocations, errors, duration     β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

  πŸ“Š OPTIMIZATION SIGNALS (L1-L6)
  β€’ L1: High invocation cost (top 10%) β†’ +10 points (Cost impact)
  β€’ L2: Idle function (0 invocations 14d) β†’ +15 points (Unused)
  β€’ L3: Oversized memory (low utilization) β†’ +8 points (Rightsizing)
  β€’ L4: Cold start issues (high p95/p50) β†’ +5 points (Performance)
  β€’ L5: High error rate (>5%) β†’ +7 points (Quality issue)
  β€’ L6: Legacy runtime β†’ +3 points (Security/maintenance)

  🎯 OPTIMIZATION TIERS
  β€’ HIGH (β‰₯20 points): Immediate optimization/decommission
  β€’ MEDIUM (10-19 points): Review and optimize within 30 days
  β€’ LOW (<10 points): Monitor and maintain current state

  πŸ’° Sprint 1 Target: Identify serverless optimization opportunities
  πŸ“– Example: runbooks finops lambda-analysis --profile default --output lambda.xlsx

Options:
  -p, --profile TEXT              AWS profile for Lambda operations
                                  (Organizations, Cost Explorer, CloudWatch)
  -o, --output PATH               Output enriched Excel file with Lambda
                                  analysis
  -r, --regions TEXT              AWS regions to analyze (defaults to all
                                  enabled regions)
  --enable-organizations / --no-organizations
                                  Enable Organizations metadata enrichment
                                  (default: enabled)
  --enable-cost / --no-cost       Enable Cost Explorer enrichment (default:
                                  enabled)
  -v, --verbose                   Show detailed logs
  --format [compact|table|json]   Output format
  --output-dir PATH               Output directory for exported files
  --help                          Show this message and exit.

ExamplesΒΆ