<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ralphnetwork on Medium]]></title>
        <description><![CDATA[Stories by Ralphnetwork on Medium]]></description>
        <link>https://medium.com/@ralphnetwork?source=rss-9519835cde1d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vYOA6JQjokCqsW9K</url>
            <title>Stories by Ralphnetwork on Medium</title>
            <link>https://medium.com/@ralphnetwork?source=rss-9519835cde1d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:56:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ralphnetwork/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AI Automation · Personal Story]]></title>
            <link>https://medium.com/@ralphnetwork/ai-automation-personal-essay-7e016f9e0f77?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e016f9e0f77</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 06:11:43 GMT</pubDate>
            <atom:updated>2026-04-30T06:12:22.929Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Built an AI Agent That Writes My LinkedIn Posts — Here’s Exactly How</h3><p>April 2026 · 5 min read · AI &amp; Future of Work</p><p>“We are living through the biggest shift in how work gets done since the Industrial Revolution — and most professionals are watching it happen instead of leading it.”</p><p>I just completed a course that genuinely changed how I think about work: <strong>“Build AI Agents for Business: Automate Work Without Coding”</strong> on Udemy. And I didn’t just watch the videos — I built something real. Something that works while I’m not at my desk.</p><p>This post isn’t a course review. It’s a story about what happens when you stop treating AI as a buzzword and start treating it as a tool you actually know how to use.</p><p>— ✦ —</p><h3>The World Has Already Changed</h3><p>AI agents are no longer a tech-company luxury. Right now, marketers are deploying agents that write, design, and publish content while they sleep. Sales teams have agents that qualify leads, log them to a CRM, and ping the team on Slack — all automatically. Solo entrepreneurs are running customer support and inbox management with zero extra headcount.</p><p>The most disruptive part? <strong>You don’t need to write a single line of code.</strong></p><p>AI is reshaping every profession imaginable:</p><p>Marketing Healthcare Law Education Logistics HR Sales Finance Customer Support Content Creation</p><p>The question isn’t whether automation will affect your field. It’s whether you’ll be the one deploying it — or the one displaced by it.</p><p><strong>45 </strong>Minutes saved per post</p><p><strong>24/7 </strong>Agent runs non-stop</p><p><strong>0 </strong>Lines of code written</p><p>— ✦ —</p><h3>What Made It Real For Me</h3><p>As a hands-on project, I built an AI Agent that writes customized LinkedIn posts — automatically. Not a template. Not a fill-in-the-blank tool. A genuine pipeline that takes my ideas and produces polished, publish-ready content.</p><p>Here is the exact five-step process I followed:</p><h3>Step One</h3><h4>Create My Identity</h4><p>I gave the agent a persona — its tone, style, and purpose. Think of it as writing a detailed job description for a digital employee. Mine was a professional content creator who understands my voice, my audience, and my goals. This is the foundation everything else is built on.</p><h3>Step Two</h3><h4>Build Memory</h4><p>I fed the agent the context it needs to remember: who I am, what I do, my areas of expertise, and the kind of content I want to put into the world. This is what separates a generic AI output from something that actually sounds like you.</p><h3>Step Three</h3><h4>Create a Skill</h4><p>I defined the specific task: write compelling, engaging LinkedIn posts based on a given topic or experience. The agent now knows the structure, the tone, the hooks — everything that makes a post actually perform and stop the scroll.</p><h3>Step Four</h3><h4>Connect the Tools</h4><p>I plugged in the tools it needed — Claude Cowork as the AI brain, and LinkedIn as the publishing destination. No manual copy-pasting. No switching between 10 tabs. Every component talks to each other seamlessly inside the pipeline.</p><h3>Step Five</h3><h4>Publish &amp; Run the Full Agent</h4><p>I hit run. The agent took my input, processed it through every step, and produced two fully customized LinkedIn posts — ready to publish. A process that used to take me 30–45 minutes happened in seconds. This wasn’t just a course exercise. It was a glimpse into how work will be done from now on.</p><p><strong>The breakthrough moment:</strong> When I saw the agent produce two posts that actually sounded like me — with my voice, my framing, my audience in mind — I realized I hadn’t just automated a task. I had built a system that scales my thinking.</p><p>— ✦ —</p><h3>Why This Matters Beyond LinkedIn Posts</h3><p>The LinkedIn agent was just the project. The real lesson was understanding the architecture behind it: Identity, Memory, Skill, Tools, Pipeline. Once you understand that structure, you can apply it to almost any repetitive, knowledge-based task in your work — email responses, lead qualification, report drafting, customer support, content calendars, and far more.</p><p>Businesses already using AI agents are saving thousands of hours and moving faster than their competitors. Every week you wait, the gap widens.</p><p>The professionals winning in this era aren’t the ones working harder. They’re the ones building smarter systems. I chose to learn — and I’m just getting started.</p><h3>Curious About AI Automation?</h3><p>The tools are here. The knowledge is accessible. The only thing missing is the decision to start.</p><p><a href="https://www.udemy.com/course/build-ai-agents-for-business-automate-work-without-coding/">Explore the Course →</a></p><p>Written after completing “Build AI Agents for Business: Automate Work Without Coding” · Udemy · 2026</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wXBZZ4axc8BBhzgdIFTJjQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e016f9e0f77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a Kubernetes LoadBalancer on AKS: Lessons from the Trenches]]></title>
            <link>https://medium.com/@ralphnetwork/deploying-a-kubernetes-loadbalancer-on-aks-lessons-from-the-trenches-1727c9998edb?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1727c9998edb</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 04:21:48 GMT</pubDate>
            <atom:updated>2026-04-30T04:21:48.123Z</atom:updated>
            <content:encoded><![CDATA[<p>As part of my Kubernetes learning journey, I’ve been working through a series of hands-on labs — mostly running locally. But to get closer to real-world scenarios, I decided to deploy a <strong>LoadBalancer service on Azure Kubernetes Service (AKS)</strong>.</p><p>What seemed like a straightforward task quickly turned into a deep dive into Kubernetes configuration, authentication, and environment quirks — especially working within WSL.</p><p>This post walks through what I did, the challenges I encountered, and what I learned.</p><p><strong>Project Overview</strong></p><p>The goal of this lab was simple:</p><ul><li>Create an AKS cluster</li><li>Deploy a sample application (NGINX)</li><li>Expose it using a <strong>LoadBalancer service</strong></li><li>Access the application via a public IP</li></ul><p>While most earlier Kubernetes labs (Pods, Deployments, Services) were done locally, this step introduced cloud-native behavior — specifically how Kubernetes integrates with Azure networking.</p><p><strong>What I Did</strong></p><p><strong>1. Created an AKS Cluster</strong></p><p>I provisioned a single-node AKS cluster using the Azure CLI:</p><p>az aks create -g rg-aks-lb-lab -n aks-lb-lab — node-count 1 — node-vm-size Standard_D2s_v3 — generate-ssh-keys</p><p><strong>2. Connected to the Cluster</strong></p><p>After creating the cluster, I fetched credentials and configured kubectl:</p><p>az aks get-credentials -g rg-aks-lb-lab -n aks-lb-lab — admin</p><p><strong>3. Deployed a Sample Application</strong></p><p>kubectl create deployment nginx — image=nginx</p><p><strong>4. Exposed the Application via LoadBalancer</strong></p><p>kubectl expose deployment nginx — type=LoadBalancer — port=80</p><p><strong>5. Verified External Access</strong></p><p>kubectl get svc</p><p>After a short wait, Azure provisioned a public IP, and I could access the application via the browser.</p><p><strong>Challenges &amp; How I Solved Them</strong></p><p>This is where the real learning happened.</p><p><strong>1. Broken kubeconfig (clusters: null)</strong></p><p>At some point, kubectl completely stopped working. Running:</p><p>kubectl config view — raw</p><p>returned:</p><p>clusters: null</p><p><strong>Fix:</strong></p><p>I deleted the corrupted config and regenerated it cleanly instead of trying to repair it.</p><p><strong>2. Authentication Errors (“Authentication required”)</strong></p><p>I kept seeing HTML responses like:</p><p>Authentication required</p><p>Initially, I assumed it was an Azure AD issue and tried using kubelogin.</p><p><strong>Problem:</strong></p><p>My AKS cluster was <strong>not AAD-enabled</strong>, so that approach was incorrect.</p><p><strong>Fix:</strong></p><p>I switched to admin credentials:</p><p>az aks get-credentials — admin</p><p>This bypassed AAD and used certificate-based authentication.</p><p><strong>3. WSL Filesystem Confusion</strong></p><p>Azure CLI claimed it wrote my kubeconfig file, but when I checked:</p><p>cat /tmp/aks-clean-config</p><p>…the file didn’t exist.</p><p><strong>Root Cause:</strong></p><p>Mismatch between <strong>Windows filesystem and WSL filesystem paths</strong>.</p><p><strong>Fix:</strong></p><p>I explicitly wrote the kubeconfig to my working directory:</p><p>— file ./aks-clean-config</p><p>This ensured the file existed in the environment kubectl was using.</p><p><strong>Key Lessons Learned</strong></p><p><strong>1. Kubernetes Issues Often Aren’t What They Seem</strong></p><p>What looked like a networking issue (LoadBalancer not working) was actually:</p><ul><li>config corruption</li><li>authentication mismatch</li></ul><p><strong>2. Always Verify kubeconfig First</strong></p><p>Before debugging anything else:</p><p>kubectl config view — raw</p><p>If that’s broken, everything else will fail.</p><p><strong>3. Understand Your Cluster’s Auth Model</strong></p><p>AKS supports two modes:</p><ul><li><strong>AAD-enabled</strong> → requires kubelogin</li><li><strong>Non-AAD</strong> → use — admin credentials</li></ul><p>Mixing them leads to confusing failures.</p><p><strong>4. WSL Can Introduce Hidden Complexity</strong></p><p>File paths and tool installations can behave differently between:</p><ul><li>Windows</li><li>WSL</li></ul><p>Being explicit about paths avoids subtle bugs.</p><p><strong>How LoadBalancer Works in AKS (Quick Insight)</strong></p><p>When you create a service like:</p><p>type: LoadBalancer</p><p>AKS automatically:</p><ul><li>Provisions an <strong>Azure Load Balancer</strong></li><li>Assigns a <strong>public IP</strong></li><li>Maps traffic → node → pod</li></ul><p>This abstraction is powerful — but when something breaks, understanding the underlying flow is critical.</p><p><strong>Final Outcome</strong></p><ul><li>AKS cluster running successfully</li><li>Application deployed and exposed</li><li>Public IP assigned and reachable</li><li>End-to-end traffic verified</li></ul><p><strong>Final Thoughts</strong></p><p>This lab reinforced something important:</p><p>You don’t really understand Kubernetes until you’ve debugged it.</p><p>The setup itself was simple. The real value came from:</p><ul><li>breaking things</li><li>investigating errors</li><li>understanding <em>why</em> they happened</li></ul><p>That’s where real DevOps skills are built.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cp1zan4L3xMeFLUumkIVHA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1727c9998edb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Pipelines to Production: My Real DevOps Journey with Azure, Terraform & Ansible]]></title>
            <link>https://medium.com/@ralphnetwork/from-pipelines-to-production-my-real-devops-journey-with-azure-terraform-ansible-df8117978112?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/df8117978112</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 07:56:15 GMT</pubDate>
            <atom:updated>2026-04-20T07:56:15.691Z</atom:updated>
            <content:encoded><![CDATA[<p>When I started learning DevOps, I thought it would mostly be about connecting tools — write a pipeline, deploy an app, and move on.</p><p>I was wrong.</p><p>This project didn’t just teach me DevOps tools. It forced me to think like a systems engineer — debugging across infrastructure, operating systems, networking, and application layers.</p><p>What started as a simple deployment quickly turned into one of the most intense and rewarding learning experiences I’ve had.</p><p><strong>What I Built</strong></p><p>I implemented a complete end-to-end DevOps workflow for a full-stack application called <strong>EpicBook</strong>, using a two-repository architecture:</p><p><strong>🔹 Infrastructure Repository (Terraform)</strong></p><p>Responsible for provisioning cloud resources in Azure:</p><ul><li>Resource Group</li><li>Virtual Network and Subnets</li><li>Ubuntu Virtual Machines (Frontend &amp; Backend)</li><li>Managed MySQL Database (PaaS)</li></ul><p>This was fully automated using an Azure DevOps pipeline that executed:</p><ul><li>terraform init</li><li>terraform plan</li><li>terraform apply</li></ul><p>And exposed critical outputs like:</p><ul><li>Public IPs</li><li>Database endpoint (FQDN)</li></ul><p><strong>🔹 Application Repository (Ansible + App Code)</strong></p><p>Responsible for configuring the provisioned infrastructure:</p><ul><li>Installed dependencies (Node.js, Nginx, etc.)</li><li>Configured backend to connect to MySQL</li><li>Deployed frontend and backend applications</li><li>Set up Nginx to serve the application</li></ul><p>All automated via a second Azure DevOps pipeline that:</p><ul><li>Pulled SSH keys securely</li><li>Dynamically updated inventory using Terraform outputs</li><li>Ran Ansible playbooks to configure both servers</li></ul><p><strong>The CI/CD Architecture</strong></p><p>The system was built around two pipelines:</p><p><strong>1️⃣ Infrastructure Pipeline</strong></p><ul><li>Provisions all cloud resources</li><li>Uses Azure Service Connection (SPN) for authentication</li><li>Outputs values consumed by the next stage</li></ul><p><strong>2️⃣ Application Pipeline</strong></p><ul><li>Configures servers using Ansible</li><li>Deploys the application</li><li>Verifies accessibility via Nginx</li></ul><p>This separation made the workflow modular, reusable, and production-aligned.</p><p><strong>The Challenges (Where the Real Learning Happened)</strong></p><p>This project wasn’t smooth — and that’s exactly why it was valuable.</p><p><strong>SSH Key Nightmares</strong></p><p>My pipeline kept failing authentication.</p><p>Root cause?<br> Line ending issues.</p><p>Fix:</p><p>dos2unix key.pem</p><p>A tiny issue, but it completely blocked deployment.</p><p><strong>⏱️ Agent Timeouts</strong></p><p>My self-hosted Azure DevOps agent kept disconnecting mid-pipeline.</p><p>Fix:<br> Configured SSH keepalive settings:</p><p>ClientAliveInterval 120</p><p>ClientAliveCountMax 720</p><p>Lesson: Long-running pipelines require stable connections.</p><p><strong>Missing Dependencies</strong></p><p>Pipelines failed because tools like Git and Terraform weren’t installed on the VM.</p><p>Fix:<br> Explicitly installed all dependencies in pipeline steps.</p><p>Lesson: Never assume environment state.</p><p><strong>Permission Issues (EACCES)</strong></p><p>Next.js build failed due to permission errors on .next directory.</p><p>Fix:</p><p>sudo chown -R azureuser:azureuser /opt/frontend/frontend</p><p>Lesson: File ownership matters more than you think.</p><p><strong>The “Immortal” Node Process</strong></p><p>I encountered one of the most confusing issues:</p><ul><li>I killed Node processes</li><li>They came back instantly</li><li>Ports remained occupied</li></ul><p>It felt like the app had a life of its own.</p><p>Fix:</p><ul><li>Traced process hierarchy using ps</li><li>Identified background process behavior</li><li>Eventually reset the environment cleanly</li></ul><p>Lesson: Always trace the parent process, not just the symptom.</p><p><strong>Breaking SSH Access (Yes, Really)</strong></p><p>In trying to fix things, I accidentally disabled core system services.</p><p>Result:</p><ul><li>Lost SSH access completely</li></ul><p>Recovery:<br> Used Azure Serial Console to restore SSH service.</p><p>Lesson: Never blindly stop system services.</p><p><strong>Next.js Production Mistakes</strong></p><p>I initially ran:</p><p>next dev — turbopack</p><p>In production.</p><p>This caused:</p><ul><li>Missing module errors</li><li>Broken builds</li></ul><p>Fix:<br> Switched to proper production workflow:</p><p>npm run build</p><p>npm run start</p><p>Lesson: Dev mode ≠ Production.</p><p><strong>“It Works But It Doesn’t” (Frontend Issue)</strong></p><p>The app loaded, but stayed stuck on:</p><p>“Loading books…”</p><p>Backend was working. Frontend was working. But they weren’t talking.</p><p>Root cause:</p><p><a href="http://localhost:3001/">http://localhost:3001</a></p><p>From the browser, localhost refers to the user’s machine — not the backend server.</p><p>Fix:<br> Updated API URL to backend public IP:</p><p>http://&lt;backend-ip&gt;:3001</p><p>Lesson: Networking context matters.</p><p><strong>What This Project Taught Me</strong></p><p>This experience changed how I think about DevOps:</p><p><strong>DevOps is Layered Debugging</strong></p><p>You must be able to isolate issues across:</p><ul><li>Infrastructure</li><li>OS</li><li>Network</li><li>Application</li></ul><p><strong>Tools Don’t Replace Thinking</strong></p><p>Terraform, Ansible, and pipelines are powerful — but they don’t fix bad assumptions.</p><p><strong>Small Mistakes Have Big Impact</strong></p><p>A wrong path, a missing permission, or using localhost can break an entire system.</p><p><strong>Clean State is Powerful</strong></p><p>Sometimes the best fix isn’t patching — it’s resetting and rebuilding correctly.</p><p><strong>Final Outcome</strong></p><p>After all the iterations, I achieved:</p><ul><li>✅ Fully automated infrastructure provisioning</li><li>✅ End-to-end CI/CD pipelines</li><li>✅ Configured frontend &amp; backend servers</li><li>✅ Stable process management using PM2</li><li>✅ Application served via Nginx</li><li>✅ Functional frontend-backend communication</li><li>✅ MySQL database integration</li></ul><p><strong>Final Thoughts</strong></p><p>This wasn’t just a project — it was a real DevOps experience.</p><p>Not because everything worked…</p><p>…but because <strong>so many things didn’t — and I had to figure out why</strong>.</p><p>DevOps isn’t about getting it right the first time.<br> It’s about understanding failure deeply enough to fix it permanently.</p><p>If you’re learning DevOps, don’t avoid the hard problems.</p><p>That’s where the real learning is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kyHFIAZeWc-Ja27ag74B_Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df8117978112" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating the EpicBook Deployment on Azure with Terraform and Ansible]]></title>
            <link>https://medium.com/@ralphnetwork/automating-the-epicbook-deployment-on-azure-with-terraform-and-ansible-4eab463642e8?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eab463642e8</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 15:49:51 GMT</pubDate>
            <atom:updated>2026-04-09T15:49:51.838Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Automating the EpicBook Deployment on Azure with Terraform and Ansible</strong></p><p>Deploying applications manually can be repetitive and error‑prone, especially when scaling or maintaining multiple environments. To eliminate manual configuration and achieve true Infrastructure‑as‑Code consistency, I recently built a full automation pipeline for the <strong>EpicBook Web Application</strong> using <strong>Terraform</strong> (for infrastructure provisioning) and <strong>Ansible</strong> (for configuration and application deployment).</p><p>This project was not only a technical exercise but also a complete learning experience in real‑world DevOps practices — blending cloud provisioning, environment automation, and hands‑on troubleshooting.</p><p><strong>Project Overview</strong></p><p>The goal was to deploy <strong>EpicBook</strong>, a Node.js‑based web app with a MySQL database, to a production‑like environment on <strong>Microsoft Azure</strong>.</p><p><strong>Objectives</strong></p><p>1. <strong>Provision infrastructure</strong> with Terraform:</p><p>o Azure Resource Group</p><p>o Virtual Network + Subnet</p><p>o Network Security Group (ports 22 and 80)</p><p>o Public IP address</p><p>o Ubuntu 22.04 VM</p><p>o Azure MySQL Flexible Server</p><p>2. <strong>Configure the server</strong> with Ansible roles:</p><p>o Install system packages and dependencies</p><p>o Set up Nginx as a reverse proxy</p><p>o Clone and configure the EpicBook app</p><p>o Manage the Node.js process using pm2</p><p>o Connect to Azure MySQL using a templated .env file</p><p>3. <strong>Ensure idempotency</strong> — re‑running the playbook should show no unnecessary changes.</p><p><strong>Step 1: Infrastructure with Terraform</strong></p><p>Terraform handled every Azure resource — from the Resource Group to MySQL server.<br> It also outputs key connection details like the VM public IP and MySQL hostname.</p><p>After a simple:</p><p>terraform init</p><p>terraform plan</p><p>terraform apply</p><p>Azure automatically created a fully networked environment ready for configuration.</p><p><strong>Step 2: Configuration with Ansible</strong></p><p>Ansible connected to the newly created VM via <strong>passwordless SSH</strong> and executed role‑based automation.</p><ul><li><strong>common role:</strong> updated apt repos and installed essential packages.</li><li><strong>nginx role:</strong> deployed the reverse‑proxy config (/etc/nginx/sites‑available/epicbook) and reloaded Nginx.</li><li><strong>epicbook role:</strong></li><li>Installed Node.js, npm, and pm2.</li><li>Cloned the GitHub repo.</li><li>Created the .env file dynamically.</li><li>Imported the SQL schema into Azure MySQL.</li><li>Started the app under pm2 for long‑term process management.</li></ul><p>With one command —</p><p>ansible‑playbook -i inventory.ini site.yml</p><p>— the whole environment was up and running.</p><p><strong>The Challenge</strong></p><p>At first, everything looked right… but <strong>Nginx only returned “502 Bad Gateway”</strong>.<br> Examining /var/log/nginx/error.log showed this repeating line:</p><p>connect() failed (111: Connection refused) while connecting to upstream</p><p><strong>Diagnosis</strong></p><p>Nginx was configured to proxy requests to <a href="http://127.0.0.1:3000,">http://127.0.0.1:3000,</a> but the EpicBook app wasn’t listening on that port.<br> Inspecting server.js revealed the default Node.js port was <strong>8080</strong>, not 3000.<br> To make matters worse, the .env template generated a broken line:</p><p>PORT=3000azureuser…</p><p>So, the Node.js process never started successfully, and pm2 had zero running apps.</p><p><strong>Fix</strong></p><p>I cleaned the .env file, updated both .env and the Nginx template to use <strong>PORT 8080</strong>, re‑installed the dependencies, restarted the app under pm2, and reloaded Nginx.</p><p>Immediately, the backend connected and the EpicBook homepage displayed perfectly — accessible at <a href="http://4.221.162.179/"><strong>http://4.221.162.179</strong></a>.</p><p><strong>Step 3: Testing the Deployment</strong></p><p>To verify everything:</p><ul><li>Opened the app in a browser → loaded successfully.</li><li>Ran sudo nginx ‑t → configuration syntax OK.</li><li>Re‑ran ansible‑playbook → all tasks showed <strong>OK/UNCHANGED</strong>, confirming idempotency.</li></ul><p><strong>What I Learned</strong></p><ul><li><strong>Terraform + Ansible</strong> form a powerful DevOps duo: infrastructure and configuration perfectly separated but fully automated.</li><li>Consistent <strong>ports and environment variables</strong> are critical in multi‑tool pipelines.</li><li>Idempotent roles ensure zero drift — re‑execution only verifies, not rebuilds.</li><li>Debugging through Nginx logs and pm2 status taught me a lot about layered troubleshooting in production setups.</li></ul><p><strong>Final Outcome</strong></p><p>EpicBook now runs reliably on Azure, fully managed through code.<br> Future updates won’t require any manual edits — just adjusting variables and re‑running Terraform/Ansible.</p><p>This project proved how automation enables <strong>repeatability, scalability, and transparency</strong> in modern cloud deployments.</p><p><strong>Key Takeaway</strong></p><p>If you want to move beyond manual provisioning, <strong>learn Terraform and Ansible together</strong>.<br> Terraform defines <em>what</em> resources exist — Ansible defines <em>how</em> they’re configured.<br> Together, they bridge the gap between cloud architecture and real‑world reliability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_lMm9L8MHn0CUaPteKAMSw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eab463642e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From “Loading…” to Live: How I Built and Debugged a Real 3-Tier AWS Architecture with Terraform]]></title>
            <link>https://medium.com/@ralphnetwork/from-loading-to-live-how-i-built-and-debugged-a-real-3-tier-aws-architecture-with-terraform-a79860905ec1?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a79860905ec1</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 10:04:19 GMT</pubDate>
            <atom:updated>2026-03-19T10:04:19.107Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>What looked like a simple frontend bug turned into one of the most valuable DevOps lessons I’ve ever had.</em></strong></p><p><strong>The Goal</strong></p><p>I set out to build something practical — not just another tutorial project — but a <strong>real-world 3-tier architecture</strong> that reflects how production systems are designed.</p><p>Using <strong>AWS and Terraform</strong>, I wanted to:</p><ul><li>Automate infrastructure provisioning (no manual clicks)</li><li>Separate concerns into <strong>web, application, and database layers</strong></li><li>Implement <strong>secure networking (public/private subnets)</strong></li><li>Use <strong>load balancers for scalability and fault tolerance</strong></li></ul><p>What I didn’t expect… was how much debugging this would require.</p><p><strong>The Architecture I Built</strong></p><p>At a high level, I designed a <strong>Multi-AZ 3-tier architecture</strong>:</p><ul><li><strong>VPC (10.0.0.0/16)</strong></li><li>Public subnets → Web layer (Nginx + Next.js)</li><li>Private subnets → Backend (Node.js)</li><li>Private DB subnets → Amazon RDS (MySQL)</li></ul><p>Traffic flow:</p><p>User → Public ALB → Web EC2 (Nginx)</p><p>→ Internal ALB → Backend EC2 (Node.js)</p><p>→ RDS (MySQL)</p><p>Everything was provisioned using Terraform with a clean structure:</p><ul><li>main.tf → provider &amp; core config</li><li>vpc.tf → networking</li><li>ec2.tf → compute</li><li>alb.tf → load balancers</li><li>rds.tf → database</li><li>variables.tf &amp; outputs.tf → reusability</li></ul><p><strong>The Deployment Phase</strong></p><p>Once Terraform finished provisioning:</p><ul><li>EC2 instances were up</li><li>Load balancers were healthy</li><li>Backend API was responding</li><li>Database was connected</li></ul><p>Everything looked perfect.</p><p>So, I opened the app in my browser…</p><p><strong>The Problem</strong></p><p>The app loaded.</p><p>But it just sat there:</p><p><strong>“Loading books…”</strong></p><p>No errors. No crashes. Just silence.</p><p><strong>Debugging Begins</strong></p><p>At this point, I had to think like a DevOps engineer:</p><p><em>Where could the failure be happening?</em></p><p>So, I started testing each layer independently.</p><p><strong>Step 1: Backend Check</strong></p><p>curl <a href="http://localhost:3001/api/books">http://localhost:3001/api/books</a></p><p>✅ Returned data → Backend is working</p><p><strong>Step 2: Internal Load Balancer</strong></p><p>curl <a href="http://internal-alb/api/books">http://internal-alb/api/books</a></p><p>❌ Connection issues initially → fixed security groups</p><p>✅ Eventually worked → Internal routing confirmed</p><p><strong>Step 3: Nginx Reverse Proxy</strong></p><p>curl <a href="http://localhost/api/books">http://localhost/api/books</a></p><p>✅ Worked → Nginx correctly forwarding requests</p><p><strong>Step 4: Public ALB</strong></p><p>Opened:</p><p><a href="http://public-alb/api/books">http://public-alb/api/books</a></p><p>✅ JSON response returned</p><p><strong>So why is the UI still broken?</strong></p><p><strong>The Real Problem (This Was Tricky)</strong></p><p>After digging deeper, I found <strong>three hidden issues</strong>:</p><p><strong>1️⃣ Wrong Frontend Environment Variable</strong></p><p>The frontend used:</p><p>process.env.NEXT_PUBLIC_API_URL</p><p>But it was either:</p><ul><li>empty</li><li>or pointing to localhost</li></ul><p>From the browser, localhost ≠ EC2 instance</p><p>So, API calls were failing silently.</p><p><strong>2️⃣ Next.js Build Caching</strong></p><p>Even after fixing the .env.local file:</p><p>NEXT_PUBLIC_API_URL=http://public-alb</p><p>The app <strong>still didn’t work</strong>.</p><p>Why?</p><p>Because <strong>Next.js embeds env variables at build time</strong>, not runtime.</p><p>So, the app was still using the old value.</p><p><strong>3️⃣ Load Balancer Masking Inconsistency</strong></p><p>This was the most interesting part.</p><p>I had <strong>two web servers behind the ALB</strong>.</p><ul><li>One had the correct build ✅</li><li>The other had an outdated build ❌</li></ul><p>So, depending on which instance handled the request:</p><p>Sometimes it worked<br> Sometimes it didn’t</p><p><strong>The Fix</strong></p><p>To resolve everything, I:</p><p><strong>✔️ Fixed environment variables</strong></p><p>NEXT_PUBLIC_API_URL=http://public-alb</p><p><strong>✔️ Rebuilt frontend properly</strong></p><p>rm -rf .next</p><p>npm run build</p><p><strong>✔️ Ensured consistency across all instances</strong></p><ul><li>Rebuilt on <strong>both web servers</strong></li><li>Restarted services</li><li>Verified identical behavior</li></ul><p><strong>✔️ Cleared browser cache</strong></p><p>Ctrl + Shift + R</p><p><strong>The Result</strong></p><p>Finally…</p><p>The app loaded.</p><p>And this time:</p><p>Books appeared on the screen.</p><p>No more “Loading books…”</p><p><strong>What I Learned</strong></p><p>This project changed my perspective on DevOps:</p><p><strong>🔹 1. Debugging is about systems, not just code</strong></p><p>The issue wasn’t in one place — it was across multiple layers.</p><p><strong>🔹 2. Load balancers can hide problems</strong></p><p>They distribute traffic… but also hide inconsistencies between instances.</p><p><strong>🔹 3. Frontend builds matter in production</strong></p><p>Environment variables in Next.js are <strong>not dynamic</strong> — they are baked into builds.</p><p><strong>🔹 4. Always validate each layer independently</strong></p><ul><li>Backend</li><li>Load balancer</li><li>Reverse proxy</li><li>Frontend</li></ul><p><strong>🔹 5. Infrastructure as Code is powerful</strong></p><p>With Terraform, I could:</p><ul><li>Recreate everything</li><li>Maintain consistency</li><li>Avoid manual errors</li></ul><p><strong>Final Thoughts</strong></p><p>This wasn’t just a deployment project.</p><p>It was a <strong>real-world DevOps debugging experience</strong>.</p><p>The kind where:</p><ul><li>Nothing is obviously broken</li><li>Everything looks “fine”</li><li>But something still doesn’t work</li></ul><p>And you have to trace the entire system to find it.</p><p><strong>🔗 Live Application</strong></p><p><a href="http://bookreview-public-alb-181864452.us-east-1.elb.amazonaws.com/">http://bookreview-public-alb-181864452.us-east-1.elb.amazonaws.com</a></p><p><strong>My Takeaway</strong></p><p>DevOps is not just about building systems…<br> It’s about understanding how every piece connects — and knowing where to look when things go wrong.</p><p>If you’re learning DevOps like I am, I highly recommend building something like this.</p><p>Because this is where theory meets reality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkUmfVC6gxWDX4esA-mJjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wKwwfzJolgg4wwG7QTEGVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BkA-I4CMPAlMMBLXIpkJhQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a79860905ec1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic DevOps: How Working with AI Agents Changed the Way I Think About Infrastructure Engineering]]></title>
            <link>https://medium.com/@ralphnetwork/agentic-devops-how-working-with-ai-agents-changed-the-way-i-think-about-infrastructure-engineering-8b65c4961fa6?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b65c4961fa6</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Sun, 15 Mar 2026 09:40:22 GMT</pubDate>
            <atom:updated>2026-03-15T09:40:22.502Z</atom:updated>
            <content:encoded><![CDATA[<p>For a long time, I believed DevOps engineering was mostly about mastering tools — Terraform, cloud platforms, CI/CD pipelines, and automation scripts. While those skills are still essential, my recent experience studying <strong>Agentic AI with Claude Code</strong> completely changed how I think about modern DevOps workflows.</p><p>What I discovered is that the future of DevOps may not just be about <strong>engineers writing automation</strong>, but about <strong>engineers collaborating with intelligent agents that can reason, plan, and execute parts of the workflow</strong>.</p><p>This journey showed me how AI can move beyond simple chat assistance and become an active participant in real infrastructure work.</p><p><strong>The Problem with Traditional DevOps Workflows</strong></p><p>Traditional DevOps workflows often appear slow, not because engineers lack expertise, but because much of the work is repetitive.</p><p>A typical infrastructure task may involve:</p><ul><li>Writing configuration files</li><li>Checking documentation repeatedly</li><li>Fixing syntax errors</li><li>Running commands multiple times before they work</li><li>Verifying infrastructure changes</li></ul><p>In reality, only about <strong>20% of the process involves actual engineering decisions</strong>, such as architecture design, security considerations, and scalability planning. The remaining <strong>80% is repetitive operational work</strong>.</p><p>This is where <strong>Agentic AI</strong> begins to change the picture.</p><p>Tools like <strong>Claude Code</strong> allow AI agents to understand a project, follow structured workflows, interact with tools, and assist with real DevOps tasks.</p><p><strong>Understanding Agentic DevOps with Claude Code</strong></p><p>During this project, I explored several key concepts that make Agentic DevOps possible.</p><p>Each one changed how I think about automation and AI in engineering.</p><p><strong>1. CLAUDE.md — Giving the AI Context</strong></p><p>The first important component I worked with was <strong>CLAUDE.md</strong>.</p><p>This file acts like <strong>documentation for the AI agent</strong>.</p><p>It explains:</p><ul><li>The purpose of the project</li><li>The repository structure</li><li>Development conventions</li><li>Deployment commands</li><li>Architecture decisions</li></ul><p>Once this file is present, Claude Code can analyze the repository and understand how the project works.</p><p>One interesting test I performed was asking Claude to introduce <strong>React</strong> into a project that explicitly disallowed JavaScript frameworks. Claude refused and pointed to the rule defined in <strong>CLAUDE.md</strong>.</p><p>That moment showed me how powerful <strong>clear AI context</strong> can be.</p><p><strong>2. Skills — Turning AI into a DevOps Specialist</strong></p><p>Without structure, AI responses can sometimes be inconsistent. That is where <strong>Skills</strong> become powerful.</p><p>Skills allow the AI to follow <strong>structured workflows for specific DevOps tasks</strong>.</p><p>Examples I used in this project included:</p><ul><li>/scaffold-terraform — Generate a Terraform project structure</li><li>/tf-plan — Preview infrastructure changes</li><li>/tf-apply — Deploy infrastructure</li><li>/deploy — Deploy the application</li></ul><p>Instead of writing long prompts every time, I could simply trigger a <strong>Skill command</strong>, and the AI would automatically execute the correct steps.</p><p>This creates consistency across the workflow and reduces manual effort.</p><p><strong>3. Subagents — Specialized AI Workers</strong></p><p>Another powerful concept I explored was <strong>Subagents</strong>.</p><p>Subagents are specialized AI agents designed for specific tasks. In this project, I worked with three of them:</p><p><strong>Security Auditor</strong></p><p>Scans infrastructure code for potential security issues.</p><p><strong>Terraform Writer</strong></p><p>Generates or modifies Terraform configurations.</p><p><strong>Cost Optimizer</strong></p><p>Reviews infrastructure to recommend cost-saving improvements.</p><p>When I asked Claude Code to <strong>audit my Terraform files</strong>, it automatically selected the <strong>security-auditor subagent</strong>.</p><p>The result was surprising.</p><p>The AI identified <strong>9 security findings</strong> including configuration weaknesses and potential risks in the infrastructure setup.</p><p>It also helped apply improvements such as:</p><ul><li>S3 encryption</li><li>Access logging</li><li>Versioning</li><li>CloudFront security headers</li><li>Remote Terraform state configuration</li></ul><p>This showed me how <strong>AI agents can assist in security reviews that normally take significant manual effort</strong>.</p><p><strong>4. Model Context Protocol (MCP) — Connecting AI to Live Tools</strong></p><p>One of the most exciting parts of the project was learning about <strong>Model Context Protocol (MCP)</strong>.</p><p>Normally, AI models rely on <strong>training data</strong>, which may not always be current or accurate for specific environments.</p><p>MCP changes this by allowing AI agents to connect to <strong>live tools and environments</strong>.</p><p>In my project, I configured MCP servers for:</p><ul><li>Terraform</li><li>AWS APIs</li></ul><p>Once connected, Claude Code could interact with real infrastructure tools instead of guessing based on training data.</p><p>This allowed me to run a powerful workflow known as:</p><p><strong>Audit → Fix → Verify</strong></p><p>1. Audit the Terraform code for security issues</p><p>2. Select a real issue (such as missing S3 encryption)</p><p>3. Ask the AI to fix it</p><p>4. Run the audit again to confirm the fix worked</p><p>This workflow felt very close to how <strong>real DevOps engineering processes operate</strong>.</p><p><strong>5. Hooks and Safety Controls</strong></p><p>Automation is powerful, but it also introduces risks.</p><p>To ensure safe AI operations, I implemented <strong>hook scripts</strong> in the project.</p><p>These hooks act as safety checkpoints in the workflow.</p><p>The system follows a simple model called:</p><p><strong>SAY → DO → LOG</strong></p><p><strong>SAY Hook</strong></p><p>Checks user prompts for destructive intent.</p><p>Example:<br> A prompt like <em>“delete all resources”</em> is automatically blocked.</p><p><strong>DO Hook</strong></p><p>Prevents dangerous commands from executing.</p><p>Example:<br> Commands like terraform destroy are intercepted before they run.</p><p><strong>LOG Hook</strong></p><p>Records infrastructure actions for auditing.</p><p>For example, every successful terraform apply command is logged with a timestamp.</p><p>This structure ensures that <strong>AI automation remains controlled, secure, and observable</strong>.</p><p><strong>Real Results from the Project</strong></p><p>By the end of the project, I had successfully built and tested several real outcomes:</p><p>✅ A <strong>live AWS website deployed through Terraform and CloudFront</strong><br> ✅ Terraform infrastructure <strong>generated using Claude Skills</strong><br> ✅ A working <strong>audit → fix → verify security workflow</strong><br> ✅ <strong>Safety hooks protecting infrastructure actions</strong></p><p>Seeing these workflows operate end-to-end was incredibly exciting.</p><p><strong>How This Experience Changed My Thinking</strong></p><p>Before this experience, I saw AI mainly as a <strong>tool for generating code snippets or answering questions</strong>.</p><p>Now I see something different.</p><p>I see <strong>AI agents becoming collaborators in engineering workflows</strong>.</p><p>Instead of replacing DevOps engineers, Agentic AI can:</p><ul><li>Handle repetitive tasks</li><li>Validate configurations</li><li>detect security risks</li><li>assist with infrastructure deployment</li></ul><p>This allows engineers to focus more on:</p><ul><li>Architecture design</li><li>Reliability engineering</li><li>Security strategy</li><li>System scalability</li></ul><p>In other words, <strong>AI amplifies engineering capability rather than replacing it</strong>.</p><p><strong>Final Thoughts</strong></p><p>Agentic AI represents a shift in how we interact with automation.</p><p>Rather than writing every command manually, engineers can design <strong>intelligent workflows where AI agents assist with execution, validation, and analysis</strong>.</p><p>For me, this journey was more than just learning a new tool. It was a glimpse into what the <strong>future of DevOps engineering might look like</strong>.</p><p>A future where engineers and AI agents work together to build systems faster, safer, and more reliably.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGk5ocwIBaxuo2QevM2mNg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b65c4961fa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building and Deploying a Highly Available 3-Tier Book Review Application on Microsoft Azure]]></title>
            <link>https://medium.com/@ralphnetwork/building-and-deploying-a-highly-available-3-tier-book-review-application-on-microsoft-azure-a45fde165adc?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a45fde165adc</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Sun, 08 Mar 2026 19:28:45 GMT</pubDate>
            <atom:updated>2026-03-08T19:28:45.899Z</atom:updated>
            <content:encoded><![CDATA[<p>Modern cloud applications are rarely deployed as a single server. Instead, they are structured in layers that improve <strong>scalability, security, and maintainability</strong>. To deepen my understanding of real-world cloud infrastructure and DevOps practices, I recently deployed a <strong>3-tier Book Review web application on Microsoft Azure</strong>.</p><p>This project allowed me to work across several important areas of DevOps engineering, including <strong>cloud networking, application deployment, reverse proxy configuration, database integration, and troubleshooting distributed systems</strong>.</p><p>In this article, I will walk through the architecture, deployment process, major challenges encountered, and how those challenges were resolved.</p><p><strong>Project Architecture</strong></p><p>The application follows a <strong>3-tier architecture</strong>, a common design pattern in production systems.</p><p>The architecture consists of:</p><p><strong>Web Tier (Presentation Layer)</strong></p><ul><li>2 Azure Virtual Machines</li><li>Hosts the <strong>Next.js frontend</strong></li><li>Uses <strong>Nginx</strong> to serve static content and proxy API requests</li><li>Deployed in <strong>public subnets</strong></li></ul><p><strong>App Tier (Application Layer)</strong></p><ul><li>2 Azure Virtual Machines</li><li>Runs the <strong>Node.js backend API</strong></li><li>Managed with <strong>PM2 process manager</strong></li><li>Deployed in <strong>private subnets</strong></li></ul><p><strong>Database Tier (Data Layer)</strong></p><ul><li><strong>Azure Database for MySQL</strong></li><li>Configured with <strong>Multi-Availability Zone support</strong></li><li>Includes <strong>read replica capability</strong></li><li>Secured within <strong>private networking</strong></li></ul><p>Supporting components included:</p><ul><li><strong>Azure Virtual Network (VNet)</strong> for isolated networking</li><li><strong>Network Security Groups (NSGs)</strong> for tier-based access control</li><li><strong>Public Load Balancer</strong> for Web Tier traffic</li><li><strong>Internal Load Balancer</strong> for App Tier communication</li><li><strong>NAT Gateway</strong> to allow private servers secure outbound internet access</li></ul><p>This architecture mirrors many real-world production deployments.</p><p><strong>Step 1: Designing the Virtual Network</strong></p><p>The first step was building the network foundation.</p><p>I created a <strong>custom Azure Virtual Network</strong> with the address space:</p><p>10.0.0.0/16</p><p>The network was segmented into <strong>six subnets across two availability zones</strong>:</p><p><strong>Tier</strong></p><p><strong>Subnets</strong></p><p><strong>Purpose</strong></p><p>Web Tier</p><p>2 Public Subnets</p><p>Internet-facing frontend servers</p><p>App Tier</p><p>2 Private Subnets</p><p>Backend API servers</p><p>Database Tier</p><p>2 Private Subnets</p><p>Database access isolation</p><p>This segmentation ensures proper <strong>security isolation between application layers</strong>.</p><p><strong>Step 2: Implementing Network Security</strong></p><p>To enforce strict communication rules between tiers, I created <strong>Network Security Groups (NSGs)</strong>.</p><p><strong>Web Tier NSG</strong></p><p>Allowed inbound traffic:</p><p>HTTP (Port 80)</p><p><strong>App Tier NSG</strong></p><p>Allowed traffic only from the Web Tier:</p><p>Port 3001</p><p>Source: Web Tier NSG</p><p><strong>Database Tier NSG</strong></p><p>Allowed traffic only from the App Tier:</p><p>Port 3306</p><p>Source: App Tier NSG</p><p>This setup ensures that:</p><ul><li>The <strong>database cannot be accessed from the internet</strong></li><li>Only the <strong>backend API can communicate with the database</strong></li><li>The <strong>frontend communicates only with the backend</strong></li></ul><p><strong>Step 3: Deploying Virtual Machines</strong></p><p>I provisioned four virtual machines.</p><p><strong>Web Tier</strong></p><p>Two VMs running:</p><ul><li>Ubuntu</li><li>Nginx</li><li>Next.js frontend</li></ul><p>The frontend runs behind Nginx on <strong>port 80</strong>.</p><p><strong>App Tier</strong></p><p>Two VMs running:</p><ul><li>Node.js backend</li><li>Express API</li><li>PM2 process manager</li></ul><p>The API runs on:</p><p>Port 3001</p><p>These VMs were deployed inside <strong>private subnets</strong>.</p><p><strong>Step 4: NAT Gateway Configuration</strong></p><p>Private servers cannot access the internet by default.</p><p>However, backend servers needed internet access to:</p><ul><li>install Node dependencies</li><li>fetch system packages</li><li>install npm libraries</li></ul><p>To solve this, I configured a <strong>NAT Gateway</strong> attached to the App Tier subnet.</p><p>This allowed:</p><ul><li><strong>outbound internet connectivity</strong></li><li><strong>no inbound internet exposure</strong></li></ul><p>A common security best practice.</p><p><strong>Step 5: Setting Up Azure Database for MySQL</strong></p><p>Instead of installing MySQL manually on a VM, I used <strong>Azure Database for MySQL</strong>, a managed service.</p><p>Key configurations included:</p><ul><li><strong>Private network access</strong></li><li><strong>Multi-AZ deployment</strong></li><li><strong>Read replica support</strong></li><li><strong>Secure connection with SSL</strong></li></ul><p>The database contained three tables:</p><p>users</p><p>books</p><p>reviews</p><p><strong>Step 6: Deploying the Backend API</strong></p><p>The Node.js backend was deployed on the App Tier servers.</p><p>To ensure the backend remains running even if the process crashes, I used <strong>PM2</strong>.</p><p>Example commands:</p><p>pm2 start src/server.js — name bookreview-api</p><p>pm2 save</p><p>pm2 startup</p><p>PM2 allows:</p><ul><li>automatic restarts</li><li>log management</li><li>process monitoring</li></ul><p><strong>Step 7: Configuring Nginx Reverse Proxy</strong></p><p>The Web Tier servers use <strong>Nginx</strong> to route traffic.</p><p>The configuration proxies API requests from the frontend to the backend servers.</p><p>Example routing:</p><p>/api/books → App Tier API</p><p>Example configuration snippet:</p><p>location /api/ {</p><p>proxy_pass <a href="http://10.0.3.4:3001;">http://10.0.3.4:3001;</a></p><p>}</p><p>This allows the frontend to call the backend through the same domain.</p><p><strong>Major Challenges I Faced</strong></p><p>While the architecture was sound, several issues emerged during deployment.</p><p>These challenges provided some of the most valuable learning moments.</p><p><strong>Challenge 1: Backend Crashing with Database Errors</strong></p><p>Initially, the backend service repeatedly crashed.</p><p>PM2 logs revealed the error:</p><p>ECONNREFUSED 127.0.0.1:3306</p><p>The backend was attempting to connect to a <strong>local MySQL server</strong> instead of the Azure MySQL service.</p><p><strong>Root Cause</strong></p><p>The .env configuration still used:</p><p>DB_HOST=127.0.0.1</p><p><strong>Solution</strong></p><p>I updated the environment configuration to use the Azure database endpoint:</p><p>DB_HOST=&lt;azure-mysql-server&gt;.mysql.database.azure.com</p><p>After restarting the backend service, the application connected successfully.</p><p><strong>Challenge 2: Environment Variables Not Loading</strong></p><p>Even after correcting the .env file, the backend still attempted to connect to localhost.</p><p><strong>Root Cause</strong></p><p>PM2 was starting the application from the <strong>wrong directory</strong>, preventing the .env file from loading.</p><p><strong>Solution</strong></p><p>I restarted the application from the correct directory:</p><p>cd ~/book-review-app/backend</p><p>pm2 start src/server.js — name bookreview-api</p><p>Once this was corrected, the backend successfully connected to the database.</p><p><strong>Challenge 3: Frontend Displayed “No Books Available”</strong></p><p>After fixing the backend, the website still displayed:</p><p>No books available</p><p>Even though the API returned valid data.</p><p>Testing confirmed:</p><p>curl <a href="http://localhost/api/books">http://localhost/api/books</a></p><p>returned the correct JSON response.</p><p><strong>Root Cause</strong></p><p>The frontend had been compiled with an incorrect API endpoint pointing to the <strong>MySQL server hostname</strong> rather than the backend API.</p><p>Browsers cannot communicate directly with MySQL servers.</p><p><strong>Solution</strong></p><p>I corrected the frontend configuration by updating:</p><p>NEXT_PUBLIC_API_URL</p><p>to route API requests through Nginx:</p><p>/api</p><p>After rebuilding the frontend and clearing the old build cache, the application successfully displayed the book data.</p><p><strong>Verifying the Deployment</strong></p><p>I verified the architecture using several tests.</p><p><strong>Backend API Test</strong></p><p>curl <a href="http://localhost:3001/api/books">http://localhost:3001/api/books</a></p><p><strong>Reverse Proxy Test</strong></p><p>curl <a href="http://localhost/api/books">http://localhost/api/books</a></p><p><strong>Database Query</strong></p><p>SELECT * FROM books;</p><p>All tests returned expected results.</p><p><strong>Final Outcome</strong></p><p>The application now runs successfully with:</p><ul><li><strong>Fully operational frontend</strong></li><li><strong>Backend API responding through Nginx</strong></li><li><strong>Secure database connectivity</strong></li><li><strong>Tier-based network isolation</strong></li><li><strong>High availability architecture</strong></li></ul><p>The homepage correctly displays the book records retrieved from the database.</p><p><strong>Lessons Learned</strong></p><p>This project reinforced several key DevOps principles:</p><p><strong>Infrastructure design matters</strong></p><p>A properly segmented network prevents many security risks.</p><p><strong>Observability is essential</strong></p><p>Tools like <strong>PM2 logs</strong>, curl, and database queries helped isolate issues quickly.</p><p><strong>Environment configuration must be consistent</strong></p><p>Incorrect environment variables can break entire systems.</p><p><strong>Troubleshooting is a core DevOps skill</strong></p><p>Many deployment issues occur at the <strong>integration points between services</strong>.</p><p><strong>Final Thoughts</strong></p><p>Building this project provided valuable hands-on experience with <strong>cloud architecture, infrastructure management, and real-world debugging</strong>.</p><p>More importantly, it highlighted how DevOps engineers must understand <strong>both infrastructure and application behavior</strong> to successfully deploy and maintain distributed systems.</p><p>Each challenge encountered strengthened my confidence in designing and troubleshooting production-style environments.</p><p>And this is only the beginning.</p><p>More builds, deeper automation, and stronger architectures are ahead.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a45fde165adc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a Production-Style 3-Tier AWS Architecture — Then Everything Broke]]></title>
            <link>https://medium.com/@ralphnetwork/i-built-a-production-style-3-tier-aws-architecture-then-everything-broke-b8610ee6e980?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8610ee6e980</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 07:39:04 GMT</pubDate>
            <atom:updated>2026-02-20T07:39:04.219Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the past few days, I transitioned from deploying static applications to building and troubleshooting a <strong>fully functional 3-tier architecture on AWS</strong>. This project was not just about deployment — it became a deep exercise in <strong>networking, security, observability, debugging, and system reliability</strong>.</p><p><strong>Project Overview</strong></p><p>The goal was to deploy a <strong>Book Review application</strong> using a secure, production-style AWS architecture with proper isolation between tiers.</p><p><strong>Architecture Components</strong></p><p><strong>Public Layer</strong></p><ul><li>Internet-facing Application Load Balancer (ALB)</li></ul><p><strong>Web Tier</strong></p><ul><li>EC2 instance running:</li><li>Nginx (reverse proxy)</li><li>Next.js frontend (port 3000)</li></ul><p><strong>Application Tier</strong></p><ul><li>EC2 instance running:</li><li>Node.js backend API (port 3001)</li></ul><p><strong>Data Tier</strong></p><ul><li>Amazon RDS MySQL deployed in private subnets</li></ul><p><strong>Security</strong></p><ul><li>Strict Security Group (SG-to-SG) communication</li><li>No direct public exposure for backend or database</li></ul><p><strong>Traffic Flow</strong></p><p>Browser → Public ALB → Web Tier → Internal ALB → App Tier → RDS</p><p><strong>Phase 1 — Backend Deployment (App Tier)</strong></p><p>I began by provisioning the <strong>application EC2 instance</strong> in a private subnet and deploying the Node.js backend.</p><p><strong>Key Steps</strong></p><ul><li>Installed Node.js and Git</li><li>Cloned the repository</li><li>Configured environment variables (.env)</li><li>Connected backend to RDS</li><li>Started backend on port 3001</li></ul><p><strong>Verification</strong></p><p>ss -tulpn | grep 3001<br> curl <a href="http://localhost:3001/">http://localhost:3001</a></p><p><strong>Phase 2 — Internal Load Balancer Setup</strong></p><p>To keep the backend private while still enabling service-to-service communication, I deployed an <strong>internal ALB</strong>.</p><p><strong>Key Design</strong></p><ul><li>Target group port: <strong>3001</strong></li><li>Health check path: /</li><li>Security group allowing traffic only from web tier</li></ul><p><strong>Validation</strong></p><p>curl <a href="http://internal-alb-dns/">http://internal-alb-dns</a></p><p><strong>Phase 3 — Frontend Deployment (Web Tier)</strong></p><p>Next, I deployed the Next.js frontend behind Nginx on the web EC2 instance.</p><p><strong>Key Steps</strong></p><ul><li>Installed Node.js and Nginx</li><li>Cloned repository</li><li>Built Next.js application</li><li>Started Next.js on port 3000</li></ul><p><strong>Phase 4 — Reverse Proxy Configuration</strong></p><p>Nginx was configured as a reverse proxy:</p><ul><li>/ → Next.js frontend</li><li>/api → internal ALB → backend</li></ul><p>This design allowed the frontend to call the backend securely without exposing private services.</p><p><strong>Phase 5 — Public ALB Configuration</strong></p><p>A <strong>public ALB</strong> was added to distribute internet traffic to the web tier.</p><p>This completed the full 3-tier architecture.</p><p><strong>Phase 6 — End-to-End Testing</strong></p><p>I validated connectivity using:</p><ul><li>curl tests</li><li>browser testing</li><li>database queries</li><li>health checks</li><li>internal routing verification</li></ul><p><strong>Challenges Faced (And How They Were Solved)</strong></p><p>This project became valuable because of the real incidents encountered.</p><p><strong>❌ SSH Timeout Errors</strong></p><p><strong>Cause</strong></p><ul><li>Security group restricted SSH to an outdated public IP</li><li>Attempted SSH to private IP from internet</li></ul><p><strong>Fix</strong></p><ul><li>Updated SG inbound rule with current IP</li><li>Used web instance as a bastion host</li></ul><p><strong>❌ Internal ALB Target Unhealthy</strong></p><p><strong>Cause</strong></p><ul><li>Target group configured for port 80 while backend ran on 3001</li></ul><p><strong>Fix</strong></p><ul><li>Updated target group port to 3001</li></ul><p><strong>❌ Next.js “next: not found”</strong></p><p><strong>Cause</strong></p><ul><li>Dependencies not installed</li></ul><p><strong>Fix</strong></p><p>npm install</p><p><strong>❌ Frontend Client Runtime Error (“Invalid URL”)</strong></p><p><strong>Cause</strong></p><ul><li>Incorrect environment variable used in frontend build</li></ul><p><strong>Fix</strong></p><ul><li>Switched API calls to relative path:</li></ul><p>axios.get(“/api/books”)</p><ul><li>Rebuilt frontend</li></ul><p><strong>❌ Nginx 502 Bad Gateway</strong></p><p><strong>Cause</strong></p><ul><li>Next.js process stopped</li><li>Nginx upstream connection refused</li></ul><p><strong>Fix</strong></p><ul><li>Restarted frontend</li><li>Verified using logs:</li></ul><p>sudo tail /var/log/nginx/error.log</p><p><strong>❌ Private Instance SSH Connectivity Failure</strong></p><p><strong>Cause</strong></p><ul><li>App-tier outbound SG blocked return traffic</li></ul><p><strong>Fix</strong></p><ul><li>Allowed outbound traffic</li></ul><p><strong>❌ Sequelize Database Error (Too Many Keys)</strong></p><p><strong>Cause</strong></p><ul><li>Duplicate indexes created on Users table</li></ul><p><strong>Fix</strong></p><ul><li>Removed duplicate indexes / recreated table</li></ul><p><strong>Major Lessons Learned</strong></p><p><strong>1.</strong> <strong>Deployment ≠ Availability</strong></p><p>A service being deployed does not guarantee it is reachable or healthy.</p><p><strong>2.</strong> <strong>Observability Is Everything</strong></p><p>Logs, curl, socket inspection, and health checks were the primary debugging tools.</p><p><strong>3.</strong> <strong>Security Groups Are the #1 Source of Failures</strong></p><p>Misconfigured SG rules caused most connectivity issues.</p><p><strong>4.</strong> <strong>Reverse Proxy Failures Often Mean Upstream Issues</strong></p><p>A 502 error is usually a service availability issue.</p><p><strong>5.</strong> <strong>Environment Variables Can Break Production Systems</strong></p><p>Especially in frontend frameworks where variables are compiled at build time.</p><p><strong>6.</strong> <strong>ORM Auto-Schema Alteration Can Corrupt Databases</strong></p><p>Repeated index creation caused MySQL index limits to be exceeded.</p><p><strong>Key DevOps Skills Strengthened</strong></p><ul><li>AWS networking</li><li>Load balancing architecture</li><li>Reverse proxy configuration</li><li>Security group design</li><li>Incident debugging</li><li>Observability mindset</li><li>Database connectivity troubleshooting</li><li>Process reliability management</li></ul><p><strong>What’s Next</strong></p><p>This project sets the foundation for:</p><ul><li>CI/CD pipeline automation</li><li>Infrastructure as Code (Terraform)</li><li>Monitoring and alerting</li><li>Containerization (Docker)</li><li>Kubernetes orchestration</li><li>HTTPS + CloudFront integration</li></ul><p><strong>Final Reflection</strong></p><p>This project taught me that the real DevOps learning happens when systems fail.</p><p>Debugging networking issues, tracing upstream failures, and restoring service availability provided a deeper understanding than any tutorial deployment could offer.</p><p>Building resilient systems requires not only deployment skills but also a strong troubleshooting mindset — and that is what I gained the most from this experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wg_AiXDX8mjVvmGoGX8w0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pllr-cRo_K4z_3khYrj6gA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5MhXktu-NoItr8DM6wIh9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aOm1Y_0tf6TjlQjLm8Lkxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGY_08fcWE5afxzhZOEaMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g-ghYH0isE1ruQBT1pdvow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2JKBSRJcHbOc744M3MhTQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8610ee6e980" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Jira the Right Way: From Empty Backlog to Live Deployment]]></title>
            <link>https://medium.com/@ralphnetwork/learning-jira-the-right-way-from-empty-backlog-to-live-deployment-35afd3dcda92?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/35afd3dcda92</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 06:53:55 GMT</pubDate>
            <atom:updated>2026-02-06T06:53:55.431Z</atom:updated>
            <content:encoded><![CDATA[<p>When most people say they’re “learning Jira,” what they often mean is clicking around the interface — creating a few tickets, dragging items on a board, and calling it a day. I wanted something deeper.</p><p>As part of an ongoing <strong>DevOps Micro Internship (DMI)</strong>, I decided to learn Jira the way real engineering teams use it: by <strong>shipping real work</strong>, tracking it properly, and closing the loop with deployment proof, reporting, and retrospection.</p><p>This blog documents my end-to-end Jira journey — from creating a project from scratch to delivering live changes on EC2 and closing a sprint like a real team.</p><p><strong>Why Jira Matters in Real Engineering Teams</strong></p><p>In real companies, Jira is not optional. It’s the <strong>entry point to engineering work</strong>.<br> No Jira access means:</p><ul><li>You don’t receive tasks</li><li>You can’t track progress</li><li>You don’t participate in delivery</li></ul><p>Understanding this mindset shaped how I approached everything that followed.</p><p><strong>Project Setup: Creating the Space (Project)</strong></p><p>I started by creating a new <strong>Jira Space (Project)</strong> from the dashboard. This involved:</p><ul><li>Selecting a Scrum template</li><li>Choosing a Team-Managed project</li><li>Naming and securing the project (private access)</li></ul><p>This step established the foundation for everything else: backlog, sprints, boards, and reports.</p><p><strong>Key learning:</strong> Jira now uses the term <em>Spaces</em> where <em>Projects</em> were previously used — a small but important detail that required a bit of research.</p><p><strong>Defining Direction: Creating the Epic</strong></p><p>With the project created, I defined the <strong>high-level goal</strong> using an Epic:</p><p><strong>Epic:</strong><br> <em>Improve Gotto Job UI discoverability &amp; trust</em></p><p><strong>Summary:</strong><br> Light, UI-only polish across listings, search, detail views, and footer to improve clarity and credibility.</p><p>This Epic became the container for all related work and helped maintain focus on user-visible improvements.</p><p><strong>Backlog Creation &amp; Refinement</strong></p><p>Next, I created <strong>six Stories under the Epic</strong>, each representing a small, shippable UI improvement.</p><p>I:</p><ul><li>Assigned <strong>story points (1, 2, 3)</strong> based on effort and uncertainty</li><li>Ranked stories by value (highest impact at the top)</li><li>Assigned stories to myself (solo execution)</li></ul><p>For each story, I documented why it was estimated the way it was and noted any internal “debate” during estimation — even in solo mode.</p><p><strong>Key learning:</strong> Estimation isn’t about precision — it’s about shared understanding and intentional planning.</p><p><strong>Sprint Planning: Turning Ideas into Commitments</strong></p><p>With a refined backlog, I created <strong>Sprint 1</strong> and defined a clear sprint goal:</p><p><em>“Ship 2–3 visible UI improvements to Gotto Job and show them live.”</em></p><p>I then:</p><ul><li>Moved three stories into the sprint (total: 4 points)</li><li>Broke each story into sub-tasks:</li><li>Build</li><li>Verify</li><li>Deploy</li><li>Screenshot</li></ul><p>This made execution concrete and traceable.</p><p><strong>Shipping Real Work: Code → Commit → Deploy → Verify</strong></p><p>Rather than stopping at “Done” in Jira, I focused on <strong>real delivery</strong>.</p><p>For one selected story, I:</p><ul><li>Implemented a UI-only change (hero tagline / CTA polish)</li><li>Used Git properly:</li><li>git status</li><li>git add .</li><li>git commit with a clear message</li><li>Deployed the change to an <strong>EC2 instance</strong></li><li>Verified it live on a production-like URL</li></ul><p>I updated Jira by moving the story and sub-tasks across the board and attached proof (screenshots where applicable).</p><p><strong>Key learning:</strong> A story isn’t done until it’s live and verified.</p><p><strong>Improving Quality: UI Polish &amp; Accessibility</strong></p><p>Beyond functionality, I focused on <strong>polish and accessibility</strong>:</p><ul><li>Improved footer font size, spacing, and contrast</li><li>Tested responsiveness on desktop and mobile using DevTools</li><li>Ensured text remained readable across viewports</li></ul><p>This reinforced that DevOps delivery includes <strong>user experience</strong>, not just infrastructure.</p><p><strong>Making Delivery Observable: Burndown &amp; Reports</strong></p><p>When I tried to view the Burndown Chart, it initially showed <em>“awaiting sprint.”</em><br> The issue? Reports were not enabled.</p><p>I resolved this by navigating to:<br> <strong>Settings → Space → Project Space Settings → Features → Enable Reports</strong></p><p>Once the sprint started, the Burndown Chart became active and began reflecting real progress.</p><p><strong>Key learning:</strong> Observability applies to process too — not just systems.</p><p><strong>Closing the Loop: Demo, Retro, and Proof</strong></p><p>To close the sprint like a real team, I:</p><ul><li>Recorded a short demo video showing the live deployment</li><li>Highlighted the shipped increment and basic health/provenance signals</li><li>Wrote a sprint retrospective covering:</li><li>What went well</li><li>What to improve</li><li>Scrum pillar observed (Transparency)</li><li>Scrum value demonstrated (Commitment)</li></ul><p>This ensured the sprint ended with reflection, not just completion.</p><p><strong>What I Learned Overall</strong></p><p>This project taught me that Jira is not just a ticketing tool. It is:</p><ul><li>A <strong>planning system</strong></li><li>A <strong>communication layer</strong></li><li>A <strong>delivery ledger</strong></li><li>A <strong>source of truth</strong></li></ul><p>More importantly, I learned that DevOps is not about isolated actions — it’s about <strong>connecting planning, execution, deployment, verification, and reflection</strong> into one continuous loop.</p><p><strong>Final Reflection</strong></p><p>Learning Jira by shipping real work changed how I view Agile and DevOps practices.<br> Instead of asking <em>“How does Jira work?”</em>, I now ask:</p><p>“How does this help us ship, prove, and improve delivery?”</p><p>The internship is still ongoing, and this is just one sprint — but it’s a foundation I’ll build on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35afd3dcda92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Git Basics to Real-World Collaboration: Lessons from Hands-On Practice]]></title>
            <link>https://medium.com/@ralphnetwork/from-git-basics-to-real-world-collaboration-lessons-from-hands-on-practice-8400f3689641?source=rss-9519835cde1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8400f3689641</guid>
            <dc:creator><![CDATA[Ralphnetwork]]></dc:creator>
            <pubDate>Thu, 29 Jan 2026 06:56:11 GMT</pubDate>
            <atom:updated>2026-01-29T06:56:11.122Z</atom:updated>
            <content:encoded><![CDATA[<p>Learning Git has been more than just memorizing commands — it has been about understanding <strong>how real engineering teams collaborate, deploy, and maintain clean workflows</strong>. Over time, my hands-on practice has helped me connect Git theory to real DevOps use cases.</p><p>I began by setting a strong foundation with <strong>Git setup and identity management</strong>, learning the difference between global and local configurations and why accurate identity matters in professional projects. This step taught me that even small details like commit authorship play a role in accountability and collaboration.</p><p>From there, I moved into the core Git workflow: <strong>tracking, staging, and committing changes</strong>. To make this learning practical, I deployed my <em>CodeTrack</em> project as a static website on an EC2 instance using Nginx. This experience connected version control directly to infrastructure and application delivery, showing me how Git fits into the bigger DevOps picture.</p><p>Next, I practiced <strong>branching workflows</strong> by creating feature branches to add and verify a Contact Page. Working this way helped me understand how teams safely build features in isolation, test them, and merge them into the main codebase without breaking production. It reinforced why branching is essential for clean, scalable development.</p><p>I also focused on <strong>setting up GitHub properly</strong>, treating it as my DevOps identity rather than just a place to store code. From configuring authentication (HTTPS and SSH) to managing remotes and repository hygiene, I learned how a clean GitHub profile supports collaboration and even serves as a portfolio for recruiters and teams.</p><p>Finally, I stepped into <strong>real GitHub collaboration workflows</strong> — forking repositories, syncing with upstream, rebasing feature branches, and opening structured pull requests. This was where everything came together. One key lesson stood out: GitHub workflows require a deep understanding of <em>direction</em> — knowing when you’re working with origin versus upstream is critical to avoiding unnecessary mistakes.</p><p>Overall, this journey has taught me that Git and GitHub are not just tools. They are disciplined workflows that demand clarity, structure, and intentional practice. Mastering them is a foundational skill for any DevOps engineer working in real-world, collaborative environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8400f3689641" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>