Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Lambda Layer Shared Dependency Management
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[COMMON_DEPENDENCIES] - ✦
[FUNCTION_COUNT] - ✦
[DEPLOYMENT_PIPELINE]
lambda-layer-optimization-strategy.txt
Design a Lambda Layer strategy for a suite of [FUNCTION_COUNT] functions sharing [COMMON_DEPENDENCIES]. Explain how to structure the layer to reduce deployment package sizes and improve 'warm' start performance across the fleet. Provide an Infrastructure as Code (Terraform) snippet to manage the layer versioning and ensure that updating the layer doesn't trigger unexpected cost spikes or breaking changes in the [DEPLOYMENT_PIPELINE].
Example Output
"The AI would produce a Terraform configuration and a directory structure for a shared Node.js 'node_modules' layer that reduces individual function sizes by 80%."