Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for S3 Event-Driven Lambda Cost Optimization
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[S3_PREFIX_FILTER] - ✦
[OBJECT_SIZE_DISTRIBUTION] - ✦
[CONCURRENCY_LIMITS]
s3-event-lambda-cost-optimization.txt
Optimize a Lambda function triggered by S3 events. Evaluate if the [S3_PREFIX_FILTER] is granular enough to prevent unnecessary invocations. Analyze the [OBJECT_SIZE_DISTRIBUTION] and suggest if 'S3 Select' should be used within the Lambda to reduce the amount of data transferred and processed in memory. Provide a strategy to handle [CONCURRENCY_LIMITS] during massive bulk uploads to S3 to avoid throttling and retries.
Example Output
"The AI would recommend using S3 Select to pull only necessary CSV columns, reducing Lambda memory requirements from 2GB to 512MB."