FCAI Wiki

S3 and CloudWatch Logs Cost Controls

Lifecycle policies, Intelligent-Tiering, and log retention with FCAI checks

S3 and CloudWatch Logs Cost Controls

Cut storage and logging costs without losing needed data. FCAI detects buckets and log groups with outsized spend.

S3 lifecycle and classes

  • Enable Intelligent-Tiering for unknown access patterns.
  • Lifecycle to IA/Glacier for aged objects; delete expired artifacts.
  • Compress objects (gzip/parquet) for large text and analytics.

CloudWatch Logs retention

  • Set explicit retention (e.g., 7–30 days for app logs, 90 for audit).
  • Use subscription filters to move high-volume logs to S3.
  • Avoid excessive metrics filters and high-cardinality labels.

FCAI helps

  • Identifies buckets with no lifecycle and log groups with infinite retention.
  • Proposes safe retention defaults and auto-PRs for IaC repositories.