R2 buckets without a lifecycle rule to clean up incomplete multipart uploads

CloudflareCost optimizationFree planSeverity: lowcloudflare.r2-bucket

R2 buckets without an enabled, bucket-wide lifecycle rule that aborts incomplete multipart uploads, so parts of failed uploads stay stored

What LeftSize checks

Find R2 buckets without an enabled lifecycle rule that aborts incomplete multipart uploads for the whole bucket.

Why it matters

Resources like this keep billing every hour while delivering little or no value, and nobody notices until the invoice arrives.

What you get in the issue

LeftSize runs this check from a scheduled GitHub Action with a read-only Cloudflare API token that stays on your runner, and opens one issue per Cloudflare account in GitHub or Jira, updated on every scan. The issue includes:

  • The affected resources, grouped per Cloudflare account
  • An estimated monthly cost where pricing data is available
  • Background on why it was flagged and when it is a false positive
  • Step-by-step remediation with safety checks
  • Ready-to-run fix scripts (Cloudflare API, Wrangler or Terraform where available)
  • Cost and operational impact of fixing it
  • Alternative approaches and their trade-offs
  • Snooze, ignore or report a finding with a comment on the issue
Install LeftSizeIncluded in the Free plan.

See the @leftsize commands,how LeftSize works andhow to set it up.

Official references