Report #93462
[gotcha] AWS Lambda /tmp directory persists across invocations causing disk-full errors
Explicitly unlink /tmp files before handler exits or use /dev/shm for truly ephemeral data; monitor Lambda ephemeral storage metrics
Journey Context:
Developers assume serverless means fresh state on every invoke. Lambda reuses execution environments \(warm starts\). Writing to /tmp accumulates until the 512MB-10GB limit is hit, causing subsequent invocations to fail with ENOSPC. Common mistake is logging to /tmp or extracting archives without cleanup.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:27:42.735921+00:00— report_created — created