<?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 Sivabalasankar A on Medium]]></title>
        <description><![CDATA[Stories by Sivabalasankar A on Medium]]></description>
        <link>https://medium.com/@sivabalasankar2002?source=rss-a715399f8c50------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CrBKsEU2JlfjDuHMZVwEPQ.jpeg</url>
            <title>Stories by Sivabalasankar A on Medium</title>
            <link>https://medium.com/@sivabalasankar2002?source=rss-a715399f8c50------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:57:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sivabalasankar2002/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[From Azure to Cloud Run: Extending VPN Across Multiple GCP Projects Using Shared VPC]]></title>
            <link>https://blog.thecloudside.com/from-azure-to-cloud-run-extending-vpn-across-multiple-gcp-projects-using-shared-vpc-8257280b1c00?source=rss-a715399f8c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/8257280b1c00</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[serverless-vpc-access]]></category>
            <category><![CDATA[site-to-site-vpn]]></category>
            <category><![CDATA[shared-vpc]]></category>
            <dc:creator><![CDATA[Sivabalasankar A]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 09:38:12 GMT</pubDate>
            <atom:updated>2026-02-23T12:00:16.994Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Complete Hybrid Architecture Guide for Enterprise-Grade Connectivity</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOk83A1qGIkvzu2C-RxyQQ.png" /></figure><h3>The Enterprise Reality</h3><p>In real-world enterprise environments, a single cloud project is rarely enough.</p><p>You typically have:</p><ul><li>Separate <strong>Prod / Non-Prod / Dev</strong> projects</li><li>Multiple application teams</li><li>Centralized networking and security controls</li><li>Azure or on-prem workloads requiring private access into GCP</li></ul><p>Now here’s the real challenge:</p><blockquote><em>How do you extend a single Azure–GCP VPN connection to multiple GCP projects — securely, cleanly, and without building separate tunnels per project?</em></blockquote><p>The answer is <strong>Shared VPC architecture in Google Cloud</strong>.</p><p>And in this guide, I’ll walk you through the exact architecture — including Terraform structure and real implementation steps.</p><h3>Core Concept: Shared VPC</h3><p>In Google Cloud, <strong>Shared VPC</strong> allows:</p><ul><li>A <strong>Host Project</strong> → owns the VPC network</li><li>Multiple <strong>Service Projects</strong> → attach to that VPC</li><li>Centralized routing, firewall, and hybrid connectivity</li></ul><p>This gives you:</p><ul><li>Centralized network governance</li><li>Separation of networking and applications</li><li>Scalable multi-project design</li></ul><p>In short: Networking becomes a platform service.</p><h3>Architecture Overview</h3><p>Here’s what the architecture looks like:</p><ul><li><strong>Host Project</strong>: Owns Shared VPC and subnets</li><li><strong>Service Projects</strong>: Consume shared network</li><li><strong>Serverless VPC Connector</strong>: Provides private access for serverless workloads</li><li><strong>Firewall Rules</strong>: Control traffic, including to Azure resources</li><li><strong>Terraform Modules</strong>: Automate all components</li></ul><p>The key principle?</p><blockquote><em>Build the VPN once in the Host Project.<br> Let every attached Service Project inherit connectivity automatically.</em></blockquote><p>No duplicate tunnels. No networking sprawl.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3I4em72SZ4org0pPaS0KaA.png" /></figure><p>Let’s visualize it simply:</p><pre>Azure VNet<br>     │<br>     │  (Site-to-Site VPN)<br>     ▼<br>GCP Host Project (Shared VPC Host)<br>     │<br>     ├── VPC Network<br>     │     ├── Subnets<br>     │     └── VPN Gateway + Cloud Router<br>     │<br>     └── Service Projects<br>            ├── Cloud Run<br>            ├── GKE<br>            └── Compute Engine</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5pkVyZs2xSgXaVQpSpOseg.png" /></figure><h3>How Traffic Flows (Step-by-Step)</h3><ol><li>Azure VM sends traffic to GCP IP</li><li>Traffic reaches Azure VPN Gateway</li><li>Enters Site-to-Site VPN tunnel</li><li>Lands in GCP HA VPN</li><li>Cloud Router advertises routes</li><li>Packet reaches subnet in Shared VPC</li><li>Service Project VM receives traffic</li></ol><blockquote>And the most important part:</blockquote><blockquote>No extra VPN per project required.</blockquote><h3>Terraform Module Structure</h3><p>A modular Terraform structure enables clear boundaries. A recommended directory layout:</p><pre>terraform/<br>├── modules/<br>│   ├── shared_vpc/<br>│   ├── service_project_attachment/<br>│   ├── serverless_vpc_connector/<br>│   └── firewall_rules/<br>├── main.tf<br>├── variables.tf<br>└── outputs.tf</pre><p><strong>Scenario 1: You Already Have an Existing VPN (What We Did)</strong></p><p>If you already have:</p><ul><li>Azure VNet</li><li>GCP Host Project VPC</li><li>Active Site-to-Site VPN</li></ul><p>Then extending it is simple.</p><h3>Step 1 — Create a New Subnet in Host Project</h3><p>We created a new subnet in the Host Project VPC for serverless workloads.</p><pre>resource &quot;google_compute_subnetwork&quot; &quot;serverless_subnet&quot; {<br>  name          = var.subnet_name<br>  ip_cidr_range = var.subnet_cidr<br>  region        = var.region<br>  network       = var.host_vpc_name<br>  project       = var.host_project_id<br>}</pre><p>This subnet is where the VPC Connector lives.</p><h3>Step 2 — Enable Shared VPC</h3><p>Convert Host Project into Shared VPC:</p><pre>resource &quot;google_compute_shared_vpc_host_project&quot; &quot;host&quot; {<br>  project = var.host_project_id<br>}</pre><p>Attach Service Project:</p><pre>resource &quot;google_compute_shared_vpc_service_project&quot; &quot;service&quot; {<br>  host_project    = var.host_project_id<br>  service_project = var.service_project_id<br>}</pre><p>Now the Service Project uses Host networking.</p><h3>Step 3 — Create Serverless VPC Connector</h3><pre>resource &quot;google_vpc_access_connector&quot; &quot;connector&quot; {<br>  name   = var.vpcconnectorname<br>  region = var.region<br><br>  subnet {<br>    name = var.subnet_name<br>  }<br><br>  machine_type  = &quot;e2-standard-4&quot;<br>  min_instances = 2<br>  max_instances = 3<br>}</pre><p>Attach this connector to Cloud Run.</p><p>Set egress to:</p><ul><li><strong>All traffic</strong> OR</li><li><strong>Private ranges only</strong></li></ul><p>Without this, traffic won’t enter the VPC.</p><h3>Step 4 — Update Azure Configuration</h3><p>Since we created a new subnet in GCP:</p><p><strong>1. Update Azure Local Network Gateway</strong></p><p>Add the new GCP subnet CIDR.</p><p>This ensures Azure routes traffic through VPN.</p><p><strong>2. Update Azure NSG</strong></p><p>Whitelist the new GCP subnet CIDR.</p><p>Remember:</p><blockquote><em>Routing alone is not enough.<br> Security rules must also allow the traffic.</em></blockquote><h3>Result</h3><p>Cloud Run in Service Project successfully accessed Azure resources using the <strong>existing VPN</strong>.</p><p>No new tunnels required.</p><h3>Scenario 2: If You DON’T Have an Existing VPN</h3><p>If you’re starting from scratch, here’s what you must build first.</p><h3>Step 1 — Create VPN Gateway in GCP (Host Project)</h3><p>Best practice: Use <strong>HA VPN + Cloud Router (BGP enabled)</strong>.</p><p>Components required:</p><ul><li>HA VPN Gateway</li><li>Cloud Router</li><li>BGP configuration</li><li>VPN tunnels</li></ul><p>This ensures:</p><ul><li>Dynamic route exchange</li><li>Automatic CIDR advertisement</li><li>Enterprise-grade reliability</li></ul><h3>Step 2 — Create Azure VPN Gateway</h3><p>In Azure:</p><ul><li>Create Virtual Network Gateway</li><li>Create Local Network Gateway (pointing to GCP public IP)</li><li>Configure connection</li></ul><p>Add GCP subnet CIDRs.</p><h3>Step 3 — Configure Route Exchange</h3><p>If using BGP:</p><ul><li>Azure advertises Azure CIDRs</li><li>GCP advertises subnet CIDRs automatically</li></ul><p>If static:</p><ul><li>Add manual routes on both sides</li></ul><h3>Step 4 — Add Firewall Rules (Critical)</h3><p>In GCP Host Project:</p><p>Allow Azure CIDR → GCP subnet</p><p>In Azure NSG:</p><p>Allow GCP subnet → Azure resources</p><p>After the VPN is active, continue with “Terraform apply” by :</p><ul><li>Creating subnet</li><li>Enabling Shared VPC</li><li>Creating VPC Connector</li><li>Attaching Cloud Run</li></ul><h3>Full Terraform Code:</h3><p>All modules and a complete working configuration for this hybrid architecture are available in my GitHub repository.</p><p>🔗 <strong>Full source code:</strong><br> 👉 <a href="https://github.com/Sivabalasankar2002/gcp-shared-vpc-terraform-final.git">https://github.com/Sivabalasankar2002/gcp-shared-vpc-terraform-final.git</a></p><p>The repo includes:</p><ul><li>Shared VPC module</li><li>Service project attachment module</li><li>Serverless VPC Connector module</li><li>Firewall module</li><li>Example tfvars</li><li>End-to-end implementation</li></ul><h3>Why This Architecture Is Enterprise-Ready</h3><p>This design gives you:</p><ul><li>Centralized network governance</li><li>One VPN for all projects</li><li>Clean separation of networking and applications</li><li>Reusable Terraform modules</li><li>Secure serverless hybrid connectivity</li><li>Scalable multi-project design</li></ul><p>Instead of building tunnels per project, you extend a centralized network.</p><p>That’s real cloud maturity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8257280b1c00" width="1" height="1" alt=""><hr><p><a href="https://blog.thecloudside.com/from-azure-to-cloud-run-extending-vpn-across-multiple-gcp-projects-using-shared-vpc-8257280b1c00">From Azure to Cloud Run: Extending VPN Across Multiple GCP Projects Using Shared VPC</a> was originally published in <a href="https://blog.thecloudside.com/">The Cloudside View</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Laptop to Gym: Manual Full-Stack Deployment of Angular SPA + NestJS REST API + PostgreSQL…]]></title>
            <link>https://blog.thecloudside.com/from-laptop-to-gym-manual-full-stack-deployment-of-angular-spa-nestjs-rest-api-postgresql-565d51fe3fe4?source=rss-a715399f8c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/565d51fe3fe4</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[iis-server]]></category>
            <category><![CDATA[fullstack-development]]></category>
            <dc:creator><![CDATA[Sivabalasankar A]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 08:30:15 GMT</pubDate>
            <atom:updated>2025-10-13T08:30:15.682Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Laptop to Gym: Manual Full-Stack Deployment of Angular SPA + NestJS REST API + PostgreSQL Database on Windows 10 with IIS, ARR, URL Rewrite &amp; NSSM — Zero-Cost DIY Guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mLpSZjXwKSZfL_cC2tEf-w.png" /></figure><p>“I thought I was building a gym app; turns out I was training my patience with infinite errors instead.”</p><p>While visiting my local gym for rehabilitation, I noticed Gym Anna struggled to manage members, attendance, and payments. With no budget for servers or the cloud, I built a 3-tier full-stack solution myself: Angular frontend, NestJS backend, and PostgreSQL database — all manually deployed on Windows 10 using IIS, ARR, and URL Rewrite.</p><p>It wasn’t easy — broken builds, proxy loops, database errors, and IIS misconfigurations tested my patience. Angular frontend, NestJS backend, PostgreSQL database, IIS, ARR, URL Rewrite, NSSM — <strong>everything bundled on one humble Amma Laptop, no internet. And somehow it works.</strong></p><h3>Stack Overview</h3><p><strong>Frontend:</strong> Angular 16 — SPA dashboard, member portal, attendance display.<br><strong>Backend:</strong> NestJS 10 — REST APIs, authentication, billing, attendance management<br><strong>Database:</strong> PostgreSQL 18 — Stores members, plans, attendance, and payments<br><strong>Web Server:</strong> IIS + ARR + URL Rewrite — Serves SPA, reverse proxies API calls<br><strong>Operating System:</strong> Windows 10 Pro — Local deployment environment</p><h3>Application Architecture Diagram</h3><pre>+------------------------+<br>             |       Browser / SPA    |<br>             |  (Angular Frontend)   |<br>             +-----------+------------+<br>                         |<br>                         | HTTP (8080)<br>                         |<br>             +-----------v------------+<br>             |          IIS           |<br>             | +------------------+  |<br>             | | URL Rewrite &amp; ARR|  |<br>             | +------------------+  |<br>             |        Reverse Proxy   |<br>             +-----------+------------+<br>                         |<br>                         | HTTP (3001)<br>                         |<br>             +-----------v------------+<br>             |      NestJS Backend    |<br>             +-----------+------------+<br>                         |<br>                         | SQL Queries<br>                         |<br>             +-----------v------------+<br>             |      PostgreSQL        |<br>             |      Database          |<br>             +------------------------+</pre><p><strong>Flow Explanation:</strong></p><ul><li><strong>User → Angular SPA:</strong> Browser requests frontend; Angular handles routing and UI.</li><li><strong>Angular → IIS/ARR/URL Rewrite:</strong> IIS serves static files, rewrites SPA routes, and ARR forwards /api calls to the backend.</li><li><strong>IIS → NestJS:</strong> Backend handles API requests.</li><li><strong>NestJS → PostgreSQL:</strong> SQL queries fetch/update data.</li><li><strong>PostgreSQL → NestJS → Angular → Browser:</strong> Responses update SPA dynamically.</li></ul><h3>Phase 1: Preparing the Environment</h3><p><strong>Step 1: Install Core Tools</strong></p><ul><li>Git for Windows:<a href="https://git-scm.com/download/win"> https://git-scm.com/download/win</a></li><li>Node.js LTS: <a href="https://nodejs.org/en/download/">https://nodejs.org/en/download</a></li><li>PostgreSQL + pgAdmin:<a href="https://www.postgresql.org/download/windows/">https://www.postgresql.org/download/windows/</a></li></ul><p><strong>Verify installation:</strong></p><pre>node -v<br>npm -v<br>git --version<br>psql --version<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q42-2J0_7RXF7YRAvNK6Xg.png" /></figure><p><strong>How it works:</strong> Node.js runs the backend, PostgreSQL stores data, and IIS serves the frontend.</p><p><strong>Step 2: Enable IIS Features</strong></p><p>Control Panel → Programs → Turn Windows features on/off</p><p>Enable: IIS, IIS Management Console, Web Management Tools</p><pre>iisreset</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tllwHIry6A5Wc64KDo3dMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcUBOcjPWcwlle7QhUUIzg.png" /></figure><p><strong>How it works:</strong> IIS hosts the frontend and acts as a reverse proxy.</p><p><strong>Step 3: Install IIS Extensions</strong></p><ul><li>URL Rewrite Module: <a href="https://www.iis.net/downloads/microsoft/url-rewrite/">https://www.iis.net/downloads/microsoft/url-rewrite</a></li><li>Application Request Routing (ARR): <a href="https://www.iis.net/downloads/microsoft/application-request-routing/">https://www.iis.net/downloads/microsoft/application-request-routing</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wO6zzHVo89i-ApoG8F53Rg.png" /></figure><p><strong>How it works:</strong> URL Rewrite supports SPA routing; ARR forwards API calls to the backend.</p><h3>Phase 2: Project Setup</h3><p><strong>Step 4: Clone Project</strong></p><pre>cd C:\T20deploy\<br>git clone https://github.com/Sivabalasankar2002/t20-war-fitness-gym.git </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*jXMMyAqF5wLD5T-zqcK5xQ.png" /></figure><p><strong>How it works:</strong> Pulls the project locally for deployment.</p><p><strong>Step 5: Install Backend Dependencies</strong></p><pre>cd C:\\T20deploy\backend\api<br>npm install</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HsDdOy9E2bJnChM2C09ouA.png" /></figure><p><strong>How it works:</strong> Installs Node.js packages for backend functionality.</p><p><strong>Step 6: Install Frontend Dependencies</strong></p><pre>cd ..\frontend<br>npm install</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HsDdOy9E2bJnChM2C09ouA.png" /></figure><p><strong>How it works:</strong> Installs Angular CLI and libraries for frontend build.</p><p><strong>Step 7: Configure Environment Variables</strong></p><p>Create .env in backend folder:</p><pre>PORT=3001<br>DB_HOST=localhost<br>DB_PORT=5432<br>DB_USER=t20admin<br>DB_PASS=Admin@123<br>DB_NAME=t20<br>JWT_SECRET=change_this_in_production<br>JWT_EXPIRES_IN=7d</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*_SCuSYJweJ3DyyB0FUqW2A.png" /></figure><p><strong>How it works:</strong> Configures backend for database connections and authentication.</p><h3>Phase 3: Database Setup</h3><p><strong>Step 8:</strong>Login as Superuser</p><p>Open PowerShell or Command Prompt and run:</p><pre>psql -U postgres -h localhost -p 5432</pre><p>Connects to PostgreSQL as postgres to manage databases and users.</p><p><strong>Create the application database:</strong></p><pre>CREATE DATABASE t20;</pre><p>Creates a dedicated database t20 for the app.</p><p><strong>Create a dedicated application user:</strong></p><pre>CREATE USER t20admin WITH PASSWORD &#39;Admin@123&#39;;</pre><p>Adds a new user t20admin for backend access.</p><p><strong>Grant privileges to the user:</strong></p><pre>GRANT ALL PRIVILEGES ON DATABASE t20 TO t20admin;</pre><p>Gives t20admin full access to manage t20.</p><p><strong>Test connection as application user:</strong></p><pre>psql -U t20admin -h localhost -d t20 -p 5432</pre><p>Confirms t20admin can connect to the t20 database.</p><p><strong>Final verification in pgAdmin:</strong></p><ul><li>Expand t20 → Schemas → public → Tables: members, plans, attendance, payments.</li><li>Check Login Roles: t20admin should have full privileges on t20.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jRE9qZ-hUeuMhzFvABJmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfjbHObjEv_3CGAgdi9JUQ.png" /></figure><h3>Phase 4: Frontend and Backend Build (Angular + NestJS)</h3><p><strong>Step 9: Build Angular App</strong></p><pre>cd C:\T20Deploy\t20-war-fitness\frontend<br>npm run build</pre><p><strong>How it works: </strong>Creates dist/frontend containing index.html, main.js, and assets.</p><p><strong>Step 10: Build NestJS Backend</strong></p><pre>cd C:\T20Deploy\t20-war-fitness\backend\api<br>npm run build</pre><p><strong>How it works: </strong>Compiled backend files in dist/ ready to serve with Node.</p><h3>Phase 5: IIS Directory Preparation</h3><p><strong>Step 11: Create Deployment Folder</strong></p><pre>C:\inetpub\wwwroot\T20-WAR-Fitness-App\</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IhlTNTg2iZw_VzyywgXWRQ.png" /></figure><p><strong>Step 12: </strong>Copy Build Files</p><ul><li><strong>Frontend → Root:</strong> Copy all files from dist/frontend/ to C:\inetpub\wwwroot\T20-WAR-Fitness-App\</li><li><strong>Backend → /api:</strong> Create C:\inetpub\wwwroot\T20-WAR-Fitness-App\api and copy dist/ contents inside.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-L6cNB7B7fusQ5FkDYlpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALWSvrYcLI1et9kQQwKjOg.png" /></figure><p><strong>Step 13</strong>: Root web.config for Angular SPA</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;configuration&gt;<br>    &lt;system.webServer&gt;<br>        &lt;rewrite&gt;<br>            &lt;rules&gt;<br>                &lt;rule name=&quot;Exclude API&quot; stopProcessing=&quot;true&quot;&gt;<br>                    &lt;match url=&quot;^api/.*&quot; /&gt;<br>                    &lt;action type=&quot;None&quot; /&gt;<br>                &lt;/rule&gt;<br>                &lt;rule name=&quot;Angular SPA Routing&quot; stopProcessing=&quot;true&quot;&gt;<br>                    &lt;match url=&quot;.*&quot; /&gt;<br>                    &lt;conditions logicalGrouping=&quot;MatchAll&quot;&gt;<br>                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; /&gt;<br>                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; /&gt;<br>                    &lt;/conditions&gt;<br>                    &lt;action type=&quot;Rewrite&quot; url=&quot;/index.html&quot; /&gt;<br>                &lt;/rule&gt;<br>            &lt;/rules&gt;<br>        &lt;/rewrite&gt;<br>    &lt;/system.webServer&gt;<br>&lt;/configuration&gt;</pre><p>Save as:</p><pre>C:\inetpub\wwwroot\T20-WAR-Fitness-App\web.config</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pAgaCVYvRPZil0085bBBw.png" /></figure><p><strong>Step 14</strong>: Backend web.config for API Reverse Proxy</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;configuration&gt;<br>    &lt;system.webServer&gt;<br>        &lt;rewrite&gt;<br>            &lt;rules&gt;<br>                &lt;rule name=&quot;Proxy to NestJS API&quot; stopProcessing=&quot;true&quot;&gt;<br>                    &lt;match url=&quot;(.*)&quot; /&gt;<br>                    &lt;action type=&quot;Rewrite&quot; url=&quot;http://localhost:3001/{R:1}&quot; /&gt;<br>                &lt;/rule&gt;<br>            &lt;/rules&gt;<br>        &lt;/rewrite&gt;<br>    &lt;/system.webServer&gt;<br>&lt;/configuration&gt;</pre><p>Save as:</p><pre>C:\inetpub\wwwroot\T20-WAR-Fitness-App\api\web.config</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cvHfNCTpfVOxfw4kzWpkzw.png" /></figure><h3>Step 15: Create Application Pool</h3><p>Press <strong>Win + R → inetmgr → Enter</strong>. Open IIS Manager and click Application Pool on left <strong>→ Create</strong></p><ul><li><strong>Name:</strong> T20-API-Pool</li><li><strong>.NET CLR Version:</strong> No Managed Code</li><li><strong>Start Mode:</strong> AlwaysRunning</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUmysQ5t2HJ_ixD7rljMkw.png" /></figure><h3>Step 16: Create Website</h3><ul><li><strong>Site Name:</strong> T20-WAR-Fitness-App</li><li><strong>Physical Path:</strong> C:\inetpub\wwwroot\T20-WAR-Fitness-App</li><li><strong>Port:</strong> 8080</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-airHAo5AoSZDrqQ8uTww.png" /></figure><h3>Step 17: Create /api Application</h3><ul><li><strong>Alias:</strong> api</li><li><strong>Physical Path:</strong> C:\inetpub\wwwroot\T20-WAR-Fitness-App\api</li><li><strong>Application Pool:</strong> T20-API-Pool</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNVKZkELNm26DqRKmbesJQ.png" /></figure><h3>Step 18: Start the Website</h3><p>Right-click → <strong>Manage Website → Start</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-airHAo5AoSZDrqQ8uTww.png" /></figure><h3>Step 19: Run NestJS Server in PowerShell</h3><pre>cd C:\inetpub\wwwroot\T20-WAR-Fitness-App\api<br>set PORT=3001<br>node main.js</pre><h3>Step 16: Test in Browser</h3><ul><li><strong>Frontend:</strong> <a href="http://localhost:8080/">http://localhost:8080/</a></li><li><strong>Backend API:</strong> <a href="http://localhost:8080/api/players">http://localhost:8080/api/players</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBisQBvw5P3-xkwHit-7wQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RaRdhcSxMcmeP9Yz8e5dEg.png" /></figure><h3>Phase 6: NSSM — Running Backend as Windows Service</h3><p><strong>Step 17: Install NSSM</strong></p><ul><li>Download: <a href="https://nssm.cc/download/">https://nssm.cc/download</a></li><li>Extract to C:\nssm</li><li>Add to system PATH</li></ul><p><strong>How it works:</strong> NSSM wraps Node.js as a Windows service.</p><p><strong>Step 18: Create NSSM Service</strong></p><pre>.\nssm.exe start T20-Fitness-API-Service</pre><ul><li>Application Path: C:\Program Files\nodejs\node.exe</li><li>Startup Directory: C:\inetpub\wwwroot\T20-WAR-Fitness-App\api\dist</li><li>Arguments: run start:prod</li><li>Display Name: T20-Fitness-API-Service</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nVhz1UuwcJaxrcwIObXC5A.png" /></figure><p><strong>How it works:</strong> Runs backend as a service with auto-restart.</p><p><strong>Step 19: Verify in Services:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fIqF6RTMUYEtl70dud1uZw.png" /></figure><h3>Phase 6: Testing Deployment</h3><ul><li>Frontend: <a href="http://localhost:8080/">http://localhost:8080</a></li><li>Backend: <a href="http://localhost:3000/api/members">http://localhost:3000/api/members</a></li><li>Database updates are visible live</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBisQBvw5P3-xkwHit-7wQ.png" /></figure><p><strong>Common Errors:</strong></p><ul><li>404 on SPA refresh → Angular routes not rewritten → Check root web.config for SPA rewrite rules</li><li>502 Bad Gateway / Backend down → NestJS server not running or ARR misconfigured → Restart backend via NSSM and verify ARR port</li><li>CORS errors → Backend missing CORS configuration → Enable CORS in NestJS</li><li>Static files missing / wrong MIME type → IIS doesn’t recognize file types (e.g., .json) → Add MIME type mappings in IIS</li><li>Database connection failed → Wrong credentials or DB not running → Verify .env variables and PostgreSQL service</li><li>NSSM service not starting → Wrong paths or arguments → Check Node path, working directory, and start:prod command</li><li>Proxy loops / API forwarding issues → URL Rewrite or ARR misconfigured → Exclude API paths from SPA rewrite and fix ARR forwarding</li></ul><h3>Phase 7: Create Desktop Shortcut</h3><p>To make the application easy to launch, especially for Gym Anna, who is using a laptop for the first time, I created a <strong>desktop shortcut</strong>:</p><p><strong>Steps:</strong></p><ol><li>Right-click on Desktop → <strong>New → Shortcut</strong></li><li>In <strong>Location</strong>, enter:</li></ol><pre>http://localhost:8080</pre><p>3. Click Next and give it a name: T20-GYM-APP</p><p>4. Click <strong>Finish</strong></p><p><em>How it works:</em> Double-clicking this shortcut will start the backend service (Node.js/NSSM can also be running) and open the application frontend in the browser.</p><p>So now whenever we shut down and restart, it can’t affect the running of the backend continuously.</p><h3>Final Words: Tech, Triumph, and Gym Anna</h3><p>This project was a <strong>rollercoaster.</strong> Endless Angular build errors, NestJS crashes, “PostgreSQL can’t connect error”, and IIS mischief tested my sanity — and my laptop clearly wanted a vacation.</p><p>The real victory wasn’t a flawless deployment. It was <strong>Gym Anna</strong>. He now thinks he’s a <strong>tech wizard</strong>, proudly showing off the app to members, explaining every button, and even giving mini “training sessions.” Watching him teach others, laugh at glitches, and genuinely enjoy the system made every crash and error completely worth it.</p><p>In the end, this project wasn’t just about code or deployment— it was about solving real problems and seeing technology make someone’s life better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=565d51fe3fe4" width="1" height="1" alt=""><hr><p><a href="https://blog.thecloudside.com/from-laptop-to-gym-manual-full-stack-deployment-of-angular-spa-nestjs-rest-api-postgresql-565d51fe3fe4">From Laptop to Gym: Manual Full-Stack Deployment of Angular SPA + NestJS REST API + PostgreSQL…</a> was originally published in <a href="https://blog.thecloudside.com/">The Cloudside View</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Serverless Birthday Reminder: AWS Lambda, DynamoDB, EventBridge + Google Chat Webhook…]]></title>
            <link>https://blog.thecloudside.com/%EF%B8%8F-serverless-birthday-reminder-aws-lambda-dynamodb-eventbridge-google-chat-webhook-de34cfec03f8?source=rss-a715399f8c50------2</link>
            <guid isPermaLink="false">https://medium.com/p/de34cfec03f8</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[hr]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Sivabalasankar A]]></dc:creator>
            <pubDate>Mon, 30 Jun 2025 14:07:37 GMT</pubDate>
            <atom:updated>2025-07-01T08:13:15.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zz4F3_Y5hOXA5WGQl8JrAA.png" /></figure><h3>🛠️ Serverless Birthday Reminder: AWS Lambda, DynamoDB, EventBridge + Google Chat Webhook Integration</h3><h3>HR Problem: Forgetting Employee Birthdays</h3><p>In most Populated companies, remembering and celebrating employee birthdays is often neglected. Even the most organized HR teams or team leads can miss dates because of:</p><ul><li>Heavy workloads</li><li>Multiple team responsibilities</li><li>Timezone gaps</li></ul><h3>Why it matters:</h3><ul><li>Missed birthdays can impact employee morale.</li><li>A simple message can significantly boost team spirit.</li><li>Repetitive manual reminders aren’t scalable.</li></ul><h3>✅ Solution: Automate Birthday Wishes with AWS &amp; Google Chat</h3><p>Let’s build a <strong>serverless birthday wish scheduler</strong> that automatically posts birthday messages on time — reliably and without human involvement!</p><h3>Perfect for:</h3><ul><li>HR or PeopleOps automating employee engagement</li><li>Managers automating team bonding</li><li>Developers building practical AWS + SaaS integrations</li></ul><h3>🛠️ Technologies Used</h3><ul><li><strong>AWS Lambda</strong> — serverless birthday logic</li><li><strong>Amazon DynamoDB</strong> — stores birthday records</li><li><strong>Amazon EventBridge</strong> — triggers Lambda daily</li><li><strong>Google Chat Webhook</strong> — sends the birthday message</li></ul><p>Fully Serverless | Free Tier Friendly | Zero Maintenance</p><h3>🧱 Architecture Overview</h3><pre>💼 HR / Manager Inputs<br> (Birthday Data Entry)<br>       │<br>       ▼<br>🗂️ DynamoDB (Stores employee birthdays)<br>       │<br>📆 EventBridge (Triggers daily check at 8:30 AM IST)<br>       │<br>▼<br>🧠 Lambda Function<br>(Scans table, checks today&#39;s date)<br>       │<br>       ▼<br>💬 Google Chat Webhook<br>(Sends 🎉 Birthday Message to team space)</pre><h3>🧰 Step-by-Step Setup</h3><h3>1️⃣ DynamoDB Table: Birthday List</h3><ul><li>Go to AWS Console → DynamoDB → <strong>Create Table</strong></li><li><strong>Table name</strong>: BirthdayWishes</li><li><strong>Partition key</strong>: email (String)</li><li>Choose <strong>On-Demand mode </strong>for pricing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttrPNYcQmJBq-oyCNOXqeg.png" /></figure><h4>Example Record:</h4><pre>{<br>  &quot;email&quot;: &quot;sivabalasankar2002@gmail.com&quot;,<br>  &quot;name&quot;: &quot;Sivabalasankar&quot;,<br>  &quot;dob&quot;: &quot;2002-02-09&quot;,<br>  &quot;message&quot;: &quot;🎉 Happy Birthday Sivabalasankar! Hope your day is amazing!&quot;<br>}</pre><p><em>Data can be bulk-uploaded from HRMS exports.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHfuNQB-Pj24-YJprewPng.png" /></figure><h3>2️⃣ Set Up Google Chat Webhook</h3><ul><li>Open Google Chat → Create/Use a <strong>Space</strong></li><li>Click <strong>Space name → Manage Webhooks</strong></li><li>Click <strong>Add Webhook</strong></li><li>Name: BirthdayBot</li><li><strong>Copy the Webhook URL</strong></li></ul><p>🔗 This is where your birthday wishes will appear!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CIql4r0pO8-cM8pScUAXDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-K8iynEAVfanAMdu9R8r2w.png" /></figure><h3>3️⃣ Lambda Function Setup</h3><ul><li>Go to AWS Console → Lambda → Create Function</li><li>Runtime: <strong>Python 3.12</strong></li><li>Name: BirthdayWishSender</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RBGLB4jrQ8z3z8rAyt17Pg.png" /></figure><h4>💾 Lambda Code on GitHub:</h4><blockquote>📂 GitHub Repository: <a href="https://github.com/Sivabalasankar2002/BirthdayWishRepo"><strong>BirthdayWishRepo</strong></a></blockquote><p><strong>Repository Contents:</strong></p><ul><li>Lambda_BirthdayWish_Code – Python script</li><li>Sample EventBridge schedule — Daily cron example</li><li>README.md – Setup guide and architecture</li></ul><p>⭐ Star the repo if you find it helpful!</p><h3>🔒 IAM Permissions for Lambda</h3><p>Add this inline policy to the Lambda’s IAM role:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1xYGyoXDqn0Uf1kxxZTmA.png" /></figure><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: [&quot;dynamodb:Scan&quot;],<br>      &quot;Resource&quot;: &quot;*&quot;<br>    }<br>  ]<br>}</pre><h3>4️⃣ Automate with EventBridge</h3><ul><li>Go to EventBridge → <strong>Create Rule</strong></li><li><strong>Name</strong>: DailyBirthdayCheck</li><li>Type: Schedule-based</li><li><strong>Expression</strong>: cron(0 3 * * ? *) → Runs at 8:30 AM IST</li><li>Target: Your Lambda function</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RlLR34BrRwZMEvbYL03fmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qEl2BC7ujTB_BKBtLqwjnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EK9CnTt3tVRWoyWOafo1hw.png" /></figure><h3>🧪 Testing It Out</h3><ul><li>Add a record with <strong>today’s date</strong> in DynamoDB</li><li>Go to Lambda → Click <strong>Test</strong></li><li>🎉 Confirm message is posted in Google Chat</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lebwlrg_GEPEuSspP4odYw.png" /></figure><h3>💸 Cost Optimization:</h3><p>This setup is practically <strong>free</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*2YT8JGOu4gsjHmvrgn_16A.png" /></figure><h3>Additional Tips:</h3><ul><li>Use minimal Lambda memory (64 MB is enough)</li><li>Keep logs minimal to avoid CloudWatch costs</li><li>Turn off EventBridge rule when not in use (e.g., weekends)</li></ul><p>All services are within AWS free tier for low-scale setups.</p><h3>👩‍💼 HR &amp; Team Use Cases:</h3><ul><li>Automatically wish team members on birthdays</li><li>Eliminate dependency on Excel sheets or Slack reminders</li><li>Centralize celebration in Google Chat spaces</li><li>Show employees that they matter — consistently</li></ul><p><strong>HR + Automation = Employee Delight 🤝</strong></p><h3>🎯 Final Thoughts</h3><p>With just a few AWS services and Google Chat, you’ve created a <strong>fully automated, HR-friendly birthday wisher</strong>.</p><p>This project helps you:</p><ul><li>Learn real AWS + SaaS integration</li><li>Practice serverless event-driven design</li><li>Boost team morale without manual effort</li></ul><p>🎉 <strong>Never miss another birthday again. Let AWS be your HR assistant.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de34cfec03f8" width="1" height="1" alt=""><hr><p><a href="https://blog.thecloudside.com/%EF%B8%8F-serverless-birthday-reminder-aws-lambda-dynamodb-eventbridge-google-chat-webhook-de34cfec03f8">🛠️ Serverless Birthday Reminder: AWS Lambda, DynamoDB, EventBridge + Google Chat Webhook…</a> was originally published in <a href="https://blog.thecloudside.com/">The Cloudside View</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>