42 AWS resources. One command. A real production architecture built from scratch.
Architecture
Real Problems
RDS password was BookReview#2024! — the # is treated as a comment start by dotenv. Backend was connecting as "BookReview" only. Fix: removed special characters from the password entirely.
Ubuntu 22.04 ships Node.js 12. The app needed Node.js 18. Fix: removed default Node, installed v18 via NodeSource setup script.
Backend half configured, frontend half built. This forced me to finish manually — proving I actually understood what the AI was doing, not just watching it run. Lesson: always understand your tools, not just use them.
PM2 was running but the app kept failing. No .env file existed on the app instances. Fix: SSH'd into each instance and created the .env file manually with the correct RDS endpoint and credentials.
Key Skills
terraform destroy deleted all 42 resources in 8 minutes. terraform apply rebuilt them in 15. Create and destroy entire production environments on demand — that is the superpower of IaC.
Claude Code generated 400+ lines of Terraform in minutes. But when it ran out of credits I had to finish manually. Engineers who win with AI understand what it is doing, not just that it is doing it.
#, @, ! can all break dotenv parsing. Always test .env files and verify database connections before deploying the full app stack.
The architecture diagram saved hours. Knowing exactly what connects to what before writing Terraform means fewer surprises mid-deployment and cleaner security group design.