<?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 Naveen Singh on Medium]]></title>
        <description><![CDATA[Stories by Naveen Singh on Medium]]></description>
        <link>https://medium.com/@codedotdev?source=rss-10b8a07aef25------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oho8xlUMLqyOpk_HotFScw.jpeg</url>
            <title>Stories by Naveen Singh on Medium</title>
            <link>https://medium.com/@codedotdev?source=rss-10b8a07aef25------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 10:27:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@codedotdev/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[Day04: Terraform State File Management with AWS S3 (Remote Backend)]]></title>
            <link>https://codedotdev.medium.com/day04-terraform-state-file-management-with-aws-s3-remote-backend-0f2d7d4b6afa?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f2d7d4b6afa</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 18:20:41 GMT</pubDate>
            <atom:updated>2026-09-20T18:20:41.100Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How Terraform Updates Infra + Why .tfstate Is Critical + Remote Backend Setup</em></p><p>Today’s session was fully focused on one of the most important concepts in Terraform — <strong>the state file</strong> and <strong>remote state management using AWS S3</strong>.<br>Most learners skip or misunderstand this part, but it is the backbone of how Terraform works behind the scenes.</p><p>Let’s break down everything I learned on <strong>Day 04</strong>.</p><h3>🔍 1. Understanding How Terraform Updates Infrastructure</h3><p>Terraform does not directly interact with AWS every time you run a command.<br>Instead, it uses a file called:</p><pre>terraform.tfstate</pre><p>This file contains the <em>current state</em> of your infrastructure.<br>Terraform compares:</p><ul><li><strong>Desired State</strong> → defined in .tf files</li><li><strong>Actual State</strong> → fetched from your cloud provider</li></ul><p>Whenever these differ, Terraform plans and applies the necessary changes to sync them.</p><h3>🆚 2. Desired State vs Actual Environment</h3><h4>Desired State</h4><p>The infrastructure written in your Terraform configuration.<br>Example: S3 bucket, VPC, EC2 instance, IAM roles.</p><h4>Actual State</h4><p>The real environment in AWS at the moment.</p><p>Terraform makes <strong>Actual State = Desired State</strong> by using the .tfstate file as the single source of truth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*VMB8odphrs2X5FOv.jpeg" /></figure><h3>📁 3. Importance of the .tfstate File</h3><p>The .tfstate file stores key information such as:</p><ul><li>Resource IDs</li><li>Configuration metadata</li><li>Dependencies</li><li>Attributes and outputs</li></ul><p>Terraform relies on it to understand what already exists and what needs to change.</p><p>Any corruption, deletion, or manual modification of this file can break the entire infrastructure workflow.</p><h3>⚠️ 4. Why .tfstate Should Not Be Stored Locally</h3><p>Local state storage is not recommended for several reasons:</p><ul><li>Contains sensitive information</li><li>Risk of accidental deletion or corruption</li><li>No collaboration support</li><li>Breaks consistency when using multiple machines</li><li>Cannot be tracked or versioned properly</li></ul><p>Hence, it must be stored in a <strong>Remote Backend</strong>.</p><h3>☁️ 5. Remote State Backends — Best Practice for Teams</h3><p>A remote backend stores the state file in a secure, centralized location.<br>Popular remote backend options:</p><ul><li>AWS S3</li><li>Azure Blob Storage</li><li>GCP Cloud Storage</li></ul><h3>Benefits:</h3><p>✔ Team collaboration<br>✔ State locking<br>✔ Automatic versioning<br>✔ High durability<br>✔ No accidental local corruption</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*uW1pO1HO656Rglqq.jpeg" /></figure><h3>🛠️ 6. Configuring S3 Remote Backend in Terraform</h3><p>Using AWS S3 as a backend ensures secure and scalable state management.</p><p>Below is the configuration added to my main.tf:</p><pre>terraform {<br>  backend &quot;s3&quot; {<br>    bucket         = &quot;codewithpiyush-terraform-bucket-123456&quot;<br>    key            = &quot;dev/terraform.tfstate&quot;<br>    region         = &quot;us-east-1&quot;<br>    encrypt        = true<br>    use_lockfiles  = true<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*m9cQcv3afvrisQqN.png" /></figure><h3>Key Components:</h3><ul><li><strong>bucket</strong> → S3 bucket hosting the state file</li><li><strong>key</strong> → path inside the bucket</li><li><strong>encrypt</strong> → enables encryption at rest</li><li><strong>dynamodb_table</strong> → ensures state locking</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*my3biUyUDyONvPrx.jpeg" /></figure><h3>📌 Before Running terraform init</h3><p>You <strong>must</strong> manually create the S3 bucket that will host the state file.</p><p>Why?<br>Because Terraform cannot store state into a bucket that doesn’t exist yet.</p><p>You can create it using:</p><ul><li>AWS CLI</li><li>Console</li><li>Pipeline/script</li></ul><h3>▶️ 7. Running Terraform Commands After Backend Setup</h3><h4>terraform init</h4><ul><li>Configures the remote backend</li><li>Creates a lock file</li><li>Connects Terraform to AWS S3</li></ul><h4>terraform validate</h4><ul><li>Validates the configuration and syntax</li></ul><h4>terraform plan</h4><ul><li>Shows execution changes required to match desired state</li></ul><h4>terraform apply</h4><ul><li>Applies the changes and updates the state file in S3</li></ul><p>After setting up the backend, the .tfstate file is no longer generated locally — only minimal metadata remains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/0*lmHarjDnHE8uiHwH.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*r1bcB3jkmIPuTimV.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/0*21QygfpVZd9vdqpB.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/0*hdJL_lKKcKlGTgMD.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VHG62fH-uAD7z94B.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iHVSWj3EaTo0Xuad.png" /></figure><h3>🧪 8. Terraform State Commands I Explored</h3><h4>✔ terraform state list</h4><p>Shows all resources tracked in the state file.</p><p>Example:</p><pre>terraform state list</pre><p>Output:</p><pre>aws_s3_bucket.first_bucket</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*-VfkUgoTHh-2YzU9.png" /></figure><h4>✔ terraform state show &lt;resource-name&gt;</h4><p>Displays detailed state info of a resource.</p><p>Example:</p><pre>terraform state show aws_s3_bucket.first_bucket</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6MqGmeTrE5O1xn6I.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/0*_MLb4iz969Hdy7oL.png" /></figure><h4>✔ terraform state pull</h4><p>Fetches state in JSON format.</p><p>Example:</p><pre>terraform state pull</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*usbuplkQ167Plq0-.png" /></figure><h4>✔ terraform state rm &lt;resource&gt;</h4><p>Removes a resource <strong>from the state file only</strong><br>(does NOT delete it from AWS)</p><pre>terraform state rm aws_s3_bucket.renamed_bucket</pre><h4>✔ terraform state mv &lt;src&gt; &lt;dest&gt;</h4><p>Moves/renames resource inside the state file.</p><p>Example:</p><pre>terraform state mv aws_s3_bucket.first_bucket aws_s3_bucket.main_bucket</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*xAwCJuSTvgpD5Rt8.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/0*K6GbLuGPJPuEgCGH.png" /></figure><h3>🏁 Summary</h3><p>Today’s session reinforced why professional Terraform workflows rely heavily on remote state management.</p><p><strong>Key takeaways:</strong></p><ul><li>Terraform uses the state file as the central truth of your infrastructure</li><li>Remote backends like AWS S3 provide reliability and collaboration</li><li>State locking prevents race conditions in team environments</li><li>Terraform commands behave differently once a remote backend is configured</li></ul><p>Overall, this was a foundational step toward managing Terraform at scale.</p><h3>Here’s the video attached for today session:</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYsEdrl9O5os%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYsEdrl9O5os&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYsEdrl9O5os%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/284f9506afb6cc7a46f5bd5c9be1c88a/href">https://medium.com/media/284f9506afb6cc7a46f5bd5c9be1c88a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f2d7d4b6afa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building CivicSense AI: How I Built a Multimodal Citizen Grievance Assistant on AWS]]></title>
            <link>https://codedotdev.medium.com/building-civicsense-ai-how-i-built-a-multimodal-citizen-grievance-assistant-on-aws-224213dd17eb?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/224213dd17eb</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-rekognition]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 14:27:41 GMT</pubDate>
            <atom:updated>2026-09-21T05:04:01.545Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How Indian cities can revolutionize municipal triage using Amazon Rekognition, Bedrock, DynamoDB, S3, and Amplify — built during the WeMakeDevs × AWS First Commit Hackathon.</em></p><h3>📌 The Real-World Problem: The “Black Hole” of Civic Grievances</h3><p>Every monsoon, millions of commuters across India navigate dangerous potholes, overflowed drains, and broken streetlights. When a citizen tries to report these issues through traditional helplines or municipal websites, they face serious challenges:</p><p><strong>Category Confusion:</strong> Citizens often don’t know whether an issue belongs to the Public Works Department, Waste Management, or the Electricity Board.</p><p><strong>Vague Descriptions:</strong> A complaint saying “there is water on the road” without clear context gets placed at the bottom of the pile.</p><p><strong>Lack of Urgency Assessment:</strong> An emergency crater on a main highway gets queued behind minor cosmetic repairs on quiet streets.</p><p>As a result, important complaints sit unaddressed for weeks. I built <strong>CivicSense AI</strong> to solve this problem. A citizen simply uploads a photo and writes a single sentence in their local language. Multimodal AWS AI instantly analyzes the image, determines how urgent it is, creates a structured ticket, and automatically sends it to the correct municipal department dashboard.</p><h3>🏗️ System Architecture: The 6 AWS Cloud Services</h3><p>To ensure high reliability, speed, and low maintenance, CivicSense AI is built entirely on serverless AWS services:</p><p><strong>AWS Amplify:</strong> Hosts the Next.js full-stack web application with continuous deployment from GitHub.</p><p><strong>Amazon Rekognition:</strong> Uses computer vision to detect objects in the uploaded photo, such as puddles, potholes, garbage, or electrical wires.</p><p><strong>Amazon Bedrock (Nova Lite):</strong> Provides multimodal reasoning to understand citizen descriptions and structure the final ticket.</p><p><strong>Amazon S3:</strong> Safely and permanently stores the uploaded grievance photos.</p><p><strong>Amazon DynamoDB:</strong> A fast NoSQL database that stores and fetches all complaint tickets in real time.</p><p><strong>Amazon CloudWatch:</strong> Tracks system logs and ensures the entire pipeline is monitored end-to-end.</p><h3>🏛️ CivicSense AI — Pura Flow Samjho</h3><p><em>Yeh section poore project ka step-by-step visual walkthrough hai. Har step mein ek diagram + explanation hai. Isko padh ke exactly pata chalega ki ek complaint submit hone ke baad AWS ke andar kya kya hota hai.</em></p><h3>Step 0: Architecture — Big Picture</h3><p>Pehle ek baar poori picture dekho. Citizen se lekar dashboard tak ka complete journey:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*yKCh4ciaIbd_Q_4J1ZHrZQ.png" /></figure><h3>Step 1: Citizen Photo + Text Bhejta Hai</h3><p>Citizen humari website kholega. Ushe ek clean form milti hai jisme sirf 2 cheezein hain — photo upload area aur ek description text box. Kisi bhi language mein likh sakte hain: Hindi, English, ya Hinglish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qe9akbwg3oyZ-DlPPFYEIQ.png" /></figure><p><strong>Kya hota hai:</strong></p><ul><li>Citizen website kholega → form mein photo select karega (kachra, gaddha, tooti light, kuch bhi)</li><li>Niche text mein likhega Hindi/English mein: <em>“Yahan bohot dino se kachra pada hai”</em></li><li>Submit dabayega → Frontend photo ko Base64 (text format) mein convert karke API ko bhej dega</li></ul><blockquote><em>💡 </em><strong><em>Base64 kyun?</em></strong><em> HTTP requests mein binary image directly nahi bhej sakte. Base64 encoding image ko text mein convert kar deti hai taaki JSON payload mein safely travel kar sake.</em></blockquote><h3>Step 2: Photo Amazon S3 Mein Save Hoti Hai</h3><p>Jaise hi API ko request milti hai, sabse pehla kaam photo ko permanently aur safely store karna hai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zTVWVk6eQL7qh_wWNv31Uw.png" /></figure><p><strong>Kya hota hai:</strong></p><ul><li>API ek unique Ticket ID generate karta hai (UUID format)</li><li>Photo ko Amazon S3 bucket mein save karta hai: tickets/1b90c009.jpg</li><li>S3 se ek permanent URL milta hai — photo kabhi delete nahi hogi</li><li>CloudWatch mein log hota hai: S3_UPLOAD_SUCCESS</li><li><strong>Cost: ₹0</strong></li></ul><blockquote><em>💡 </em><strong><em>S3 kyun?</em></strong><em> Ye AWS ka sabse reliable aur sasta storage hai. Free tier mein 5GB free milta hai. Photo permanently stored rahegi aur kisi bhi time access ki ja sakti hai.</em></blockquote><h3>Step 3: AI Brain Kaam Karta Hai (SABSE IMPORTANT!)</h3><p>Yeh project ka <strong>core innovation</strong> hai — ek <strong>3-Layer Graceful Degradation Pipeline</strong> jo guarantee karta hai ki ticket HAMESHA categorize hogi, chahe kuch bhi ho jaye.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*-ARkSbRgDahINcOH_BDYiQ.png" /></figure><p><strong>Kya hota hai (3 Layers):</strong></p><p><strong>🧠 Layer 1 — Amazon Bedrock (Nova Lite):</strong></p><p>Ye sabse intelligent layer hai. Photo + text dono ek saath dekhta hai. Samajhta hai: <em>“Oh, ye kachre ka photo hai aur text mein badbu likh raha hai.”</em> Output: {category: Sanitation, urgency: High}. PAR: Free tier ka daily quota khatam ho gaya toh ThrottlingException aata hai. TAB: Automatically niche wali layer try hoti hai ⬇️</p><p><strong>👁️ Layer 2 — Amazon Rekognition (ABHI ACTIVE ✅):</strong></p><p>Ye photo mein cheezein pehchanta hai. Bolega: <em>“Mujhe dikh raha hai: Garbage (95%), Plastic Bag (88%), Road (72%)”</em> Humara code in words ko match karta hai:</p><ul><li>Garbage detected? → Category = <strong>Sanitation</strong></li><li>Road detected? → Category = <strong>Roads/Infrastructure</strong></li><li>Text mein “danger” likha? → Urgency = <strong>HIGH</strong></li></ul><p><strong>YE LAYER ABHI LIVE KAAM KAR RAHI HAI!</strong></p><p><strong>💡 Layer 3 — Smart Fallback (Always Active Backup):</strong></p><p>Agar dono AWS AI fail ho jayein → ye text se keywords match karta hai:</p><ul><li>kachra / kuda / safai → Garbage</li><li>gaddha / sadak → Pothole</li><li>bijli / light → Electricity</li></ul><p>Ye <strong>KABHI fail nahi hota</strong> = App 100% reliable. Yahi hai production-grade <strong>graceful degradation</strong>.</p><h3>Step 4: Ticket DynamoDB Mein Save Hota Hai</h3><p>AI analysis complete hone ke baad, poori information ek structured ticket ke roop mein DynamoDB table CivicTickets mein save hoti hai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*f3qrjkf8XMaLta7fo-ESlw.png" /></figure><p><strong>Kya hota hai:</strong></p><ul><li>AI ne result de diya → ab saari info ek structured ticket ban kar DynamoDB mein save hoti hai</li><li>Ticket mein ye save hota hai:</li><li>📷 Photo ka S3 URL</li><li>📂 Category (Sanitation, Roads, etc.)</li><li>🔴 Urgency (High / Medium / Low)</li><li>🏢 Department (Waste Mgmt, Public Works, etc.)</li><li>🤖 AI Source (rekognition / bedrock / fallback)</li><li>CloudWatch mein TICKET_CREATED log hota hai</li></ul><blockquote><em>💡 </em><strong><em>DynamoDB kyun?</em></strong><em> Serverless NoSQL database hai — koi server manage nahi karna padta, automatically scale hota hai, aur free tier mein 25GB tak free hai.</em></blockquote><h3>Step 5: Dashboard Par Results Dikhte Hain</h3><p>Ticket save hone ke baad, user automatically Dashboard page (/dashboard) par redirect ho jata hai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wq0CMjtppybcnpGLci5JLg.png" /></figure><p><strong>Kya hota hai:</strong></p><ul><li>Ticket save hone ke baad citizen Dashboard par redirect hota hai</li><li>Dashboard DynamoDB se saare tickets fetch karta hai</li><li>Har ticket ek card mein dikhta hai:</li><li>🔴 <strong>Red border</strong> = HIGH urgency (abhi kuch karo!)</li><li>🟡 <strong>Yellow border</strong> = MEDIUM (jaldi dhyan do)</li><li>🟢 <strong>Green border</strong> = LOW (schedule kar lo)</li><li>Har card mein category, summary, department, aur AI source dikhta hai</li></ul><h3>🔄 Pura Flow Ek Line Mein</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5Dvayax8a_RC4xau3Fe2A.png" /></figure><p><strong>Citizen photo deta hai → S3 mein save hoti hai → AI analyze karta hai → DynamoDB mein ticket banta hai → Dashboard par dikhta hai</strong></p><p>Bas, itna hi hai! Simple, fast, aur 6 AWS Services use ho rahi hain! 🚀</p><h3>💡 The Core Innovation: A 3-Layer AI Fallback Pipeline</h3><p>In critical municipal systems, system downtime or API limits should never stop a citizen complaint from reaching authorities. To guarantee 100% reliability, I designed a 3-layer AI engine:</p><pre>Layer 1: Amazon Bedrock (Nova Lite)<br>         ↓ [On Daily Token Limit / ThrottlingException]<br>Layer 2: Amazon Rekognition (Computer Vision Labels) + Smart Mapper<br>         ↓ [On Network Error]<br>Layer 3: Heuristic Keyword NLP (Hindi &amp; English Emergency Rules)</pre><p><strong>Layer 1:</strong> Amazon Bedrock (Nova Lite) handles multimodal reasoning combining text and image.</p><p><strong>Layer 2:</strong> If Bedrock reaches daily token quotas, Amazon Rekognition takes over by extracting visual labels from the image and mapping them to the right municipal department.</p><p><strong>Layer 3:</strong> If external vision APIs are unreachable, an intelligent rule-based keyword engine parses Hindi and English text to ensure the complaint is still routed.</p><h3>How Layer 2 Computer Vision Works in Code:</h3><p>When Bedrock reached free-tier limits, Amazon Rekognition immediately stepped in without missing a beat:</p><pre>// Detect visual labels using Amazon Rekognition<br>const rekClient = new RekognitionClient(getAwsConfig());<br>const response = await rekClient.send(new DetectLabelsCommand({<br>  Image: { Bytes: imageBuffer },<br>  MaxLabels: 15,<br>  MinConfidence: 60,<br>}));</pre><pre>const labels = (response.Labels || []).map(l =&gt; l.Name?.toLowerCase() || &quot;&quot;);</pre><pre>// Automatic Municipal Routing Map<br>const categoryMap = [<br>  { <br>    match: [&quot;pothole&quot;, &quot;road&quot;, &quot;asphalt&quot;, &quot;puddle&quot;, &quot;crack&quot;, &quot;gaddha&quot;], <br>    category: &quot;Roads / Infrastructure&quot;, <br>    department: &quot;Public Works Department&quot;, <br>    baseUrgency: &quot;Medium&quot; <br>  },<br>  { <br>    match: [&quot;garbage&quot;, &quot;trash&quot;, &quot;waste&quot;, &quot;dump&quot;, &quot;kachra&quot;, &quot;dustbin&quot;], <br>    category: &quot;Sanitation / Garbage&quot;, <br>    department: &quot;Waste Management Authority&quot;, <br>    baseUrgency: &quot;High&quot; <br>  },<br>  { <br>    match: [&quot;electric&quot;, &quot;wire&quot;, &quot;cable&quot;, &quot;pole&quot;, &quot;light&quot;, &quot;bijli&quot;], <br>    category: &quot;Electricity / Streetlights&quot;, <br>    department: &quot;Electrical Maintenance Division&quot;, <br>    baseUrgency: &quot;High&quot; <br>  }<br>];</pre><p>If the citizen writes <em>“too dangerous”</em> or <em>“accident risk”</em>, the urgency algorithm elevates the badge to <strong>🔴 High URGENCY</strong>, immediately prioritizing the ticket on the municipal supervisor’s dashboard.</p><h3>🚀 Real-World Live Testing</h3><p>During live testing on our deployed AWS Amplify domain, I submitted a photo of a waterlogged pothole with the description: <em>“Road pothole which is too dangerous”</em>. Within 3 seconds, the system completed the entire pipeline:</p><ul><li>✅ The photo was saved to Amazon S3.</li><li>✅ Amazon Rekognition detected water and road elements.</li><li>✅ The complaint was classified under <strong>“Roads / Infrastructure”</strong> and routed directly to the <strong>“Public Works Department”</strong>.</li><li>✅ Because the description mentioned danger, the ticket was automatically marked with a <strong>“🔴 High Urgency”</strong> alert.</li><li>✅ The ticket was saved in Amazon DynamoDB and rendered live on the Municipal Dispatch Dashboard.</li></ul><p><strong>Total time: under 3.2 seconds ⚡</strong></p><h3>📈 What’s Next for CivicSense AI</h3><p>Moving forward, we plan to expand the platform with several production features:</p><p><strong>Haversine Distance Calculation:</strong> Automatically capturing GPS coordinates and sorting tickets on field workers’ tablets by driving distance to save fuel and time.</p><p><strong>Before and After Verification:</strong> Requiring municipal workers to upload a photograph of the resolved issue before closing the ticket.</p><p><strong>Automated Archival:</strong> Using DynamoDB Time-To-Live (TTL) to expire two-month-old resolved tickets and move them to cold storage in Amazon S3 for public records and audits.</p><p><strong>Public Transparency Feed:</strong> Allowing citizens to view, confirm, and upvote resolved neighborhood repairs.</p><h3>🏁 Conclusion</h3><p>Building CivicSense AI as a solo builder during this hackathon showed the true power of the AWS ecosystem. Combining <strong>AWS Amplify</strong> for hosting, <strong>Amazon Rekognition and Bedrock</strong> for intelligence, and <strong>DynamoDB</strong> for storage allowed me to turn an idea into a live, deployed civic technology product in less than <strong>16 hours</strong>.</p><ul><li>🐙 <strong>GitHub Repository:</strong> <a href="https://github.com/piyusdev2006/civicsense-ai">https://github.com/piyusdev2006/civicsense-ai</a></li></ul><p><em>Built with ❤️ for Indian Cities during the WeMakeDevs × AWS First Commit Hackathon 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=224213dd17eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Economy Behind Love:]]></title>
            <link>https://codedotdev.medium.com/the-economy-behind-love-e33d78ecc887?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/e33d78ecc887</guid>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 15:26:00 GMT</pubDate>
            <atom:updated>2026-09-21T05:28:36.187Z</atom:updated>
            <content:encoded><![CDATA[<h3>𝗧𝗵𝗲 𝗘𝗰𝗼𝗻𝗼𝗺𝘆 𝗕𝗲𝗵𝗶𝗻𝗱 𝗟𝗼𝘃𝗲: 𝙒𝙝𝙚𝙣 𝙉𝙪𝙢𝙗𝙚𝙧𝙨 𝙀𝙫𝙤𝙡𝙫𝙚, 𝘽𝙪𝙩 𝙈𝙞𝙣𝙙𝙨 𝙎𝙩𝙖𝙣𝙙 𝙎𝙩𝙞𝙡𝙡</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ohBgTj-cCPqY9F88XBOuDg.jpeg" /></figure><p>History is proof that what we romanticize as &quot;love&quot; or &quot;marriage&quot; was historically built not just on emotion, but on land, property, and financial security.</p><p>From ancient civilizations to the dawn of the modern era, economic resources were strictly controlled by men. In that world, a woman aligning herself with a man was not merely a romantic choice—it was a survival strategy. It was her only path to social stability. Man was the ultimate provider, and woman was the lifelong dependent.</p><p>However, the 21st century has brought us face-to-face with a bizarre paradox. We are currently living across two split realities: a &quot;𝗰𝘂𝗹𝘁𝘂𝗿𝗲 𝗼𝗳 𝗻𝘂𝗺𝗯𝗲𝗿𝘀&quot; that has evolved at lightning speed, and a &quot;𝗰𝘂𝗹𝘁𝘂𝗿𝗲 𝗼𝗳 𝘁𝗵𝗶𝗻𝗸𝗶𝗻𝗴&quot; that remains firmly shackled to the past.</p><p>𝗧𝗵𝗲 𝗘𝘃𝗼𝗹𝘂𝘁𝗶𝗼𝗻 𝗼𝗳 𝗡𝘂𝗺𝗯𝗲𝗿𝘀: 𝘈 𝘕𝘦𝘸 𝘌𝘤𝘰𝘯𝘰𝘮𝘪𝘤 𝘙𝘦𝘢𝘭𝘪𝘵𝘺</p><p>The data today tells a completely new story. Women are no longer passive bystanders in the economy; they are financially independent, corporate leaders, entrepreneurs, and property owners. In many households and industries, women are out-earning their male peers. The material reliance on a man for basic survival has effectively vanished.</p><p>Yet, the marital market remains heavily skewed by old blueprints. When a man marries a woman who earns nothing, society labels it &quot;normal&quot; or even &quot;noble&quot; because he is fulfilling his prehistoric role as the provider. But when the tables are turned, the math breaks down. 𝗧𝗵𝗲 𝗿𝗲𝗮𝗹 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻 𝗶𝘀 𝗻𝗼𝘁 𝘄𝗵𝘆 𝗮 𝘄𝗲𝗮𝗹𝘁𝗵𝘆 𝘄𝗼𝗺𝗮𝗻 𝗵𝗲𝘀𝗶𝘁𝗮𝘁𝗲𝘀 𝘁𝗼 𝗺𝗮𝗿𝗿𝘆 𝗮 𝗺𝗮𝗻 𝘄𝗵𝗼 𝗲𝗮𝗿𝗻𝘀 𝗹𝗲𝘀𝘀 𝗼𝗿 𝗻𝗼𝘁𝗵𝗶𝗻𝗴 𝗮𝘁 𝗮𝗹𝗹.<br>𝗧𝗵𝗲 𝗿𝗲𝗮𝗹 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻 𝗶𝘀: 𝗪𝗵𝘆 𝗵𝗮𝘀 𝗼𝘂𝗿 𝗶𝗱𝗲𝗼𝗹𝗼𝗴𝘆 𝘂𝘁𝘁𝗲𝗿𝗹𝘆 𝗳𝗮𝗶𝗹𝗲𝗱 𝘁𝗼 𝗲𝘃𝗼𝗹𝘃𝗲 𝗮𝗹𝗼𝗻𝗴𝘀𝗶𝗱𝗲 𝘁𝗵𝗲𝘀𝗲 𝗲𝗰𝗼𝗻𝗼𝗺𝗶𝗰 𝗿𝗲𝗮𝗹𝗶𝘁𝗶𝗲𝘀?</p><p>𝗦𝘁𝗮𝗴𝗻𝗮𝗻𝘁 𝗜𝗱𝗲𝗼𝗹𝗼𝗴𝘆: 𝘛𝘩𝘦 𝘚𝘶𝘧𝘧𝘰𝘤𝘢𝘵𝘪𝘰𝘯 𝘰𝘧 𝘵𝘩𝘦 𝘔𝘢𝘭𝘦 &quot;𝘋𝘦𝘱𝘦𝘯𝘥𝘦𝘯𝘵&quot;<br>We have upgraded our financial bank accounts, but we are still running on a centuries-old social software. A man’s worth in modern society is still almost exclusively tied to his wallet and his capacity to provide.If the traditional roles flip—if the woman becomes the primary provider and the man becomes the dependent—society reacts with visceral discomfort. Instead of adapting, the collective community socially suffocates the man. He is branded as &quot;lazy,&quot; &quot;unambitious,&quot; or &quot;weak,&quot; while the high-earning woman is often stereotyped as &quot;arrogant&quot; or &quot;domineering.&quot; <br>This immense societal pressure suffocates the relationship from the outside in, forcing both partners to succumb to arbitrary shame.</p><p>𝗧𝗵𝗲 𝗜𝗻𝘁𝗲𝗿𝗻𝗮𝗹 𝗖𝗼𝗻𝘁𝗿𝗮𝗱𝗶𝗰𝘁𝗶𝗼𝗻 𝗼𝗳 𝗠𝗼𝗱𝗲𝗿𝗻 𝗥𝗲𝗹𝗮𝘁𝗶𝗼𝗻𝘀𝗵𝗶𝗽𝘀</p><p>This is the hidden economy behind love. As long as women were economically disenfranchised, the male provider model was a functional necessity. <br>Today, women have broken through financial glass ceilings, yet we continue to weigh men on the exact same ancient scales.&quot;𝘞𝘦 𝘧𝘢𝘪𝘭 𝘵𝘰 𝘢𝘤𝘤𝘦𝘱𝘵 𝘵𝘩𝘢𝘵 𝘴𝘦𝘤𝘶𝘳𝘪𝘵𝘺 𝘪𝘯 𝘢 𝘮𝘰𝘥𝘦𝘳𝘯 𝘳𝘦𝘭𝘢𝘵𝘪𝘰𝘯𝘴𝘩𝘪𝘱 𝘤𝘢𝘯 𝘣𝘦 𝘦𝘮𝘰𝘵𝘪𝘰𝘯𝘢𝘭, 𝘪𝘯𝘵𝘦𝘭𝘭𝘦𝘤𝘵𝘶𝘢𝘭, 𝘢𝘯𝘥 𝘴𝘶𝘱𝘱𝘰𝘳𝘵𝘪𝘷𝘦—𝘯𝘰𝘵 𝘫𝘶𝘴𝘵 𝘧𝘪𝘯𝘢𝘯𝘤𝘪𝘢𝘭. 𝘖𝘶𝘳 𝘣𝘢𝘯𝘬 𝘴𝘵𝘢𝘵𝘦𝘮𝘦𝘯𝘵𝘴 𝘢𝘳𝘦 𝘱𝘳𝘰𝘨𝘳𝘦𝘴𝘴𝘪𝘷𝘦, 𝘣𝘶𝘵 𝘰𝘶𝘳 𝘳𝘦𝘭𝘢𝘵𝘪𝘰𝘯𝘴𝘩𝘪𝘱 𝘦𝘹𝘱𝘦𝘤𝘵𝘢𝘵𝘪𝘰𝘯𝘴 𝘳𝘦𝘮𝘢𝘪𝘯 𝘥𝘦𝘦𝘱𝘭𝘺 𝘧𝘦𝘶𝘥𝘢𝘭&quot;.</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻:</p><p>Aligning the Mind with the Math&quot;The Economy Behind Love&quot; forces us to confront a harsh truth: true progress cannot be measured solely by GDP or female employment rates.Real evolution will not happen simply because women earn more than men. 𝘛𝘳𝘶𝘦 𝘭𝘪𝘣𝘦𝘳𝘢𝘵𝘪𝘰𝘯 𝘸𝘪𝘭𝘭 𝘰𝘤𝘤𝘶𝘳 𝘸𝘩𝘦𝘯 𝘴𝘰𝘤𝘪𝘦𝘵𝘺 𝘴𝘵𝘰𝘱𝘴 𝘴𝘵𝘳𝘪𝘱𝘱𝘪𝘯𝘨 𝘢 𝘮𝘢𝘯 𝘰𝘧 𝘩𝘪𝘴 𝘥𝘪𝘨𝘯𝘪𝘵𝘺 𝘪𝘧 𝘩𝘦 𝘪𝘴𝘯&#39;𝘵 𝘵𝘩𝘦 𝘱𝘳𝘪𝘮𝘢𝘳𝘺 𝘣𝘳𝘦𝘢𝘥𝘸𝘪𝘯𝘯𝘦𝘳, 𝘢𝘯𝘥 𝘴𝘵𝘰𝘱𝘴 𝘮𝘢𝘬𝘪𝘯𝘨 𝘢 𝘴𝘶𝘤𝘤𝘦𝘴𝘴𝘧𝘶𝘭 𝘸𝘰𝘮𝘢𝘯 𝘧𝘦𝘦𝘭 𝘨𝘶𝘪𝘭𝘵𝘺 𝘧𝘰𝘳 𝘭𝘦𝘢𝘥𝘪𝘯𝘨.</p><p>𝗨𝗻𝘁𝗶𝗹 𝗼𝘂𝗿 𝗰𝘂𝗹𝘁𝘂𝗿𝗲 𝗼𝗳 𝘁𝗵𝗶𝗻𝗸𝗶𝗻𝗴 𝗰𝗮𝘁𝗰𝗵𝗲𝘀 𝘂𝗽 𝘄𝗶𝘁𝗵 𝗼𝘂𝗿 𝗰𝘂𝗹𝘁𝘂𝗿𝗲 𝗼𝗳 𝗻𝘂𝗺𝗯𝗲𝗿𝘀, 𝗹𝗼𝘃𝗲 𝗮𝗻𝗱 𝗺𝗮𝗿𝗿𝗶𝗮𝗴𝗲 𝘄𝗶𝗹𝗹 𝗰𝗼𝗻𝘁𝗶𝗻𝘂𝗲 𝘁𝗼 𝗯𝗲 𝗰𝗿𝘂𝘀𝗵𝗲𝗱 𝘂𝗻𝗱𝗲𝗿 𝘁𝗵𝗲 𝘄𝗲𝗶𝗴𝗵𝘁 𝗼𝗳 𝗮𝗻 𝗼𝘂𝘁𝗱𝗮𝘁𝗲𝗱 𝘀𝗼𝗰𝗶𝗲𝘁𝗮𝗹 𝘀𝗰𝗿𝗶𝗽𝘁.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e33d78ecc887" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day07: AWS Terraform Type Constraints Explained (With Real-Time Examples)]]></title>
            <link>https://codedotdev.medium.com/day07-aws-terraform-type-constraints-explained-with-real-time-examples-6d10c621040b?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d10c621040b</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 12:46:18 GMT</pubDate>
            <atom:updated>2025-12-02T12:46:18.378Z</atom:updated>
            <content:encoded><![CDATA[<p>Managing variables effectively is one of the most important skills in Terraform. Today, I focused on understanding <strong>Terraform Type Constraints</strong>, how they work, and how to use them inside AWS resource configurations with real-time practical examples.</p><h3>🔷 What Are Terraform Type Constraints?</h3><p>Terraform variables can hold different types of data. Type constraints tell Terraform <strong>what kind of values a variable is allowed to store</strong>.<br> This ensures accuracy, validation, and structure inside complex IaC projects.</p><p>Terraform categorizes type constraints into two groups:</p><h3>🟦 1. Primitive Types</h3><p>Primitive types store <strong>single values</strong>.</p><h4>✔️ String</h4><pre>variable &quot;channel_name&quot; {<br>  type    = string<br>  default = &quot;codewithpiyush&quot;<br>}</pre><p>Usage:</p><pre>tags = {<br>  Name = var.channel_name<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*MWYodM1PcL60mypw-ors-g.png" /></figure><h4>✔️ Number</h4><pre>variable &quot;instance_count&quot; {<br>  type    = number<br>  default = 1<br>}</pre><p>Used in AWS EC2:</p><pre>count = var.instance_count</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*hXCpcskjxdrZd4-H2R8-ZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*PU83co2p5B-hNx4wgV13vA.png" /></figure><h4>✔️ Boolean</h4><pre>variable &quot;monitoring&quot; {<br>  type    = bool<br>  default = true<br>}</pre><p>Used like:</p><pre>monitoring = var.monitoring</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*y9Euz7LPqJoOCxKOVifcpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*oUN7RTNwyF-CySiYlrXeXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YMKHYW0G5CY07wzBvWrlzA.png" /></figure><h3>🟦 2. Complex Types</h3><p>Complex types store <strong>multiple values</strong> in structured formats.</p><h4>✔️ List (Ordered Collection)</h4><p>Used when values must be indexed using numbers.</p><p>Example: multiple CIDR blocks</p><pre>variable &quot;cidr_block&quot; {<br>  type    = list(string)<br>  default = [&quot;10.0.0.0/8&quot;, &quot;172.16.0.0/12&quot;, &quot;192.168.0.0/16&quot;]<br>}</pre><p>Access:</p><pre>cidr_ipv4 = var.cidr_block[0]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*y49_ISW1_UhmXPhXxBReEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*hLBUh2fAJTIO3kM84BeJkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*y3_TimGNP3BLdT6B-rMezQ.png" /></figure><p>Real-time use case: <strong>adding multiple security group rules</strong>.</p><h4>✔️ Set (Unique Values Only)</h4><p>Similar to lists, but <strong>no duplicate values allowed</strong>.</p><pre>variable &quot;available_regions&quot; {<br>  type    = set(string)<br>  default = [&quot;us-east-1&quot;, &quot;us-west-1&quot;]<br>}</pre><p>To access elements, convert to list:</p><pre>region = tolist(var.available_regions)[0]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*SVe_mwiPIAfugnsE-XsTEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*ByB8JYQ6SmOxzqpf17llqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*r9KVeH8yI0g0n-1DB7bjrw.png" /></figure><h4>✔️ Map (Key-Value Pair)</h4><p>Best for tags and properties shared across resources.</p><pre>variable &quot;tags&quot; {<br>  type = map(string)<br>  default = {<br>    Environment = &quot;dev&quot;<br>    CreatedBy   = &quot;terraform&quot;<br>    Name        = &quot;EC2-Instance&quot;<br>  }<br>}</pre><p>Usage:</p><pre>tags = var.tags</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*sYsHRZxNwvx3kwtkyNyh0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkRBjPcawJi8vqdFCve-1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*rEv7TAuvOc3LjqEmJqY12Q.png" /></figure><h4>✔️ Tuple (Ordered, Mixed Datatypes)</h4><p>Tuples contain values of <strong>different datatypes</strong>.</p><pre>variable &quot;ingress_values&quot; {<br>  type    = tuple([number, string, number])<br>  default = [443, &quot;tcp&quot;, 443]<br>}</pre><p>Access:</p><pre>from_port   = var.ingress_values[0]<br>ip_protocol = var.ingress_values[1]<br>to_port     = var.ingress_values[2]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*l9Mn-tk0BgBau5rAX-jvSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*sWb1JZlcqe6lRbOliSFFeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*hFfXPBOM_603NkgZEX51SA.png" /></figure><h3>✔️ Object (Structured Map of Typed Attributes)</h3><p>Used for grouping related configuration values.</p><pre>variable &quot;config&quot; {<br>  type = object({<br>    region        = string<br>    monitoring    = bool<br>    instance_count = number<br>  })<br>default = {<br>    region        = &quot;us-east-1&quot;<br>    monitoring    = true<br>    instance_count = 1<br>  }<br>}</pre><p>Use:</p><pre>region        = var.config.region<br>monitoring    = var.config.monitoring<br>instance_count = var.config.instance_count</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*9jSw3dEboYLgJE8Quav_9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*OIA7Wxx2aj1q2NAdB3TW-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*r9KVeH8yI0g0n-1DB7bjrw.png" /></figure><h3>🛠️ Real-Time Terraform Example Using All Types</h3><p>In today’s project, I created separate variables for each type and used them inside main.tf to configure:</p><ul><li>AWS S3 bucket</li><li>AWS VPC</li><li>Security Groups</li><li>Ingress/Egress rules</li></ul><p>This made the configuration clean, reusable, and scalable.</p><h3>🎯 Key Learnings</h3><p>✔️ Primitive types handle single values<br> ✔️ Complex types help manage collections &amp; structures<br> ✔️ Type constraints prevent wrong data types<br> ✔️ Terraform fails early when wrong types are passed<br> ✔️ Objects &amp; Maps are perfect for grouping resource configuration<br> ✔️ Lists, sets, and tuples allow advanced provisioning patterns</p><h3>📌 Conclusion</h3><p>Type constraints are essential to writing production-grade Terraform code.<br> They add clarity, validation, and predictable behavior across multiple AWS resources.</p><p>Understanding these types makes your IaC predictable, modular, and easier to maintain — especially in large AWS environments.</p><h3>Today session Notes:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*lRUbAU4_4MymB4-oWbs63Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*YIeMEl7y3oYvecPrUA7jQw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*2LUeD5g4iOae4ZBkvQaRqw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*HMaUI3q97GnGiqo5TiWHHQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*VoAD6IgIIG2KfklN7XNJPA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*1wBSOqD4d1Eubk4hlz9ctg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*wgZUlo6sO9sz9d-ptwkj_Q.jpeg" /></figure><h3>Here’s the attached video for today session:</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fgu2oCJ9DQiQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dgu2oCJ9DQiQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fgu2oCJ9DQiQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b3e31fa50501abddef48af455751c9b/href">https://medium.com/media/7b3e31fa50501abddef48af455751c9b/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d10c621040b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 06: AWS Terraform Project Structure Best Practices]]></title>
            <link>https://codedotdev.medium.com/day-06-30-aws-terraform-project-structure-best-practices-80d327646de0?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/80d327646de0</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Mon, 01 Dec 2025 16:03:42 GMT</pubDate>
            <atom:updated>2025-12-01T16:52:13.048Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with Terraform, one of the biggest shifts in becoming <em>production-ready</em> is learning how to <strong>organize your project structure</strong>. As your infrastructure grows, a single main.tf file quickly becomes unmanageable. That’s why today’s session focused on learning and implementing <strong>Terraform project structuring best practices.</strong></p><h3>🌲 Why Project Structure Matters</h3><p>A clean Terraform layout:</p><ul><li>Makes your code easy to read</li><li>Helps collaboration in teams</li><li>Avoids configuration mistakes</li><li>Supports scaling into modules</li><li>Keeps sensitive values safe</li></ul><p>Today, I reorganized everything into a professional folder layout that follows industry standards.</p><h3>📁 Recommended Terraform Project Structure</h3><p>Below is the structure I created inside my root module <strong>terraform-project/</strong>, inspired by HashiCorp best practices:</p><pre>terraform-project/<br>├── backend.tf           # Remote backend configuration (S3, DynamoDB)<br>├── variables.tf         # All input variables<br>├── main.tf              # Resource definitions (S3, VPC, etc.)<br>├── locals.tf            # Local computed variables<br>├── providers.tf         # AWS provider + version constraints<br>├── output.tf            # What to display after terraform apply<br>├── terraform.tfvars     # Actual variable values (NOT pushed to Git)<br>├── terraform.tfvars.example # Template for others (Safe for Git)<br>├── .gitignore           # Ignore .terraform/, tfvars, lock files<br>└── README.md            # Documentation for the project</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*uGLfw1epmGTNQdh7PtvdAg.jpeg" /></figure><h3>🧩 Breakdown of Each File</h3><h3>1️⃣ main.tf</h3><p>Holds all the actual AWS resources such as S3 buckets and VPCs.</p><p>Example:</p><pre>resource &quot;aws_s3_bucket&quot; &quot;first_bucket&quot; {<br>  bucket = local.bucket_name<br>  <br>  tags = {<br>    Name        = local.bucket_name<br>    Environment = var.environment<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*jIF8445RTVXpiZiDoaF2nA.png" /></figure><h3>2️⃣ variables.tf</h3><p>Stores all input variables.</p><pre>variable &quot;environment&quot; {<br>  default = &quot;dev&quot;<br>  type    = string<br>}<br><br>variable &quot;channel_name&quot; {<br>  default = &quot;codewithpiyush&quot;<br>}<br><br>variable &quot;region&quot; {<br>  default = &quot;us-east-1&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*EQLhi8mfDjELxphHXkH1ZA.png" /></figure><h3>3️⃣ locals.tf</h3><p>Locals help generate computed values dynamically.</p><pre>locals {<br>  bucket_name = &quot;${var.channel_name}-bucket-${var.environment}-${var.region}&quot;<br>  vpc_name    = &quot;${var.environment}-VPC&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*JkrKalf62go7L2-CJHwm6w.png" /></figure><h3>4️⃣ providers.tf</h3><p>Defines AWS provider and version constraints.</p><pre>terraform {<br>  required_providers {<br>    aws = {<br>      source  = &quot;hashicorp/aws&quot;<br>      version = &quot;~&gt; 6.0&quot;<br>    }<br>  }<br>}<br><br>provider &quot;aws&quot; {<br>  region = var.region<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*PlFcbA3dmMPU6Tjp01_VQw.png" /></figure><h3>5️⃣ backend.tf</h3><p>Defines remote state backend (in this case, S3).</p><pre>terraform {<br>  backend &quot;s3&quot; {<br>    bucket         = &quot;codewithpiyush-terraform-bucket-123456-state&quot;<br>    key            = &quot;dev/terraform.tfstate&quot;<br>    region         = &quot;us-east-1&quot;<br>    encrypt        = true<br>    use_lockfile   = true<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*c56MaKUaZfxBkYOpLcFdAw.png" /></figure><h3>6️⃣ output.tf</h3><p>Shows important values after deployment:</p><pre>output &quot;vpc_id&quot; {<br>  value = aws_vpc.sample.id<br>}<br><br>output &quot;bucket_name&quot; {<br>  value = aws_s3_bucket.first_bucket.bucket<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*GpAOE7sD8sQUEL5XwjETJQ.png" /></figure><h3>7️⃣ terraform.tfvars</h3><p>Actual environment-specific values.<br> (Not committed to Git)</p><h3>8️⃣ terraform.tfvars.example</h3><p>Used by teams so they know what variables they must provide.</p><h3>9️⃣ .gitignore</h3><p>Ensures no sensitive or unnecessary generated files go into Git.</p><p>Typical entries:</p><pre>.terraform/<br>.terraform.lock.hcl<br>.terraform.tfstate<br>.terraform.tfstate.backup<br>.terraform.tfvars<br>*.tfstate<br>*.tfstate.*<br>*.tfvars<br>*.tfvars.json<br>crash.log</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*MmbqgzactNnf5e-xNeH3kg.png" /></figure><h3>🚀 Key Takeaways from Day 06</h3><ul><li>Learned recommended Terraform project structure</li><li>Split resources into logical files instead of one large main.tf</li><li>Implemented backend separation (remote state storage)</li><li>Organized variables, outputs, locals, and providers</li><li>Created .gitignore and terraform.tfvars.example for safe collaboration</li><li>Achieved a clean, scalable professional Terraform root module.</li></ul><h3>Here’s the video attached for Day06:</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQMsJholPkDY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQMsJholPkDY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQMsJholPkDY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/defa4d9e3cdc0825c3fd333865aa7645/href">https://medium.com/media/defa4d9e3cdc0825c3fd333865aa7645/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80d327646de0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day05: Terraform Variables in AWS — Input vs Output vs Local Variables (Complete Hands-On Guide)]]></title>
            <link>https://codedotdev.medium.com/day05-terraform-variables-in-aws-input-vs-output-vs-local-variables-complete-hands-on-guide-55a52809749f?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/55a52809749f</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 05:29:02 GMT</pubDate>
            <atom:updated>2025-11-30T05:29:02.315Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day05: Terraform Variables in AWS — Input vs Output vs Local Variables (Complete Hands-On Guide)</h3><p>Today’s Terraform session was focused entirely on <strong>Variables</strong> — one of the foundational building blocks of reusable and scalable Infrastructure as Code.</p><p>We didn’t just learn the theory — we implemented <strong>Input Variables</strong>, <strong>Output Variables</strong>, and <strong>Local Variables</strong> inside an actual Terraform script and observed how Terraform responds when these values are changed, overridden, or passed in different ways.</p><p>This day helped me understand how to remove hard-coded values, how to reuse configurations efficiently, and how Terraform manages variable precedence.</p><h3>🔧 What Are Variables in Terraform?</h3><p>Terraform variables allow you to:</p><ul><li><strong>Parameterize</strong> your infrastructure</li><li>Avoid repeating values</li><li>Manage environments (dev, staging, prod)</li><li>Dynamically compute values</li><li>Output important resource details</li></ul><p>Terraform supports three core variable types:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*MCh2yXTSK3xvnVsFphVFjQ.jpeg" /></figure><h3>🎯 1. Input Variables (var.)</h3><p>These are values you <em>provide</em> to Terraform.<br> They work like <strong>function parameters</strong>.</p><h3>Example:</h3><pre>variable &quot;environment&quot; {<br>  description = &quot;Environment name&quot;<br>  type        = string<br>  default     = &quot;dev&quot;<br>}</pre><h3>Usage:</h3><pre>Environment = var.environment</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*MOPkexBS-E3bMPEMA-8XCw.jpeg" /></figure><h4>Why we need Input Variables:</h4><ul><li>Avoid writing repeated values (env names, CIDR blocks, tags, names)</li><li>Configure dev/stage/prod from the same script</li><li>Pass values dynamically from CLI, tfvars, or environment</li></ul><h3>🎯 2. Local Variables (local.)</h3><p>Locals store <em>intermediate computed values</em> — like variables inside programming languages.</p><h3>Example:</h3><pre>locals {<br>  env_tags = {<br>    Environment = var.environment<br>    Name        = &quot;${var.environment}-vpc&quot;<br>  }<br>}</pre><h4>Used as:</h4><pre>tags = local.env_tags</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*JYbdlNSQYjTVuIF9mVsqWQ.jpeg" /></figure><h3>Why locals?</h3><ul><li>Avoid repeating the same value across resources</li><li>Build computed strings (bucket names, resource names)</li><li>Centralize logic in one place</li></ul><h3>🎯 3. Output Variables (output)</h3><p>Outputs return values after infrastructure is created — like <strong>function return values</strong>.</p><h3>Example:</h3><pre>output &quot;bucket_name&quot; {<br>  value = aws_s3_bucket.first_bucket.bucket<br>}</pre><h4>Run:</h4><pre>terraform output</pre><p>Outputs help us pass values to:</p><ul><li>Users</li><li>Other Terraform modules</li><li>CI/CD pipelines</li></ul><h3>🧪 Hands-On Practice Done Today</h3><p>I created multiple AWS resources (S3 bucket, VPC) and used:</p><h4>✔ Input variables</h4><p>To parameterize:</p><ul><li>bucket_name</li><li>environment</li><li>CIDR block</li><li>tags</li></ul><h4>✔ Local variables</h4><p>To generate dynamic names and combine tags</p><h4>✔ Output variables</h4><p>To print:</p><ul><li>bucket name</li><li>VPC ID</li><li>Environment value</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*hwz8hQfrdkHiSnheLD0b4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*efVC8XruZIslzo7HSnf_jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*i5STRJ-pf-n96w6wE79YbQ.png" /></figure><h3>🔥 Variable Precedence — What Terraform Uses First?</h3><p>Terraform loads variables in this order (highest priority → lowest):</p><p>1️⃣ <strong>Command line override</strong></p><pre>terraform plan -var=&quot;environment=prod&quot;</pre><p>2️⃣ <strong>.tfvars files</strong></p><pre>terraform plan -var-file=&quot;prod.tfvars&quot;</pre><p>3️⃣ <strong>Environment variables</strong></p><pre>export TF_VAR_environment=&quot;stage&quot;</pre><p>4️⃣ <strong>Default values inside variables.tf</strong></p><p>We tested all four ways and observed Terraform switching environments accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*NAeH_VF-mfXu2PX9LeUowA.jpeg" /></figure><h3>📤 Viewing Outputs</h3><p>After deploying:</p><pre>terraform output<br>terraform output bucket_name</pre><p>Outputs displayed:</p><ul><li>Bucket name</li><li>VPC ID</li><li>Environment used</li><li>Tags from local variable</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*xHm4gPckIL1ah68SirSAFA.jpeg" /></figure><h3>🏁 Key Takeaways Today</h3><ul><li>Input variables → take user-defined values</li><li>Local variables → compute reusable logic inside Terraform</li><li>Output variables → return useful resource details</li><li>Variable precedence determines which value Terraform picks</li><li>Variables help remove hardcoding and make IaC scalable</li></ul><h3><strong>Here’s the video attached for today session:</strong></h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FV-2yC39BONc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DV-2yC39BONc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FV-2yC39BONc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab25df9c95fed81b13936ee1b633902e/href">https://medium.com/media/ab25df9c95fed81b13936ee1b633902e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55a52809749f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day03: Terraform State File Management with AWS S3 (Remote Backend)]]></title>
            <link>https://codedotdev.medium.com/day03-terraform-state-file-management-with-aws-s3-remote-backend-ee62391e7741?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee62391e7741</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Fri, 28 Nov 2025 16:14:39 GMT</pubDate>
            <atom:updated>2025-12-01T16:56:45.318Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day04: Terraform State File Management with AWS S3 (Remote Backend)</h3><p><em>How Terraform Updates Infra + Why .tfstate Is Critical + Remote Backend Setup</em></p><p>Today’s session was fully focused on one of the most important concepts in Terraform — <strong>the state file</strong> and <strong>remote state management using AWS S3</strong>.<br> Most learners skip or misunderstand this part, but it is the backbone of how Terraform works behind the scenes.</p><p>Let’s break down everything I learned on <strong>Day 04</strong>.</p><h3>🔍 1. Understanding How Terraform Updates Infrastructure</h3><p>Terraform does not directly interact with AWS every time you run a command.<br> Instead, it uses a file called:</p><pre>terraform.tfstate</pre><p>This file contains the <em>current state</em> of your infrastructure.<br> Terraform compares:</p><ul><li><strong>Desired State</strong> → defined in .tf files</li><li><strong>Actual State</strong> → fetched from your cloud provider</li></ul><p>Whenever these differ, Terraform plans and applies the necessary changes to sync them.</p><h3>🆚 2. Desired State vs Actual Environment</h3><h3>Desired State</h3><p>The infrastructure written in your Terraform configuration.<br> Example: S3 bucket, VPC, EC2 instance, IAM roles.</p><h3>Actual State</h3><p>The real environment in AWS at the moment.</p><p>Terraform makes <strong>Actual State = Desired State</strong> by using the .tfstate file as the single source of truth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*JDtzpXyoPwyUCbEgEEaaHQ.jpeg" /></figure><h3>📁 3. Importance of the .tfstate File</h3><p>The .tfstate file stores key information such as:</p><ul><li>Resource IDs</li><li>Configuration metadata</li><li>Dependencies</li><li>Attributes and outputs</li></ul><p>Terraform relies on it to understand what already exists and what needs to change.</p><p>Any corruption, deletion, or manual modification of this file can break the entire infrastructure workflow.</p><h3>⚠️ 4. Why .tfstate Should Not Be Stored Locally</h3><p>Local state storage is not recommended for several reasons:</p><ul><li>Contains sensitive information</li><li>Risk of accidental deletion or corruption</li><li>No collaboration support</li><li>Breaks consistency when using multiple machines</li><li>Cannot be tracked or versioned properly</li></ul><p>Hence, it must be stored in a <strong>Remote Backend</strong>.</p><h3>☁️ 5. Remote State Backends — Best Practice for Teams</h3><p>A remote backend stores the state file in a secure, centralized location.<br> Popular remote backend options:</p><ul><li>AWS S3</li><li>Azure Blob Storage</li><li>GCP Cloud Storage</li></ul><h3>Benefits:</h3><p>✔ Team collaboration<br> ✔ State locking<br> ✔ Automatic versioning<br> ✔ High durability<br> ✔ No accidental local corruption</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*XeT7i9ZVlH93p6T_sV-oLA.jpeg" /></figure><h3>🛠️ 6. Configuring S3 Remote Backend in Terraform</h3><p>Using AWS S3 as a backend ensures secure and scalable state management.</p><p>Below is the configuration added to my main.tf:</p><pre>terraform {<br>  backend &quot;s3&quot; {<br>    bucket         = &quot;codewithpiyush-terraform-bucket-123456&quot;<br>    key            = &quot;dev/terraform.tfstate&quot;<br>    region         = &quot;us-east-1&quot;<br>    encrypt        = true<br>    use_lockfiles  = true<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*aAqYNgs4dH2Im3qAJdAPeQ.png" /></figure><h3>Key Components:</h3><ul><li><strong>bucket</strong> → S3 bucket hosting the state file</li><li><strong>key</strong> → path inside the bucket</li><li><strong>encrypt</strong> → enables encryption at rest</li><li><strong>dynamodb_table</strong> → ensures state locking</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*sAHZTYXpui49uPJcu913NQ.jpeg" /></figure><h3>📌 Before Running terraform init</h3><p>You <strong>must</strong> manually create the S3 bucket that will host the state file.</p><p>Why?<br> Because Terraform cannot store state into a bucket that doesn’t exist yet.</p><p>You can create it using:</p><ul><li>AWS CLI</li><li>Console</li><li>Pipeline/script</li></ul><h3>▶️ 7. Running Terraform Commands After Backend Setup</h3><h4>terraform init</h4><ul><li>Configures the remote backend</li><li>Creates a lock file</li><li>Connects Terraform to AWS S3</li></ul><h4>terraform validate</h4><ul><li>Validates the configuration and syntax</li></ul><h4>terraform plan</h4><ul><li>Shows execution changes required to match desired state</li></ul><h4>terraform apply</h4><ul><li>Applies the changes and updates the state file in S3</li></ul><p>After setting up the backend, the .tfstate file is no longer generated locally — only minimal metadata remains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*t4-88RG5B874xsPb9kSFEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*5pfZjv0K7OPllHpQY9wczA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*fHAai5g3mvaanRpBsmOwaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*INxMYg_sknkd2C_1b3WQ0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_DGX6PBPY6UHHR956ghZ0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*biuqfZjF5R5fSC5IFy_6BQ.png" /></figure><h3>🧪 8. Terraform State Commands I Explored</h3><h4>✔ terraform state list</h4><p>Shows all resources tracked in the state file.</p><p>Example:</p><pre>terraform state list</pre><p>Output:</p><pre>aws_s3_bucket.first_bucket</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*RXZw-93LWWJyTv-ex1u34Q.png" /></figure><h4>✔ terraform state show &lt;resource-name&gt;</h4><p>Displays detailed state info of a resource.</p><p>Example:</p><pre>terraform state show aws_s3_bucket.first_bucket</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvamkabFZB8yktRoqzsSIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*WmwboJXMzRdTUxy8MiQl6g.png" /></figure><h4>✔ terraform state pull</h4><p>Fetches state in JSON format.</p><p>Example:</p><pre>terraform state pull</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdJ9Eso0T9X35kMXUCPY-g.png" /></figure><h4>✔ terraform state rm &lt;resource&gt;</h4><p>Removes a resource <strong>from the state file only</strong><br> (does NOT delete it from AWS)</p><pre>terraform state rm aws_s3_bucket.renamed_bucket</pre><h4>✔ terraform state mv &lt;src&gt; &lt;dest&gt;</h4><p>Moves/renames resource inside the state file.</p><p>Example:</p><pre>terraform state mv aws_s3_bucket.first_bucket aws_s3_bucket.main_bucket</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZPbGA-CK_nLi6cPolFAkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*YJvQ7UtdCgex5hMxwIdJGw.png" /></figure><h3>🏁 Summary</h3><p>Today’s session reinforced why professional Terraform workflows rely heavily on remote state management.</p><p><strong>Key takeaways:</strong></p><ul><li>Terraform uses the state file as the central truth of your infrastructure</li><li>Remote backends like AWS S3 provide reliability and collaboration</li><li>State locking prevents race conditions in team environments</li><li>Terraform commands behave differently once a remote backend is configured</li></ul><p>Overall, this was a foundational step toward managing Terraform at scale.</p><h3>Here’s the video attached for today session:</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYsEdrl9O5os%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYsEdrl9O5os&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYsEdrl9O5os%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd314990558058f92942d30e3972735e/href">https://medium.com/media/bd314990558058f92942d30e3972735e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee62391e7741" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day-03: Creating an AWS S3 Bucket Using Terraform (Resource Provisioning)]]></title>
            <link>https://codedotdev.medium.com/terraform-day-03-creating-an-aws-s3-bucket-using-terraform-resource-provisioning-6de17fd31744?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/6de17fd31744</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 15:47:51 GMT</pubDate>
            <atom:updated>2025-12-01T16:56:04.187Z</atom:updated>
            <content:encoded><![CDATA[<p>Today marks <strong>Day 03</strong> of my Terraform learning journey, and the focus was on one of the most essential tasks in cloud infrastructure: <strong>creating AWS resources using Terraform</strong>.<br> To make the learning hands-on, I created an <strong>AWS S3 Bucket</strong> from scratch using Terraform and explored how Terraform handles updates, changes, and resource destruction.</p><h3>🌱 <strong>What I Learned Today</strong></h3><h3>1️⃣ Writing Provider Configuration + S3 Resource Block</h3><p>I started by defining the <strong>Terraform provider</strong> and creating my first full resource configuration.<br> The main.tf file included:</p><ul><li>Terraform required provider block</li><li>AWS provider configuration</li><li>Resource block to create an <strong>S3 bucket</strong></li><li>Tags for metadata</li></ul><p>Example used in today’s practice:</p><pre>terraform {<br>  required_providers {<br>    aws = {<br>      source  = &quot;hashicorp/aws&quot;<br>      version = &quot;~&gt; 6.0&quot;<br>    }<br>  }<br>}<br><br>provider &quot;aws&quot; {<br>  region = &quot;us-east-1&quot;<br>}<br><br>resource &quot;aws_s3_bucket&quot; &quot;first_bucket&quot; {<br>  bucket = &quot;codewithpiyush-terraform-bucket-123456&quot;<br><br>  tags = {<br>    Name        = &quot;My bucket&quot;<br>    Environment = &quot;Dev&quot;<br>  }<br>}<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*ZHlJX0EH_tGBQQ_DaZMThg.png" /></figure><h3>2️⃣ Running All Major Terraform Commands</h3><p>Today, I explored how Terraform commands interact with the provider and the AWS environment:</p><h4>✔ terraform init</h4><p>Initializes the working directory and downloads the AWS provider plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*qSwv1sZGT7KL2P-mZWc_fQ.png" /></figure><h4>✔ terraform validate</h4><p>Validates HCL syntax and configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*76N-ZDB7V2QjCeSacQwI-g.png" /></figure><h4>✔ terraform plan</h4><p>Shows what Terraform will create → the execution plan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sRCf6tW5kioLtK3NVTFN8A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*KDJ7TLPEoNIiJpkq5YK8tA.png" /></figure><h4>✔ terraform apply</h4><p>Actually provisions the S3 bucket in AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*P3eSnvbBDpEgAbHOqVnYHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9auU6cyVp4qi2i63co64nA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*6S-TPaJDDR9mLR4zQOCr1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9hKZvtYLOfpzjxXftc6_qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*H8TiOb9LZkprhNzDAVlzvg.png" /></figure><h4>✔ terraform destroy</h4><p>Cleanly deletes the created resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yNRTj7j3Vg5X5t_QBhTKgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x4iHdCpVr1zsUpIDWQWefA.png" /></figure><p>These commands form the complete lifecycle of Terraform resource management.</p><h3>3️⃣ Updating Terraform Configuration &amp; Re-Applying</h3><p>I modified the bucket tag &quot;Name&quot; from &quot;My bucket&quot; → &quot;My bucket 2.0&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*1CYl3WPaKD6pwTA874iJ_A.png" /><figcaption>Bucket Name Modified</figcaption></figure><p>After running:</p><pre>terraform plan<br>terraform apply</pre><p>Terraform detected the change and updated the S3 bucket configuration accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKi9TM1JVWpwtivrFRxAEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BkNKO98cBWnfCGTbSBZCSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*snJO8-s4evH2neiWkWpYcg.png" /></figure><p>This was my first experience with <strong>in-place resource modification</strong> using Terraform.</p><h3>4️⃣ How Terraform Tracks Changes (State File Concept)</h3><p>A very important concept learned today:</p><h3>🟦 Terraform tracks infrastructure using a State File (terraform.tfstate)</h3><ul><li>It stores the current state of resources created.</li><li>Terraform compares <strong>actual resource state</strong> with the <strong>configuration file</strong>.</li><li>Based on this comparison, Terraform decides whether to</li><li>create,</li><li>update, or</li><li>destroy resources.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*T8Z4CS4guOenzl3cJ75AIw.png" /></figure><p>This is how Terraform always ensures <strong>desired state = actual cloud environment</strong>.</p><h3>🧩 Terraform Resource Lifecycle (Today’s Practical Flow)</h3><ol><li>Write the resource block</li><li>Run init → install provider</li><li>Run validate → syntax check</li><li>Run plan → preview actions</li><li>Run apply → create bucket</li><li>Modify config → run apply again</li><li>Run destroy → delete bucket</li></ol><p>This simple workflow forms the backbone of Terraform automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*FIqCdylnXkD_c__feLplFQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IhA_WvBZcDmQ7k5Zw93IgA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*Es2227VYIqYdy64VvPF8NQ.jpeg" /></figure><h3>📌 Hands-on Output Today</h3><ul><li>Initialization success</li><li>Valid configuration</li><li>Execution plan</li><li>Resource creation</li><li>Resource modification</li><li>Resource destruction</li><li>VS Code view of final .tf file</li><li>Hand-written notes diagram</li></ul><h3>🚀 Conclusion</h3><p>Day-03 gave me a solid understanding of <strong>how Terraform provisions cloud resources</strong>, how it handles updates, and how state management ensures consistent deployments. Creating an S3 bucket from scratch was the perfect practical exercise to connect all concepts.</p><h3><strong>Here’s the video attached :</strong></h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F09HQ_R1P7Lw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D09HQ_R1P7Lw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F09HQ_R1P7Lw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8883f98202f3a3a65fb6c392df57fdcc/href">https://medium.com/media/8883f98202f3a3a65fb6c392df57fdcc/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6de17fd31744" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terraform Day 02 — Understanding Providers, Writing My First Script & Deploying AWS Resources]]></title>
            <link>https://codedotdev.medium.com/terraform-day-02-understanding-providers-writing-my-first-script-deploying-aws-resources-ef9072910f82?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef9072910f82</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 10:36:33 GMT</pubDate>
            <atom:updated>2025-11-26T10:36:33.402Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Terraform Day 02 — Understanding Providers, Writing My First Script &amp; Deploying AWS Resources</strong></h3><h3>🌱 Introduction</h3><p>Today was an exciting step forward in my Terraform journey. After learning the fundamentals of Infrastructure as Code on Day 01, Day 02 was all about <strong>Terraform Providers</strong>, <strong>writing my first Terraform script</strong>, configuring <strong>AWS CLI</strong>, and running the full Terraform workflow — from init → validate → plan.</p><p>In this blog, I’ll walk through everything I learned and practiced today, including code snippets, theory, and execution flow.</p><h3>🚀 1. Installed Terraform &amp; Verified Installation</h3><p>I began by installing Terraform correctly on my system. After installation, I verified it using:</p><pre>terraform -version</pre><p>This helped confirm that my environment was set up correctly and ready for Day 02 tasks.</p><h3>📘 2. Learned Terraform Providers (Theory + Notes)</h3><p>Terraform Providers are the <strong>bridge between Terraform and real cloud platforms</strong> like AWS, Azure, GCP, Kubernetes, Docker, etc.</p><h3>📌 What is a Provider?</h3><p>A provider is basically a <strong>plugin</strong> that allows Terraform to interact with cloud services and APIs.</p><p>Terraform code (HCL) → Provider → Cloud Provider API → Resource Creation</p><p>You choose the provider inside required_providers block and configure it using the provider block.</p><h3>📌 Simple Provider Flow Diagram</h3><pre>      Terraform Code (.tf)<br>              |<br>              v<br>+----------------------------+<br>| Terraform Provider Plugin  |<br>| (AWS, Azure, GCP, etc.)    |<br>+-------------+--------------+<br>              |<br>              v<br>       Cloud Provider API<br>              |<br>              v<br>     Infrastructure Created</pre><h3>📌 Things I learned about providers today:</h3><ul><li>Terraform Providers have their <strong>own versions</strong></li><li>Terraform itself also has a <strong>core version</strong></li><li>Provider versions are maintained by <strong>cloud providers or third parties</strong></li><li>Terraform binary version is maintained by <strong>HashiCorp</strong></li><li>Version constraints can be applied using operators:</li><li>= exact version</li><li>!= exclude version</li><li>&gt;=, &lt;=, &gt;, &lt; for compatible version</li><li>~&gt; stable minor/patch upgrades</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*JLfZrfzX8mKgBMRcl8uh6A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*2OcHGm1QzNx4Yn_f-HJ-Jg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*8DceAKM5KGNiGVxyCS-TMQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*nq8XtlUBQVjUwcaPsRFjbA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*_zmlKjp5F4HLw7Toa4A2xQ.jpeg" /></figure><h3>🏗️ 3. Created My First Terraform Script (main.tf)</h3><p>Today I wrote my first practical Terraform script.<br> This script:</p><ul><li>Configures AWS Provider</li><li>Creates a VPC in us-east-1</li><li>Uses provider version ~&gt; 6.0</li></ul><h3>📌 main.tf (First Script)</h3><pre>terraform {<br>  required_providers {<br>    aws = {<br>      source  = &quot;hashicorp/aws&quot;<br>      version = &quot;~&gt; 6.0&quot;<br>    }<br>  }<br>}<br><br># Configure AWS Provider<br>provider &quot;aws&quot; {<br>  region = &quot;us-east-1&quot;<br>}<br><br># Create a VPC<br>resource &quot;aws_vpc&quot; &quot;example&quot; {<br>  cidr_block = &quot;10.0.0.0/16&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*wUqYJksDyNEJI_1ASqLLSA.png" /></figure><h3>⚙️ 4. Executed terraform init</h3><p>This command initializes:</p><ul><li>Backend</li><li>Provider plugins</li><li>Dependency lock file</li></ul><pre>terraform init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*j9Y84KhAhXh3kIeWOQUdLw.png" /></figure><p>It downloaded the AWS provider plugin and prepared my working directory.</p><h3>🔍 <strong>5. Executed </strong><strong>terraform validate</strong></h3><pre>terraform validate</pre><p>This checks syntax, formatting, and correctness of .tf files.<br> My configuration was valid!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*rrfp9Z23wMJFhTMFBVy93Q.png" /></figure><h3>🌩️ 6. Installed AWS CLI &amp; Configured Credentials</h3><p>Before deploying anything, Terraform needs access to AWS.</p><h3>Steps I followed:</h3><h4>1️⃣ Installed AWS CLI (Official Docs)</h4><p>After installation:</p><pre>aws --version</pre><h4>2️⃣ Configured AWS Credentials</h4><p>I created an <strong>IAM user</strong> with programmatic access:</p><ul><li>access_key</li><li>secret_access_key</li><li>region</li></ul><p>Then I configured AWS CLI:</p><pre>aws configure</pre><p>This stored my credentials in:</p><pre>~/.aws/credentials</pre><p>Terraform uses these credentials internally via the AWS provider plugin.</p><h3>📊 7. Executed terraform plan — First AWS Resource Plan</h3><p>This command showed the <strong>execution plan</strong>, listing resources Terraform will create.</p><pre>terraform plan</pre><p>Terraform detected:</p><ul><li>1 resource to add</li><li>VPC details</li><li>All computed attributes (after apply)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*geQrZjMgSQLmd7mP_a9HIw.png" /></figure><h3>🎉 Conclusion — A Solid Day 02!</h3><p>Today I successfully learned:</p><ul><li>How Terraform Providers work</li><li>Why provider versions matter</li><li>Created my first Terraform script</li><li>Installed / configured AWS CLI</li><li>Authenticated Terraform with AWS</li><li>Ran terraform init, validate, and plan</li><li>Verified infrastructure execution plan</li></ul><h3>Here is the Video Lecture You can go through :</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJFiMmaktnuM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJFiMmaktnuM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJFiMmaktnuM%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/10183e38681357da957673dfa50e3aea/href">https://medium.com/media/10183e38681357da957673dfa50e3aea/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef9072910f82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Terraform and Infrastructure as Code (IaC)]]></title>
            <link>https://codedotdev.medium.com/a-beginners-guide-to-terraform-and-infrastructure-as-code-iac-abd13becd173?source=rss-10b8a07aef25------2</link>
            <guid isPermaLink="false">https://medium.com/p/abd13becd173</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Naveen Singh]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 18:47:54 GMT</pubDate>
            <atom:updated>2025-11-26T10:50:49.536Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>🌩️ Introduction</strong></h3><p>Managing cloud infrastructure manually can quickly become messy — different environments, inconsistent configurations, and hours of repetitive work. Infrastructure as Code (IaC) solves this problem by letting us <strong>manage servers, networks, and cloud services using code</strong>.</p><p>In this beginner-friendly guide, you’ll understand what IaC is, why Terraform is the most popular IaC tool today, and how Terraform works behind the scenes.</p><h3>🧩<strong> What is Infrastructure as Code (IaC)?</strong></h3><p>IaC means <strong>provisioning and managing infrastructure through code instead of clicking around cloud dashboards</strong>.</p><p>✨ <strong>Benefits of IaC</strong></p><ul><li><strong>Consistency:</strong> Same configuration in Dev, Staging, and Production</li><li><strong>Automation:</strong> Deploy infra in seconds, not hours</li><li><strong>Scalability:</strong> Deploy 1 or 100 servers with the same effort</li><li><strong>Cost Optimization:</strong> Automate cleanup and avoid unused resources</li><li><strong>Version Control:</strong> Track changes using Git</li><li><strong>Reduced Human Error:</strong> No manual misconfiguration errors</li><li><strong>Better Collaboration:</strong> Teams can work together on infra changes</li></ul><h3>🧱 <strong>Why Manual Infrastructure Fails</strong></h3><p>Before IaC, engineers manually created VMs, networks, databases, and security rules. This approach led to:</p><ul><li>Inconsistency across environments</li><li>Difficulty in troubleshooting</li><li>Long deployment times</li><li>High chance of mistakes</li><li>No proper versioning or audit trail</li></ul><p>IaC solves all of this by <strong>codifying infrastructure</strong>.</p><h3><strong>🚀 What is Terraform?</strong></h3><p>Terraform is an open-source IaC tool by HashiCorp.<br> It helps developers and DevOps engineers <strong>automate infrastructure provisioning</strong> across cloud providers like:</p><ul><li>AWS</li><li>Azure</li><li>Google Cloud</li><li>DigitalOcean</li><li>VMware</li><li>Kubernetes<br> …and many more.</li></ul><p>Terraform uses <strong>HCL (HashiCorp Configuration Language)</strong> to define resources such as VMs, databases, networking, IAM, etc.</p><h3>🧠 How Terraform Works (Simple Diagram)</h3><pre>+------------------------+<br>|   Terraform Code (.tf) |<br>+-----------+------------+<br>            |<br>            v<br>+------------------------+<br>|   Terraform CLI        |<br>|  (init, plan, apply)   |<br>+-----------+------------+<br>            |<br>            v<br>+------------------------+<br>|   Cloud Provider API   |<br>| (AWS, Azure, GCP, etc.)|<br>+-----------+------------+<br>            |<br>            v<br>+------------------------+<br>| Infrastructure Deployed|<br>+------------------------+</pre><p>Terraform takes your code → generates an execution plan → talks to the cloud → deploys infra.</p><h3>⚙️ How Terraform Works (Behind the Scenes)</h3><p>Terraform follows a predictable workflow:</p><pre>Write Code  ---&gt;  terraform init<br>                 (Download providers)<br><br>Review Plan ---&gt;  terraform plan<br>                 (Preview changes)<br><br>Apply Infra ---&gt;  terraform apply<br>                 (Create resources)<br><br>Destroy Infra --&gt; terraform destroy<br>                 (Cleanup resources)</pre><h3>🏛️ Typical Terraform Project Structure</h3><pre>project-directory/<br>│<br>├── main.tf        # Main configuration<br>├── variables.tf   # Input variables<br>├── outputs.tf     # Output values<br>└── provider.tf    # Cloud provider details</pre><h3>🧪 Installing Terraform (Ubuntu / WSL / Linux)</h3><pre>wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg<br>echo &quot;deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main&quot; \<br>  | sudo tee /etc/apt/sources.list.d/hashicorp.list<br><br>sudo apt update &amp;&amp; sudo apt install terraform</pre><h3>📌 Key Things You Learned</h3><ul><li>What Infrastructure as Code is</li><li>Why manual provisioning isn’t scalable</li><li>Why Terraform is the most popular IaC tool</li><li>Terraform’s workflow and architecture</li><li>How Terraform interacts with cloud providers</li><li>How to install Terraform and start using it</li></ul><h3>🧭 Final Thoughts</h3><p>Terraform is the foundation of modern DevOps and cloud automation. With IaC, you gain consistency, automation, and a scalable way to manage cloud infrastructure.</p><p>This is just Day 1 — as you progress, you’ll learn modules, state files, cloud providers, remote backends, and advanced workflows.</p><p><strong>Here’s the Video You can go through…</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fs5fwSG_00P8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Ds5fwSG_00P8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fs5fwSG_00P8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/049b07e87fd5c181273b9559a6622093/href">https://medium.com/media/049b07e87fd5c181273b9559a6622093/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abd13becd173" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>