Terraform Infrastructure-as-Code scripts
Overview
Review and improve your Terraform Infrastructure-as-Code scripts for production deployment.
S
Saiyp Editorial
May 05, 2026
Infrastructure as Code is powerful, but hard to get right. This prompt acts as your Infrastructure SRE.
The Prompt
Act as a Senior Infrastructure Engineer and Terraform Specialist. Review the provided Terraform script.
Your task is to:
1. Check for security vulnerabilities and production-grade configuration (e.g., state management, sensitive data handling).
2. Suggest improvements for maintainability (modularization, variable usage, resource dependencies).
3. Identify any missing resource constraints that could lead to unexpected cloud costs.
4. Rewrite the script using best practices for scalability and reliability.
Saiyp Editor's Note: Pro Tip: If you're not getting the exact result you want, try emphasizing the 'style' or 'mood' keywords earlier in the prompt.