I've Been Using AWS Wrong for YEARS...


I've Been Using AWS Wrong for YEARS...

For years, my approach to AWS felt like a battle.
As a DevOps engineer and later and architect, building infra always involved a tedious process of carefully building templates and structure, reviewing, deploying, testing and iterating over and over.

I’d either spend hours clicking through the console or writing endless infrastructure code, always feeling like I was one misconfiguration away from a headache.
It turns out, I was making it much harder than it needed to be by not using the right kind of tools for the job.

The biggest problem we face as developers isn't writing application code, it's the gap between a working project on our local env and a secure, scalable, and cost-efficient setup in the cloud.

DevOps is complex, and while general-purpose AI chatbots are great for generating a function or explaining a concept, they often fall apart when you ask them to build real production infrastructure. They lack the deep, specialized context and can hallucinate configurations (or, misconfigurations rather) that look plausible but are practically broken.

This leads to a frustrating loop of generating code, trying to deploy it, watching it fail, and then manually debugging what went wrong.

I recently decided to built my own Home Barista project so that guests could order drinks using an app (yea, I know, save it 🤣).
I wanted to put this project in production, and while I have an endless amount of options, I'm also the proud owner of $600 credits on AWS, valid till next year...

What I learned from building that project is that the solution isn't just any AI, but a specialized one that can speak the language of the tools we use.
The game changer for me was the Q Developer CLI.
Yes, it's AWS's, but also, completely open source and free to use (you are after all building infra on their cloud...)
It’s so deeply trained on AWS that it can offer surprisingly sharp insights.
For fun, I asked it to roast the AWS dashboard, known for it's "annoying" UI, to put it mildly, and its response was spot on:

"where do I even begin information overload wasting prime real estate hide-and-seek with basic functionality consistency never heard of it amazon please listen to your own creation"

- Q developer (betraying its creators)

The real magic, however, comes from their MCPs.
Now, I know, I know you've heard the buzzword so many times you're almost clicking away, but stay with me.
AWS came up with their own long list of MCP servers free and available to use, that I've plugged into Q to get help with both terraform code (trained on AWS official Terraform provider) + their cost analysis MCP helping you drill down in cost allocation, reduction and other wasted infra on AWS.

My workflow looked completely different.
I started with my application code and a simple architecture diagram.

Then, I fed my architecture to the Q CLI.

I asked it to build the entire production infrastructure using its Terraform MCP.
It generated all the necessary files, creating a robust setup with networking, container services (ECS), and databases.

Here’s the incredible part

I then asked it to use its Cost Analysis MCP to tell me how much the infrastructure it just designed would cost per month. It came back with an estimate of around $100 ("way too bloated if you ask me", I thought).
So, I simply told it: "That's too expensive. We don't need two availability zones or a load balancer."
Q understood, updated all the Terraform files, and provided a new cost breakdown $45/month (still not the $5 you can get elsewhere, but imagine a full blown networking setup, load balancers, monitoring and everything around it, ready for production grade scale).
Oh yeah, and I have these credits waiting 😉

The best part? The generated Terraform code worked on the first try.
terraform plan and terraform apply ran smoothly because the AI wasn't just guessing; it was using the official Terraform provider for AWS, ensuring all the resources were configured and connected correctly.

I don't know if you've ever built something slightly complex on Terraform, but there's one rule, it never, ever, runs on first try. Mine did!

This approach flips the script.
Instead of using AI to generate disconnected snippets that I have to stitch together, I'm using a specialized partner to architect, build, and cost-optimize an entire system, all from my command line. It's a faster, smarter, and frankly, more enjoyable way to work with the cloud.

And while the above is just an example, imagine taking this process to your work environment, cost reduction projects and enterprise-grade systems. It's a game changer!


Thank you for reading.
Feel free to reply directly with any question or feedback.
Have a great weekend!

ESPRESSO FRIDAYS

Every once in a while I send hand picked things I've learned. Kind of like your filter to the tech internet. No spam, I promise!

Read more from ESPRESSO FRIDAYS

You've been lied to about self hosting... This issue is brought to you by: Auth0, my auth provider for the last 6 years. Join their free virtual dev_day on June 18th to learn how to secure AI agents and applications. Save your free spot That title might sound a bit aggressive, but this isn't about hating on hosting platforms. It's about loving the freedom, control, and cost-savings that come from owning your deployment process, without giving up the slick, easy experience we all love. And...

How DHH Solved Deploying to Production (with Open Source) Ever felt depressed by the sheer complexity of getting your application live and serving users? You’re not alone. But what if deploying to production, even (or especially) across multiple servers, could be straightforward and more importantly, free? That’s the reality DHH, the creator of Ruby on Rails and CTO of Basecamp & HEY, wanted to create, and he delivered with an open source tool called Kamal. DHH’s approach to technology always...

The UNDERRATED Open Source Powering My HomeLab This issue is brought to you by: Secure Your AI Future at Snyk Launch 2025 Join Snyk Launch to discover how to establish a foundation to build securely and confidently in the age of AI. Register for Snyk Launch 2025 (It’s Free!) Kestra, an open-source automation platform that's been a game-changer for my homelab and, frankly, could be for a lot more. It's one of those tools that flies under the radar for too many people, but packs so much...