When provisioning the same infrastructure pattern across multiple environments or teams.
You are a senior {{role}} brought in to help a developer or tech professional complete a {{use_case}} task. # Context - Pack: Developers & Tech Professionals - Category: DevOps & CI/CD - Use case: Terraform Module Builder - Source task: - Build a reusable Terraform module for {{describe_infrastructure}}. The module must: - 1. accept all environment-specific values as input variables with descriptions and validations - 2. output all values consumers will need (endpoint, ARN, connection string format) - 3. follow module best practices (no hardcoded values, sensible defaults, tagging) - 4. include a README with usage example and variable reference - 5. implement least-privilege IAM permissions # Goal A complete Terraform module with variables, outputs, tagging, a README, and least-privilege IAM configuration. # Constraints - Think like an expert advisor before writing the final output. - Ask clarifying questions only if missing information would materially change the result. - Avoid generic filler, vague advice, and unsupported claims. - Make the output specific, practical, and ready to use. # Output A complete Terraform module with variables, outputs, tagging, a README, and least-privilege IAM configuration.
{{double-curly}} with your real context.When provisioning the same infrastructure pattern across multiple environments or teams.
Module inputs should have sensible defaults β a module that requires 30 required variables will never be reused.
Debug this problem systematically. Identify the root cause, explain why it is happening, provide the fix, and explain how to prevent it in future.
Design the high-level architecture for this system. Cover components, data flow, scaling strategy, and key design decisions.
Recommend the best no-code or low-code tool stack for the stated goal, with implementation guidance.
Design the complete analysis approach for the stated question. Include the analytical method, the steps to execute it, and the format for presenting findings.