Snapshot & Storage Decommission¶
💾 Storage Cost Optimization | Commands:
runbooks finops ec2-snapshots,runbooks finops optimize-s3-lifecycle
Overview¶
Identify orphaned snapshots, unused S3 buckets, and optimize storage tiering with lifecycle policies.
When to Use¶
| Scenario | Command | Savings Potential |
|---|---|---|
| Monthly Snapshot Cleanup | runbooks finops ec2-snapshots --all-profiles --delete-unattached |
$200-$500/month |
| S3 Lifecycle Optimization | runbooks finops optimize-s3-lifecycle --all-profiles |
$800-$1500/month |
| Deep Archive Planning | runbooks finops analyze-s3-storage-lens --all-profiles |
Variable by data age |
Usage Examples¶
Example 1: Orphaned Snapshot Removal (3 min)
runbooks finops ec2-snapshots \
--all-profiles \
--delete-unattached \
--output-dir ./snapshot-audit
# Output: snapshot-audit/removal-plan.csv
# 250+ orphaned snapshots:
# - Total storage: 1,250 GB
# - Monthly waste: $800-$1200
# - Action: Automatically delete unattached
# - Confidence: 100% (safe - no attached volumes)
Example 2: S3 Lifecycle Policy Recommendations (5 min)
runbooks finops optimize-s3-lifecycle \
--all-profiles \
--format pdf \
--output-dir ./reports
# Output: S3 lifecycle recommendations:
# - Standard to Infrequent Access (90 days): $150/month
# - Infrequent Access to Glacier (180 days): $200/month
# - Glacier to Deep Archive (365 days): $100/month
# - Delete old logs (730 days): $50/month
# Total savings: $500/month with policy implementation
Example 3: Storage Lens Cost Analysis (2 min)
runbooks finops analyze-s3-storage-lens \
--all-profiles \
--breakdown-by-bucket
# Output: Per-bucket cost:
# - Bucket A (logs): 150GB Standard → 50GB Glacier (save $120/mo)
# - Bucket B (data): 500GB mixed → optimize tiering (save $180/mo)
# - Bucket C (archive): Already optimized
Enrichment Signals¶
| Signal | Definition | Data Source |
|---|---|---|
| S1 | Storage class cost | S3 Pricing API |
| S2 | Object age distribution | S3 Inventory reports |
| S3 | Access frequency | S3 Storage Lens metrics |
| S4 | Request patterns | CloudTrail (S3 API calls) |
| S5 | Encryption overhead | AWS KMS usage metrics |
| S6 | Replication cost | S3 metrics (cross-region) |
Related Commands¶
detect-orphans- Cross-resource cleanup (including old snapshots)analyze-s3-storage-lens- Storage distribution analysisoptimize-cloudwatch-costs- Log storage optimization (paired with S3)
MCP Validation¶
Storage optimization validated at ≥99.5% accuracy using S3 Inventory, Storage Lens, and CloudTrail.
Typical savings: $200-$500/month per organization (snapshots + lifecycle).