runbooks finops optimize-cloudwatch-costsΒΆ
Auto-generated from
runbooks finops optimize-cloudwatch-costs --helpon 2026-05-21. Source of truth: runbooks PyPI package v1.3.22
Usage: runbooks finops optimize-cloudwatch-costs [OPTIONS]
Analyze and optimize CloudWatch log retention costs.
Implements Cost Optimization Playbook Phase 4 (CloudWatch cost controls).
Capabilities: - Log group retention policy optimization - Cost savings
calculations ($0.50/GB ingestion, $0.03/GB storage) - Automated retention
recommendations (7/30/90/365 days) - Infinite retention detection and
remediation
Business Impact: Typical savings of $10K-$50K annually
Options:
--profile TEXT AWS profile for single-account operations.
π Profile Selection Guide: βββββββββββββββββ
ββββββββββββββββββββββββββββββ
Single Account β Use --profile YOUR_PROFILE
Example: --profile dev-account When:
Developer/operator working in one AWS
account
Multi-Account LZ β Use --all-profiles (see
inventory commands) Example: --all-
profiles When: Platform team discovering
across organization
π Enrichment Profiles (Automatic): β’
Organizations: MANAGEMENT_PROFILE β’ Costs:
BILLING_PROFILE Note: Separate from
discovery profile
Decision: Single account = --profile |
Multi-account = --all-profiles
--region TEXT AWS region override (default: ap-
southeast-2)
--dry-run Safe analysis mode - no resource
modifications (enterprise default)
--regions TEXT AWS regions to analyze (default: major
commercial regions)
--mcp-validation Enable MCP validation for cost projections
--export-format [json|csv|markdown]
Export results format
--output-file PATH Output file path for results export
--output-dir PATH Output directory for exported files
--executive Executive summary format (business
narrative, <5 min review)
--help Show this message and exit.