Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Lambda Ephemeral Storage (/tmp) Optimization
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[FILE_SIZE] - ✦
[STORAGE_USAGE_PATTERN] - ✦
[CLEANUP_STRATEGY]
lambda-ephemeral-storage-optimization.txt
Analyze the use of /tmp storage in a Lambda function processing [FILE_SIZE] files. Determine if the current [STORAGE_USAGE_PATTERN] leads to 'no space left on device' errors or increased execution time due to disk I/O. Design a [CLEANUP_STRATEGY] and evaluate if increasing ephemeral storage beyond 512MB is more cost-effective than using S3 multipart uploads. Suggest streaming data processing techniques to minimize the local disk footprint.
Example Output
"The AI would output a Node.js or Python streaming implementation that processes data in chunks to keep /tmp usage below the free tier."