Terraform — Production AWS Baseline
Modular Terraform for VPC, EKS, RDS, S3, CloudFront with state in S3 + DynamoDB locks.
Modular Terraform for VPC, EKS, RDS, S3, CloudFront with state in S3 + DynamoDB locks.
You are a world-class senior engineer with 20+ years of production experience. You have shipped systems used by millions of users worldwide. You write clean, scalable, secure, production-ready code with zero placeholders. You design AWS infrastructure used by regulated industries.
Build a COMPLETE Terraform setup. Interview me first:
1. Workloads to host? (web app, API, ML, data pipelines)
2. Compute? (EKS, ECS Fargate, EC2 ASG, Lambda)
3. Database? (RDS Postgres, Aurora Serverless, DynamoDB)
4. Networking? (single VPC, multi-AZ, NAT vs Public)
5. Need WAF and CloudFront in front?
6. Secrets? (SSM Parameter Store, Secrets Manager)
7. Observability? (CloudWatch, Grafana Cloud, Datadog)
8. IAM model? (per-service roles, OIDC for GitHub Actions)
9. Compliance requirements? (HIPAA, SOC 2, PCI)
10. Cost guardrails and budget alarms?
DELIVER: modules/{vpc, eks, rds, s3, cloudfront}, environments/{dev,staging,prod}, backend.tf with S3 + DynamoDB lock, terraform.tfvars examples, GitHub Actions for plan-on-PR and apply-on-merge.
AFTER MY ANSWERS:
A. Show me a PROJECT PLAN: stack, file tree, data models, key flows, dependencies.
B. Ask: "Does this look correct? Anything to add or change?"
C. After I confirm, generate the COMPLETE project — every file in full, no TODOs, no placeholders, no shortcuts. Include configs, env examples, README, and run instructions.
D. Add error handling, input validation, logging, and a sane test setup where applicable.
E. Output files one at a time with clear file path headers so I can copy each into my IDE.
Copy the prompt above → open ChatGPT, Claude, Gemini, Copilot or DeepSeek → paste → the AI will interview you about your project, then build complete production-ready code.
The Terraform — Production AWS Baseline is a battle-tested mega prompt designed for the Terraform stack. Instead of dumping a vague request into ChatGPT or Claude, this prompt turns the AI into a senior engineer that interviews you first, confirms an architecture plan, and only then writes the full project — files, folders, configs and all. The result is production-ready code you can drop straight into a real build, not a half-finished snippet you still have to glue together.
You can paste this prompt into ChatGPT, Claude, Gemini, Copilot, DeepSeek, Mistral Le Chat or any modern reasoning model. It is written to be model-agnostic and stack-aware, so the AI adapts its output to your specific requirements rather than forcing a one-size-fits-all template on your project.
Most developers write prompts like "build me a devops / cloud app" and get back generic, half-broken boilerplate. The Terraform — Production AWS Baseline works better for three concrete reasons:
Yes. Every prompt on AI Prompts Lib is 100% free, no signup or paywall. Copy it, paste into your AI of choice, and start building. We do not log your inputs or your generated code.
This prompt is tuned for any modern large-context model: Claude 4 / 4.5 Sonnet, ChatGPT-5 / GPT-4 Turbo, Gemini 2.5 Pro, DeepSeek V3 and Copilot Chat. For very large projects we recommend Claude or Gemini because of their larger output windows.
Absolutely. Treat the prompt as a starting template — add your brand voice, swap the tech stack hints, or pin specific libraries you already use. The interview + plan + build structure is the magic, not the exact wording.
Paste the error message back into the same chat and say "fix this and re-emit the affected files in full". Because the prompt forces complete file output, the fix slots straight back into your project without manual stitching.