<?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 ArchithaDevOps on Medium]]></title>
        <description><![CDATA[Stories by ArchithaDevOps on Medium]]></description>
        <link>https://medium.com/@archithadevops?source=rss-f4b2f36b10c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3zriUu3VP2M1Y2lak8-7Qw.png</url>
            <title>Stories by ArchithaDevOps on Medium</title>
            <link>https://medium.com/@archithadevops?source=rss-f4b2f36b10c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:08:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@archithadevops/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[Day 7 of 15: AWS Auto Scaling Groups (ASG) — Automatically Scaling Applications Like a Production…]]></title>
            <link>https://archithadevops.medium.com/day-7-of-15-aws-auto-scaling-groups-asg-automatically-scaling-applications-like-a-production-05f112d1d186?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/05f112d1d186</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 01:31:01 GMT</pubDate>
            <atom:updated>2026-08-10T01:31:01.284Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day 7 of 15: AWS Auto Scaling Groups (ASG) — Automatically Scaling Applications Like a Production DevOps Engineer</h3><h3>Introduction</h3><p>Imagine you’re a DevOps Engineer managing an e-commerce platform.</p><p>Everything is running smoothly until a flash sale begins. Within minutes, traffic jumps from <strong>2,000 users to 100,000 users</strong>. CPU utilization reaches 95%, applications become slow, and customers start abandoning their carts.</p><p>Do you manually launch more EC2 instances?</p><p>In production, that’s not practical.</p><p>This is where <strong>AWS Auto Scaling Groups (ASG)</strong> become essential.</p><p>Auto Scaling automatically launches new EC2 instances when demand increases and terminates them when traffic decreases. It helps maintain application performance while optimizing infrastructure costs.</p><p>Let’s explore how Auto Scaling works in real-world AWS environments.</p><h3>What is Auto Scaling?</h3><p>AWS Auto Scaling Groups automatically adjust the number of EC2 instances based on application demand.</p><p>Instead of relying on manual intervention, AWS continuously monitors your infrastructure and responds to changing workloads.</p><p>This ensures:</p><ul><li>High Availability</li><li>Scalability</li><li>Cost Optimization</li><li>Fault Tolerance</li></ul><h3>Why Do We Need Auto Scaling?</h3><p>Imagine your application is running on <strong>two EC2 instances</strong>.</p><p>On a normal day:</p><ul><li>CPU Utilization: 20%</li><li>Response Time: 150 ms</li></ul><p>During a product launch:</p><ul><li>CPU Utilization: 95%</li><li>Requests increase rapidly</li><li>Users experience delays</li></ul><p>Without Auto Scaling, the application may become unavailable.</p><p>With Auto Scaling:</p><ul><li>New EC2 instances are launched automatically.</li><li>The Application Load Balancer starts routing traffic to the new instances.</li><li>Performance remains stable even during heavy traffic.</li></ul><h3>Components of Auto Scaling</h3><h3>1. Launch Template</h3><p>A Launch Template defines how new EC2 instances should be created.</p><p>It includes:</p><ul><li>Amazon Machine Image (AMI)</li><li>Instance Type</li><li>Security Groups</li><li>IAM Role</li><li>Key Pair</li><li>Storage Configuration</li><li>User Data Script</li></ul><p>Every new instance launched by the Auto Scaling Group uses this template.</p><h3>2. Auto Scaling Group (ASG)</h3><p>The ASG manages the lifecycle of EC2 instances.</p><p>Example:</p><p>Minimum Capacity: 2</p><p>Desired Capacity: 2</p><p>Maximum Capacity: 8</p><p>AWS always tries to maintain the desired number of healthy instances.</p><h3>3. Scaling Policies</h3><p>Scaling Policies determine <strong>when</strong> AWS should add or remove EC2 instances.</p><p>Example:</p><p>Scale Out:</p><ul><li>CPU Utilization &gt; 70%</li></ul><p>Scale In:</p><ul><li>CPU Utilization &lt; 30%</li></ul><p>These policies help applications respond automatically to changing traffic patterns.</p><h3>Real-Time Production Scenario</h3><p>Imagine you’re working for an online ticket booking platform.</p><p>During normal hours:</p><ul><li>3 EC2 instances handle traffic comfortably.</li></ul><p>When ticket sales open for a major event:</p><ul><li>Traffic increases dramatically within minutes.</li></ul><p>Without Auto Scaling:</p><ul><li>High CPU utilization</li><li>Slow page loads</li><li>Payment failures</li><li>Lost revenue</li></ul><p>With Auto Scaling:</p><ul><li>CloudWatch detects CPU usage above 70%.</li><li>Auto Scaling launches additional EC2 instances.</li><li>The Application Load Balancer begins routing traffic to them.</li><li>Once traffic decreases, unnecessary instances are terminated automatically.</li></ul><p>Customers enjoy a seamless experience while the company pays only for the resources it actually uses.</p><h3>Health Checks</h3><p>Auto Scaling continuously monitors instance health.</p><p>If an EC2 instance becomes unhealthy:</p><ul><li>The instance is terminated automatically.</li><li>A replacement instance is launched.</li><li>The new instance is registered with the Load Balancer.</li><li>Traffic resumes without manual intervention.</li></ul><p>This self-healing capability is one of the biggest advantages of Auto Scaling.</p><h3>Real Production Troubleshooting Scenario</h3><h3>Problem</h3><p>Users report intermittent slow response times during peak traffic.</p><h3>Investigation</h3><p>CloudWatch reveals:</p><ul><li>CPU Utilization consistently above 90%.</li><li>Auto Scaling Group remains at two instances.</li></ul><p>Root Cause:</p><p>The maximum capacity was mistakenly configured as <strong>2</strong>, preventing Auto Scaling from launching additional instances.</p><h3>Solution</h3><ul><li>Increase the maximum capacity.</li><li>Verify scaling policies.</li><li>Monitor CloudWatch metrics.</li><li>Perform load testing.</li></ul><p>After updating the configuration, Auto Scaling launches additional instances and application performance returns to normal.</p><h3>Best Practices</h3><p>✔ Always use Auto Scaling with an Application Load Balancer.</p><p>✔ Configure Health Checks.</p><p>✔ Use Launch Templates instead of Launch Configurations.</p><p>✔ Monitor scaling activities using CloudWatch.</p><p>✔ Test scaling policies before production deployment.</p><p>✔ Set realistic minimum and maximum capacity limits.</p><h3>Common Beginner Mistakes</h3><p>❌ Setting the minimum and maximum capacity to the same value.</p><p>❌ Forgetting to configure scaling policies.</p><p>❌ Using outdated Launch Configurations.</p><p>❌ Ignoring CloudWatch alarms.</p><p>❌ Not testing Auto Scaling behavior under load.</p><h3>Interview Questions</h3><ol><li>What is an Auto Scaling Group?</li><li>What is the difference between Desired, Minimum, and Maximum Capacity?</li><li>What is a Launch Template?</li><li>How does Auto Scaling detect unhealthy instances?</li><li>How does Auto Scaling work with an Application Load Balancer?</li><li>How would you troubleshoot an Auto Scaling Group that isn’t launching new EC2 instances?</li></ol><h3>Hands-on Exercise</h3><p>Today’s lab:</p><ol><li>Launch two EC2 instances.</li><li>Create a Launch Template.</li><li>Create an Auto Scaling Group.</li><li>Attach it to an Application Load Balancer.</li><li>Configure CloudWatch scaling policies.</li><li>Simulate CPU load using a stress tool.</li><li>Observe Auto Scaling automatically launching new EC2 instances.</li><li>Monitor scaling events in the AWS Console.</li></ol><h3>Key Takeaways</h3><p>Auto Scaling is much more than adding servers automatically — it’s about building resilient, cost-efficient, and highly available cloud applications.</p><p>In production environments, Auto Scaling works hand in hand with Application Load Balancers and CloudWatch to ensure applications remain responsive even during unexpected traffic spikes.</p><p>Tomorrow, we’ll explore <strong>Amazon S3</strong> and see why it’s one of the most widely used storage services in AWS.</p><p>#AWS #AutoScaling #CloudComputing #CloudArchitecture #DevOps #AWSLearning #HighAvailability #CloudEngineer</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05f112d1d186" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 6 of 15: AWS Elastic Load Balancer (ELB) — How AWS Handles Millions of Requests Without…]]></title>
            <link>https://archithadevops.medium.com/day-6-of-15-aws-elastic-load-balancer-elb-how-aws-handles-millions-of-requests-without-c5fee545c6c1?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5fee545c6c1</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Sun, 09 Aug 2026 01:31:01 GMT</pubDate>
            <atom:updated>2026-08-09T01:31:01.525Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day 6 of 15: AWS Elastic Load Balancer (ELB) — How AWS Handles Millions of Requests Without Downtime</h3><h3>Introduction</h3><p>Imagine you’re a DevOps Engineer responsible for an e-commerce application.</p><p>Everything works perfectly until a festive sale begins. Within minutes, thousands of users start visiting the website. Suddenly, the application becomes slow, CPU utilization reaches 100%, and eventually the server crashes.</p><p>Does this mean AWS failed?</p><p>Not at all.</p><p>The real issue is that <strong>all traffic was being sent to a single server</strong>.</p><p>This is exactly why <strong>Elastic Load Balancer (ELB)</strong> exists.</p><p>In this blog, we’ll explore how ELB distributes traffic, improves application availability, and plays a critical role in every production AWS environment.</p><h3>What is Elastic Load Balancer?</h3><p>Elastic Load Balancer (ELB) is a managed AWS service that automatically distributes incoming application traffic across multiple targets, such as EC2 instances, containers, IP addresses, or Lambda functions.</p><p>Instead of users connecting directly to a single server, they connect to the Load Balancer, which intelligently routes requests to healthy backend servers.</p><p>This improves:</p><ul><li>High Availability</li><li>Scalability</li><li>Fault Tolerance</li><li>Performance</li></ul><h3>Why Do We Need a Load Balancer?</h3><p>Imagine your application is running on one EC2 instance.</p><p>Everything works well until 10,000 users access it simultaneously.</p><p>Problems you’ll face:</p><ul><li>High CPU utilization</li><li>Slow response time</li><li>Application crashes</li><li>Downtime</li><li>Poor customer experience</li></ul><p>Now imagine placing an Application Load Balancer in front of three EC2 instances.</p><p>Instead of one server handling all requests, the Load Balancer distributes traffic evenly across all available instances.</p><p>The application continues running even during peak traffic.</p><h3>Types of AWS Load Balancers</h3><h3>1. Application Load Balancer (ALB)</h3><p>Best suited for:</p><ul><li>HTTP/HTTPS applications</li><li>Microservices</li><li>Kubernetes (Amazon EKS)</li><li>Containerized applications</li></ul><p>Supports:</p><ul><li>Path-based routing</li><li>Host-based routing</li><li>SSL termination</li><li>WebSocket support</li></ul><p>Example:</p><pre>example.com/login → EC2 Group A</pre><pre>example.com/payment → EC2 Group B</pre><h3>2. Network Load Balancer (NLB)</h3><p>Best for:</p><ul><li>TCP/UDP traffic</li><li>High-performance applications</li><li>Low latency workloads</li></ul><p>Commonly used for gaming platforms, financial systems, and IoT applications.</p><h3>3. Gateway Load Balancer (GWLB)</h3><p>Used for:</p><ul><li>Third-party firewalls</li><li>Security appliances</li><li>Network inspection</li></ul><p>Primarily adopted in enterprise security architectures.</p><h3>Real-Time Production Scenario</h3><p>Suppose you’re managing an online shopping platform.</p><p>Architecture:</p><p>Internet</p><p>↓</p><p>Application Load Balancer</p><p>↓</p><p>EC2 Instance 1</p><p>EC2 Instance 2</p><p>EC2 Instance 3</p><p>↓</p><p>Amazon RDS</p><p>During a festive sale:</p><ul><li>50,000 users access the application.</li><li>The Load Balancer distributes requests evenly.</li><li>If one EC2 instance becomes unhealthy, ELB automatically stops sending traffic to it.</li><li>Remaining healthy instances continue serving users without interruption.</li></ul><p>From a customer’s perspective, the website never goes down.</p><p>This is how modern production systems achieve high availability.</p><h3>Health Checks</h3><p>One of ELB’s most powerful features is <strong>Health Checks</strong>.</p><p>The Load Balancer continuously checks whether backend servers are healthy.</p><p>Example:</p><p>Health Check URL:</p><pre>/health</pre><p>If an EC2 instance fails:</p><p>❌ No response</p><p>↓</p><p>ELB marks it unhealthy</p><p>↓</p><p>Stops routing traffic</p><p>↓</p><p>Auto Scaling launches a replacement instance</p><p>↓</p><p>New instance passes health check</p><p>↓</p><p>Traffic resumes automatically</p><p>No manual intervention required.</p><h3>Real Production Troubleshooting Scenario</h3><h3>Problem</h3><p>Users report intermittent “502 Bad Gateway” errors.</p><h3>Investigation</h3><ul><li>EC2 instances are running.</li><li>Security Groups are correct.</li><li>Application is deployed successfully.</li></ul><p>CloudWatch reveals that one backend server has failed the ELB health check.</p><p>The application process on that instance had stopped unexpectedly.</p><h3>Solution</h3><ul><li>Restart the application service.</li><li>Confirm the /health endpoint returns HTTP 200.</li><li>ELB marks the instance healthy again.</li><li>Traffic resumes automatically.</li></ul><p>This is one of the most common production issues involving Load Balancers.</p><h3>Best Practices</h3><p>✔ Deploy Load Balancers across multiple Availability Zones.</p><p>✔ Always configure Health Checks.</p><p>✔ Use HTTPS with SSL certificates.</p><p>✔ Combine ELB with Auto Scaling Groups.</p><p>✔ Monitor ELB metrics using CloudWatch.</p><p>✔ Never expose backend servers directly to the internet if traffic should flow through the Load Balancer.</p><h3>Common Beginner Mistakes</h3><p>❌ Accessing EC2 directly instead of through ELB.</p><p>❌ Forgetting Health Checks.</p><p>❌ Deploying ELB in a single Availability Zone.</p><p>❌ Misconfigured Security Groups blocking health checks.</p><p>❌ Not enabling HTTPS for production applications.</p><h3>Interview Questions</h3><ol><li>What is Elastic Load Balancer?</li><li>What are the different types of Load Balancers in AWS?</li><li>What is the difference between ALB and NLB?</li><li>How do Health Checks work?</li><li>Why is ELB used with Auto Scaling?</li><li>How would you troubleshoot an unhealthy target in a Target Group?</li></ol><h3>Hands-on Exercise</h3><p>Today’s lab:</p><ol><li>Launch two EC2 instances.</li><li>Install Nginx on both.</li><li>Create an Application Load Balancer.</li><li>Create a Target Group.</li><li>Register both EC2 instances.</li><li>Configure Health Checks.</li><li>Access the Load Balancer DNS name and observe traffic distribution.</li><li>Stop Nginx on one instance and watch ELB automatically stop routing traffic to it.</li></ol><h3>Key Takeaways</h3><p>Elastic Load Balancer is much more than a traffic distributor — it’s a core component of highly available AWS architectures.</p><p>Combined with Auto Scaling, Health Checks, and Multi-AZ deployments, ELB ensures that applications remain responsive, scalable, and resilient even during unexpected traffic spikes or server failures.</p><p>In <strong>Day 7</strong>, we’ll explore <strong>Auto Scaling Groups</strong> and learn how AWS automatically adds or removes EC2 instances based on application demand.</p><p>#AWS #ElasticLoadBalancer #ALB #NLB #CloudArchitecture #DevOps #AWSLearning #HighAvailability</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5fee545c6c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 5 of 15: AWS Security Groups vs Network ACLs — Understanding AWS Network Security Like a DevOps…]]></title>
            <link>https://archithadevops.medium.com/day-5-of-15-aws-security-groups-vs-network-acls-understanding-aws-network-security-like-a-devops-6e4668eb0ac6?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e4668eb0ac6</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 01:31:01 GMT</pubDate>
            <atom:updated>2026-08-08T01:31:01.413Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day 5 of 15: AWS Security Groups vs Network ACLs — Understanding AWS Network Security Like a DevOps Engineer</h3><h3>Introduction</h3><p>One of the most common interview questions for AWS and DevOps roles is:</p><p><strong>“What’s the difference between a Security Group and a Network ACL?”</strong></p><p>Many beginners memorize the answer:</p><ul><li>Security Groups are stateful.</li><li>Network ACLs are stateless.</li></ul><p>While that’s technically correct, it doesn’t explain <strong>when to use each one in a real production environment.</strong></p><p>As DevOps Engineers, securing an application isn’t just about deploying servers — it’s about controlling who can access them and how network traffic flows.</p><p>In this blog, we’ll understand Security Groups and Network ACLs through real-world scenarios, troubleshooting examples, and production best practices.</p><h3>Why Do We Need Network Security?</h3><p>Imagine you’re managing an online banking application hosted on AWS.</p><p>The infrastructure contains:</p><ul><li>Application Load Balancer</li><li>EC2 Web Servers</li><li>Application Servers</li><li>Amazon RDS Database</li></ul><p>Would you allow every server to communicate with every other server?</p><p>Absolutely not.</p><p>Every component should only communicate with the services it actually needs.</p><p>This is where <strong>Security Groups</strong> and <strong>Network ACLs</strong> play an important role.</p><h3>What is a Security Group?</h3><p>A Security Group acts as a <strong>virtual firewall</strong> for an AWS resource such as an EC2 instance, RDS database, or Load Balancer.</p><p>It controls <strong>who can connect to the resource</strong>.</p><p>Security Groups work at the <strong>instance level</strong>.</p><h3>Example</h3><p>Your web server needs to receive HTTP traffic from users.</p><p>Security Group Rules:</p><p>Inbound:</p><ul><li>HTTP (80) → 0.0.0.0/0</li><li>HTTPS (443) → 0.0.0.0/0</li><li>SSH (22) → Your Office IP</li></ul><p>Outbound:</p><ul><li>Allow All</li></ul><p>Only these connections are permitted.</p><p>Everything else is denied automatically.</p><h3>What is a Network ACL (NACL)?</h3><p>A Network ACL is another firewall, but it works at the <strong>subnet level</strong>.</p><p>Instead of protecting one server, it protects every resource inside that subnet.</p><p>Unlike Security Groups, Network ACLs allow both <strong>Allow</strong> and <strong>Deny</strong> rules.</p><h3>Security Group vs Network ACL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*3mrBjHXAzPfeAkDb6PCcjg.png" /><figcaption>Security Group vs Network ACL</figcaption></figure><h3>Understanding Stateful vs Stateless</h3><p>Imagine a user accesses your website.</p><h3>Security Group</h3><p>User → EC2</p><p>Security Group allows HTTP.</p><p>When the server sends the response back…</p><p>The Security Group <strong>automatically allows the response</strong> because it’s <strong>stateful</strong>.</p><p>No extra outbound rule is required.</p><h3>Network ACL</h3><p>User → EC2</p><p>NACL allows inbound HTTP.</p><p>When the server tries to respond…</p><p>The response is blocked unless the outbound rule also allows it.</p><p>That’s because Network ACLs are <strong>stateless</strong>.</p><h3>Real-Time Production Scenario</h3><p>Suppose you’re working for an online shopping company.</p><p>Your architecture looks like this:</p><p>Internet</p><p>↓</p><p>Application Load Balancer</p><p>↓</p><p>EC2 Web Servers</p><p>↓</p><p>Application Servers</p><p>↓</p><p>Amazon RDS</p><p>Security Groups are configured like this:</p><p>ALB → Allow HTTP/HTTPS</p><p>↓</p><p>Web Server → Allow traffic only from ALB</p><p>↓</p><p>Application Server → Allow traffic only from Web Servers</p><p>↓</p><p>Database → Allow traffic only from Application Servers</p><p>Even if someone knows the database IP, they cannot connect because the Security Group blocks unauthorized traffic.</p><p>This layered security is common in enterprise environments.</p><h3>Where Do Companies Use Network ACLs?</h3><p>Suppose your organization notices repeated malicious traffic from a suspicious IP range.</p><p>Instead of modifying Security Groups for every server, the security team blocks the IP directly at the subnet level using a Network ACL.</p><p>Now every resource inside that subnet is protected.</p><h3>Common Beginner Mistakes</h3><p>❌ Opening SSH to 0.0.0.0/0</p><p>❌ Assuming Security Groups block malicious IPs</p><p>❌ Forgetting outbound NACL rules</p><p>❌ Giving unnecessary access between application layers</p><p>❌ Using one Security Group for every resource</p><h3>Troubleshooting Scenario</h3><h3>Problem</h3><p>Users report that the application is unreachable.</p><p>You verify:</p><p>✅ EC2 is running</p><p>✅ Security Group allows HTTP</p><p>✅ Application is running</p><p>Still, users cannot access the application.</p><h3>Investigation</h3><p>The subnet’s Network ACL is denying inbound HTTP traffic.</p><h3>Solution</h3><p>Update the NACL:</p><p>Allow:</p><ul><li>Port 80</li><li>Port 443</li><li>Ephemeral Ports (1024–65535) for return traffic</li></ul><p>Application becomes accessible immediately.</p><p>This is one of the most common networking issues encountered in production AWS environments.</p><h3>Best Practices</h3><p>✔ Follow the Principle of Least Privilege.</p><p>✔ Allow SSH only from trusted IP addresses.</p><p>✔ Use separate Security Groups for different application tiers.</p><p>✔ Use NACLs for subnet-wide protection.</p><p>✔ Regularly audit firewall rules.</p><p>✔ Never expose databases directly to the internet.</p><h3>Interview Questions</h3><ol><li>What is the difference between Security Groups and Network ACLs?</li><li>Why are Security Groups called stateful?</li><li>Why are Network ACLs stateless?</li><li>Can a Network ACL deny traffic?</li><li>Which firewall would you use to block a malicious IP address?</li><li>How would you troubleshoot an inaccessible EC2 instance?</li></ol><h3>Hands-on Exercise</h3><p>Today’s lab:</p><ol><li>Launch an EC2 instance.</li><li>Configure a Security Group to allow HTTP and SSH.</li><li>Create a custom Network ACL.</li><li>Associate it with your subnet.</li><li>Test allowing and denying HTTP traffic.</li><li>Observe how inbound and outbound NACL rules affect connectivity.</li></ol><h3>Key Takeaways</h3><p>Security Groups and Network ACLs work together to secure AWS workloads.</p><p>Security Groups protect individual resources, while Network ACLs provide an additional layer of subnet-level security.</p><p>Understanding both services is essential for designing secure, production-ready AWS architectures and for troubleshooting real-world networking issues.</p><p>Tomorrow, we’ll explore <strong>Elastic Load Balancer (ELB)</strong> and see how AWS distributes traffic across multiple servers to build highly available applications.</p><p>#AWS #SecurityGroups #NetworkACL #CloudSecurity #DevOps #AWSLearning #CloudNetworking</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e4668eb0ac6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 4 of 15: AWS VPC Explained — The Foundation of Secure Cloud Networking]]></title>
            <link>https://archithadevops.medium.com/day-4-of-15-aws-vpc-explained-the-foundation-of-secure-cloud-networking-045e136f012d?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/045e136f012d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 01:31:01 GMT</pubDate>
            <atom:updated>2026-08-07T01:31:01.495Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>After launching an EC2 instance, one question naturally follows:</p><p><strong>“How does this server communicate with the internet, databases, and other AWS resources securely?”</strong></p><p>The answer lies in <strong>Amazon Virtual Private Cloud (VPC)</strong>.</p><p>In every production environment, networking is one of the most critical components. A poorly designed network can expose applications to security risks, while a well-architected VPC ensures secure, scalable, and highly available communication.</p><p>As DevOps Engineers, understanding VPC is essential because almost every AWS service — EC2, RDS, EKS, Load Balancers, and NAT Gateways — operates within a VPC.</p><p>Let’s explore how enterprises design secure cloud networks using Amazon VPC.</p><h3>What is Amazon VPC?</h3><p>Amazon Virtual Private Cloud (VPC) is your own isolated virtual network inside AWS.</p><p>Think of it as building your own private data center in the cloud, where you decide:</p><ul><li>Which servers are public or private</li><li>How traffic flows</li><li>Who can access your resources</li><li>Which networks can communicate</li></ul><p>A VPC gives you complete control over your cloud network.</p><h3>Why is VPC Important?</h3><p>Imagine you’re building an online banking application.</p><p>Would you expose the database directly to the internet?</p><p>Absolutely not.</p><p>Only the web application should be publicly accessible. Databases, backend APIs, and internal services should remain private.</p><p>That’s exactly what VPC helps you achieve.</p><h3>Key Components of a VPC</h3><h3>1. CIDR Block</h3><p>A CIDR block defines the IP address range for your VPC.</p><p>Example:</p><pre>10.0.0.0/16</pre><p>This provides thousands of private IP addresses for your AWS resources.</p><h3>2. Public Subnet</h3><p>Resources in a Public Subnet can communicate with the internet through an Internet Gateway.</p><p>Typically used for:</p><ul><li>Application Load Balancer</li><li>Bastion Host</li><li>Public-facing Web Servers</li></ul><h3>3. Private Subnet</h3><p>Resources inside a Private Subnet are <strong>not directly accessible from the internet.</strong></p><p>Common resources:</p><ul><li>Application Servers</li><li>Databases</li><li>Internal APIs</li><li>Kubernetes Worker Nodes</li></ul><p>This significantly improves security.</p><h3>4. Internet Gateway (IGW)</h3><p>The Internet Gateway allows resources in a Public Subnet to send and receive internet traffic.</p><p>Without an Internet Gateway, public resources cannot communicate with the outside world.</p><h3>5. NAT Gateway</h3><p>Sometimes private servers need internet access to:</p><ul><li>Download software updates</li><li>Install packages</li><li>Access external APIs</li></ul><p>Instead of exposing these servers publicly, AWS provides a <strong>NAT Gateway</strong>.</p><p>It allows <strong>outbound internet access</strong> while preventing inbound connections.</p><p>This is a production best practice.</p><h3>6. Route Tables</h3><p>Route Tables determine how network traffic flows inside the VPC.</p><p>Example:</p><pre>Destination      Target<br>0.0.0.0/0        Internet Gateway</pre><p>This route enables internet access for a Public Subnet.</p><p>Private subnets typically route internet-bound traffic through a NAT Gateway.</p><h3>Real-Time Production Architecture</h3><p>Imagine you’re working on a food delivery application.</p><p>The architecture looks like this:</p><pre>Users<br>     │<br>Application Load Balancer<br>     │<br>-------------------------------<br>Public Subnet<br>-------------------------------<br>     │<br>EC2 Web Servers<br>     │<br>-------------------------------<br>Private Subnet<br>-------------------------------<br>Application Servers<br>     │<br>Amazon RDS Database</pre><p>Here:</p><ul><li>Users access only the Load Balancer.</li><li>Web servers communicate with application servers.</li><li>Databases remain completely private.</li><li>Sensitive data is never exposed directly to the internet.</li></ul><p>This architecture follows AWS Well-Architected security principles.</p><h3>Real-Time Scenario</h3><p>A startup initially deployed both its web server and database in a Public Subnet.</p><p>Everything worked fine — until automated bots started scanning the public database endpoint.</p><p>Although authentication prevented unauthorized access, the security team identified this as a major risk.</p><p>The solution:</p><ul><li>Moved the database into a Private Subnet.</li><li>Restricted database access to application servers only.</li><li>Introduced a NAT Gateway for outbound updates.</li></ul><p>This reduced the application’s attack surface and aligned it with cloud security best practices.</p><h3>Common Mistakes Beginners Make</h3><p>❌ Deploying databases in Public Subnets.</p><p>❌ Allowing unrestricted inbound traffic (0.0.0.0/0) to all ports.</p><p>❌ Forgetting to configure Route Tables.</p><p>❌ Confusing Security Groups with Route Tables.</p><p>❌ Placing every resource in a single subnet.</p><h3>Troubleshooting Scenario</h3><h3>Problem</h3><p>Users cannot access the web application hosted on EC2.</p><h3>Investigation</h3><ul><li>EC2 instance is running.</li><li>Security Group allows HTTP traffic.</li><li>Web server is active.</li></ul><p>However, the EC2 instance is located in a Public Subnet <strong>without a route to the Internet Gateway.</strong></p><h3>Solution</h3><ul><li>Update the Route Table.</li><li>Associate it with the Public Subnet.</li><li>Add the default route (0.0.0.0/0) pointing to the Internet Gateway.</li></ul><p>Once updated, the application becomes accessible.</p><h3>Best Practices</h3><p>✔ Use multiple Availability Zones.</p><p>✔ Place databases in Private Subnets.</p><p>✔ Use NAT Gateway for outbound internet access.</p><p>✔ Keep Load Balancers in Public Subnets.</p><p>✔ Follow the Principle of Least Privilege for networking.</p><p>✔ Regularly review Security Groups and Route Tables.</p><h3>Interview Questions</h3><ol><li>What is Amazon VPC?</li><li>Difference between Public and Private Subnets?</li><li>What is an Internet Gateway?</li><li>Why do we use a NAT Gateway?</li><li>What is a CIDR Block?</li><li>How do Route Tables work?</li><li>How would you troubleshoot an EC2 instance that cannot access the internet?</li></ol><h3>Hands-on Exercise</h3><p>Today’s lab:</p><ol><li>Create a custom VPC.</li><li>Create one Public Subnet and one Private Subnet.</li><li>Attach an Internet Gateway.</li><li>Configure Route Tables.</li><li>Launch an EC2 instance in the Public Subnet.</li><li>Launch another EC2 instance in the Private Subnet.</li><li>Verify internet connectivity for both instances.</li></ol><h3>Key Takeaways</h3><p>Amazon VPC is much more than a networking service — it’s the security foundation of every AWS environment.</p><p>A well-designed VPC protects applications, isolates sensitive resources, and ensures secure communication between services.</p><p>As DevOps Engineers, mastering VPC is one of the most valuable skills for designing production-ready cloud infrastructure.</p><p>In <strong>Day 5</strong>, we’ll dive into <strong>Security Groups vs Network ACLs</strong> and understand how AWS secures network traffic at different layers.</p><p>#AWS #VPC #Networking #CloudSecurity #DevOps #AWSLearning #CloudComputing</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=045e136f012d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 3 of 15: Amazon EC2 Explained — How Applications Actually Run in AWS]]></title>
            <link>https://archithadevops.medium.com/day-3-of-15-amazon-ec2-explained-how-applications-actually-run-in-aws-c83ba5583d90?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c83ba5583d90</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[dockerr]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 01:31:01 GMT</pubDate>
            <atom:updated>2026-08-06T01:31:01.882Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Whenever someone asks, <strong>“Where does my application run in AWS?”</strong>, the answer is usually <strong>Amazon EC2 (Elastic Compute Cloud).</strong></p><p>Whether it’s an e-commerce website, a banking application, a healthcare portal, or a CI/CD server like Jenkins, there’s a good chance it’s running on EC2.</p><p>But in production, launching an EC2 instance is just the beginning. A DevOps Engineer is responsible for making it secure, scalable, highly available, monitored, and cost-efficient.</p><p>In this blog, we’ll explore Amazon EC2 from a real-world DevOps perspective.</p><h3>What is Amazon EC2?</h3><p>Amazon EC2 is a virtual server in the AWS Cloud that allows you to run applications without managing physical hardware.</p><p>Instead of purchasing expensive servers, AWS lets you launch virtual machines in minutes and pay only for what you use.</p><p>Think of EC2 as renting a server whenever you need one.</p><h3>Why Do Companies Use EC2?</h3><p>Imagine your company has developed an online food delivery application.</p><p>Instead of buying physical servers, setting up a data center, and maintaining hardware, the application is deployed on EC2.</p><p>This allows the company to:</p><ul><li>Scale resources whenever traffic increases.</li><li>Deploy applications quickly.</li><li>Reduce infrastructure costs.</li><li>Manage servers from anywhere.</li><li>Improve availability by using multiple Availability Zones.</li></ul><h3>Real-Time Production Scenario</h3><p>Let’s assume you’re working as a DevOps Engineer for an e-commerce company.</p><p>The application architecture looks like this:</p><ul><li>Users access the website through an Application Load Balancer.</li><li>Traffic is distributed across multiple EC2 instances.</li><li>EC2 instances host the application.</li><li>The database runs on Amazon RDS.</li><li>Images are stored in Amazon S3.</li><li>Logs and metrics are monitored using CloudWatch.</li></ul><p>During a festive sale, traffic suddenly increases by five times.</p><p>Without EC2 Auto Scaling, the application may become slow or even crash.</p><p>With Auto Scaling enabled, AWS automatically launches additional EC2 instances to handle the increased traffic, ensuring users continue shopping without interruption.</p><h3>Choosing the Right EC2 Instance</h3><p>AWS provides different instance families for different workloads:</p><h3>General Purpose (T3, T4g, M5)</h3><p>Best for:</p><ul><li>Web applications</li><li>Small business applications</li><li>Development environments</li></ul><h3>Compute Optimized (C5, C6)</h3><p>Best for:</p><ul><li>High-performance APIs</li><li>Gaming servers</li><li>Scientific computing</li></ul><h3>Memory Optimized (R5, X1)</h3><p>Best for:</p><ul><li>Databases</li><li>Big data analytics</li><li>In-memory caching</li></ul><h3>Storage Optimized</h3><p>Best for:</p><ul><li>High-speed storage workloads</li><li>Large-scale databases</li><li>Data processing applications</li></ul><p>Choosing the correct instance type helps balance performance and cost.</p><h3>Security Best Practices</h3><p>Launching an EC2 instance is easy, but securing it is critical.</p><p>Always:</p><ul><li>Use IAM Roles instead of storing AWS access keys.</li><li>Restrict inbound traffic with Security Groups.</li><li>Keep the operating system updated.</li><li>Disable password-based SSH login where possible.</li><li>Use key pairs for authentication.</li><li>Enable CloudWatch monitoring.</li><li>Regularly back up data using EBS snapshots.</li></ul><h3>Common Production Issues</h3><h3>Problem 1: Unable to SSH into EC2</h3><p>Possible causes:</p><ul><li>Security Group doesn’t allow port 22.</li><li>Incorrect key pair.</li><li>Instance is in a private subnet.</li><li>Network ACL blocking traffic.</li></ul><h3>Problem 2: Website Not Accessible</h3><p>Checklist:</p><ul><li>Is the EC2 instance running?</li><li>Is the application service running?</li><li>Is port 80 or 443 open?</li><li>Is the Load Balancer healthy?</li><li>Is the application crashing?</li></ul><h3>Problem 3: High CPU Utilization</h3><p>Possible reasons:</p><ul><li>Increased user traffic.</li><li>Infinite application loop.</li><li>Insufficient instance size.</li><li>Background processes consuming resources.</li></ul><p>Possible solutions:</p><ul><li>Scale horizontally using Auto Scaling.</li><li>Upgrade the instance type.</li><li>Optimize the application.</li><li>Monitor using CloudWatch.</li></ul><h3>Real Troubleshooting Example</h3><p>One evening, users reported that the company website was loading very slowly.</p><p>CloudWatch metrics showed CPU utilization consistently above 95%.</p><p>Investigation revealed that traffic had increased due to a marketing campaign, but Auto Scaling wasn’t configured.</p><p>To resolve the issue:</p><ul><li>An Auto Scaling Group was created.</li><li>CPU-based scaling policies were configured.</li><li>Additional EC2 instances launched automatically.</li><li>Response times returned to normal within minutes.</li></ul><p>This demonstrates why automation is essential in production environments.</p><h3>Interview Questions</h3><ol><li>What is Amazon EC2?</li><li>What are the different EC2 instance types?</li><li>What is the difference between On-Demand, Reserved, and Spot Instances?</li><li>How do Security Groups protect EC2 instances?</li><li>How would you troubleshoot an EC2 instance that is unreachable?</li><li>Why should IAM Roles be used instead of Access Keys?</li><li>How does Auto Scaling improve application availability?</li></ol><h3>Hands-on Exercise</h3><p>Today’s lab:</p><ol><li>Launch an EC2 instance.</li><li>Connect using SSH.</li><li>Install Nginx or Apache.</li><li>Create a simple HTML page.</li><li>Open port 80 in the Security Group.</li><li>Access the application from your browser.</li><li>Monitor CPU utilization using CloudWatch.</li></ol><h3>Key Takeaways</h3><p>Amazon EC2 is the backbone of many cloud applications, but successful production deployments require much more than simply launching a server.</p><p>A DevOps Engineer must focus on security, monitoring, automation, scalability, and troubleshooting to build reliable systems.</p><p>Tomorrow, we’ll explore <strong>Amazon VPC</strong> and learn how enterprise-grade networking is designed in AWS.</p><p>#AWS #EC2 #CloudComputing #DevOps #AWSLearning #CloudEngineer #Infrastructure</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c83ba5583d90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 2 of 15: AWS IAM Explained — The First Line of Defense in Every AWS Environment]]></title>
            <link>https://archithadevops.medium.com/day-2-of-15-aws-iam-explained-the-first-line-of-defense-in-every-aws-environment-8404655db87f?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8404655db87f</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 01:31:01 GMT</pubDate>
            <atom:updated>2026-08-05T01:31:01.432Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>When engineers first start learning AWS, they often rush to launch EC2 instances or create S3 buckets. However, before deploying any infrastructure, there’s one service that every organization configures first — <strong>AWS Identity and Access Management (IAM).</strong></p><p>In the real world, IAM is the foundation of cloud security. A single incorrect permission can expose sensitive resources, while a well-designed IAM strategy protects applications, infrastructure, and customer data.</p><p>As DevOps engineers, we don’t just create AWS resources — we ensure that only the right people and services have the right level of access.</p><p>In this blog, let’s understand IAM from a practical, production-ready perspective.</p><h3>What is AWS IAM?</h3><p>AWS Identity and Access Management (IAM) is the service that controls <strong>who can access AWS resources and what actions they are allowed to perform.</strong></p><p>Instead of sharing one AWS account among everyone on the team, IAM allows organizations to create separate identities with specific permissions.</p><p>Think of IAM as the security guard of your AWS environment.</p><h3>Why is IAM Important?</h3><p>Imagine a company with:</p><ul><li>10 Developers</li><li>5 DevOps Engineers</li><li>3 QA Engineers</li><li>2 Security Engineers</li></ul><p>Should everyone have full administrator access?</p><p>Absolutely not.</p><p>A developer may need access to EC2 and CloudWatch but shouldn’t be able to delete production databases.</p><p>A QA engineer might only need access to testing environments.</p><p>A DevOps engineer may require permissions to manage infrastructure.</p><p>IAM makes this possible by following the <strong>Principle of Least Privilege</strong> — granting only the permissions required to perform a task.</p><h3>Core IAM Components</h3><h3>IAM Users</h3><p>Represents an individual person who needs access to AWS.</p><p>Example:</p><ul><li>Alice (Developer)</li><li>Rahul (DevOps Engineer)</li><li>Priya (QA Engineer)</li></ul><p>Each user gets unique credentials instead of sharing passwords.</p><h3>IAM Groups</h3><p>Groups help manage permissions for multiple users.</p><p>Example:</p><p>Developers Group:</p><ul><li>EC2 Read</li><li>CloudWatch Access</li><li>S3 Read</li></ul><p>DevOps Group:</p><ul><li>EC2 Full Access</li><li>VPC Management</li><li>Auto Scaling</li><li>CloudFormation</li></ul><p>Adding a new employee becomes simple — just place them in the correct group.</p><h3>IAM Roles</h3><p>Roles are different from users.</p><p>Instead of being assigned to a person, roles are assumed temporarily by AWS services, applications, or users.</p><p>Example:</p><p>An EC2 instance needs permission to upload logs to S3.</p><p>Instead of storing AWS access keys inside the server, attach an IAM Role to the EC2 instance. AWS automatically provides temporary credentials, making the solution more secure.</p><p>This is the recommended approach in production environments.</p><h3>IAM Policies</h3><p>Policies define permissions using JSON documents.</p><p>For example, a policy can allow:</p><ul><li>Read-only access to S3</li><li>Full access to EC2</li><li>Permission to create CloudWatch Logs</li></ul><p>Policies can be attached to users, groups, or roles.</p><h3>Real-Time Production Scenario</h3><p>Imagine you’re part of a DevOps team deploying applications through Jenkins.</p><p>Jenkins needs permission to:</p><ul><li>Push Docker images to Amazon ECR</li><li>Deploy containers to Amazon EKS</li><li>Read secrets from AWS Secrets Manager</li></ul><p>Instead of storing long-term access keys in Jenkins, the CI/CD server assumes an IAM Role with only the required permissions.</p><p>This approach improves security and reduces the risk of credential leakage.</p><h3>Common Mistakes Beginners Make</h3><p>❌ Using the AWS Root Account for daily work.</p><p>❌ Sharing one IAM user across the entire team.</p><p>❌ Giving every user AdministratorAccess.</p><p>❌ Storing AWS Access Keys directly in application code.</p><p>❌ Ignoring Multi-Factor Authentication (MFA).</p><h3>Best Practices</h3><p>✔ Never use the Root User for everyday tasks.</p><p>✔ Enable MFA for privileged accounts.</p><p>✔ Follow the Principle of Least Privilege.</p><p>✔ Use IAM Roles instead of long-term access keys whenever possible.</p><p>✔ Rotate credentials regularly.</p><p>✔ Review IAM permissions periodically.</p><h3>Troubleshooting Scenario</h3><h3>Problem</h3><p>A developer receives an <strong>“AccessDenied”</strong> error while uploading files to an S3 bucket.</p><h3>Investigation</h3><ul><li>The IAM user exists.</li><li>The S3 bucket exists.</li><li>Network connectivity is fine.</li></ul><p>After reviewing the attached IAM Policy, you discover that s3:PutObject permission is missing.</p><h3>Solution</h3><p>Update the IAM policy to include the required action, then verify access again.</p><p>This simple permission issue is one of the most common AWS troubleshooting tasks.</p><h3>Interview Questions</h3><ol><li>What is AWS IAM?</li><li>Difference between IAM Users, Groups, and Roles?</li><li>Why should we avoid using the Root Account?</li><li>What is the Principle of Least Privilege?</li><li>Why are IAM Roles preferred over Access Keys?</li><li>How would you troubleshoot an “AccessDenied” error in AWS?</li></ol><h3>Hands-on Exercise</h3><p>Today, try the following in your AWS Free Tier account:</p><ol><li>Create an IAM User.</li><li>Create an IAM Group.</li><li>Attach a managed policy to the group.</li><li>Add the user to the group.</li><li>Enable MFA for the user.</li><li>Create an IAM Role for an EC2 instance and explore how roles provide temporary credentials.</li></ol><h3>Key Takeaways</h3><p>IAM is much more than creating users and assigning permissions. It is the backbone of AWS security.</p><p>Whether you’re deploying applications, managing infrastructure, or building CI/CD pipelines, understanding IAM is essential for every Cloud and DevOps engineer.</p><p>Master IAM early, and you’ll build secure AWS environments with confidence.</p><p>See you on <strong>Day 3</strong>, where we’ll explore Amazon EC2 and how production applications are hosted on AWS.</p><p>#AWS #IAM #CloudSecurity #DevOps #AWSLearning #CloudComputing #LearningJourney</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8404655db87f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Global Infrastructure | Regions, Availability Zones & Edge Locations]]></title>
            <link>https://archithadevops.medium.com/aws-global-infrastructure-regions-availability-zones-edge-locations-c1dc05a96a37?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1dc05a96a37</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 04:40:31 GMT</pubDate>
            <atom:updated>2026-08-04T04:40:31.024Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Whenever someone starts learning AWS, the first topic they encounter is AWS Global Infrastructure.</p><p>Most tutorials simply define Regions and Availability Zones. However, understanding <em>why</em> AWS designed its infrastructure this way is much more important.</p><p>As DevOps engineers, we don’t choose Regions randomly. Every infrastructure decision impacts availability, latency, disaster recovery, compliance, and cost.</p><p>In this article, we’ll understand AWS Global Infrastructure using real production examples rather than textbook definitions.</p><h3>Real Production Scenario</h3><p>Imagine your company owns an online shopping platform.</p><p>During the Diwali sale, more than <strong>500,000 customers</strong> visit the application.</p><p>If the entire application is deployed inside one physical data center and that data center experiences a power failure, the entire website becomes unavailable.</p><p>That means:</p><ul><li>Customers cannot place orders.</li><li>Payments fail.</li><li>Revenue stops immediately.</li><li>The company’s reputation suffers.</li></ul><p>AWS solves this problem through its Global Infrastructure.</p><h3>Understanding Regions</h3><p>A Region is a separate geographical location where AWS operates multiple data centers.</p><p>Examples include:</p><ul><li>Mumbai</li><li>Singapore</li><li>Frankfurt</li><li>Virginia</li></ul><p>Companies choose Regions based on:</p><ul><li>Customer location</li><li>Legal compliance</li><li>Latency</li><li>Cost</li></ul><h3>Example</h3><p>If your users are mostly located in India, deploying the application in Mumbai usually provides lower latency than deploying it in North America.</p><h3>Availability Zones</h3><p>Inside every Region are multiple Availability Zones.</p><p>Each Availability Zone has:</p><ul><li>Independent power</li><li>Independent cooling</li><li>Independent networking</li></ul><p>If one Availability Zone becomes unavailable, workloads running in another Availability Zone continue serving traffic.</p><p>This is why production applications are deployed across multiple Availability Zones.</p><h3>Real-Time Example</h3><p>Suppose an application runs:</p><ul><li>EC2 Instance A in AZ-1</li><li>EC2 Instance B in AZ-2</li><li>Application Load Balancer in front</li><li>RDS Multi-AZ</li></ul><p>If AZ-1 experiences a failure:</p><ul><li>The load balancer routes traffic to AZ-2.</li><li>RDS automatically fails over to the standby instance.</li><li>Users experience little or no downtime.</li></ul><p>This is exactly why high availability matters.</p><h3>Common Beginner Mistake</h3><p>Many beginners deploy:</p><ul><li>One EC2 instance</li><li>One Availability Zone</li><li>No backups</li></ul><p>This works for learning but creates a single point of failure in production.</p><h3>Troubleshooting Scenario</h3><h3>Problem</h3><p>Users report:</p><blockquote><em>“The application is down.”</em></blockquote><p>CloudWatch shows the EC2 instance is unreachable.</p><p>Investigation reveals that the Availability Zone hosting the instance is experiencing issues.</p><h3>Solution</h3><ul><li>Deploy instances in multiple Availability Zones.</li><li>Use an Application Load Balancer.</li><li>Configure Auto Scaling.</li><li>Enable Multi-AZ for RDS.</li></ul><p>This architecture prevents a single Availability Zone failure from affecting the application.</p><h3>Interview Questions</h3><ul><li>What is an AWS Region?</li><li>What is an Availability Zone?</li><li>Why should applications run across multiple Availability Zones?</li><li>Difference between Region and Availability Zone?</li><li>What is an Edge Location?</li><li>How does Multi-AZ improve availability?</li></ul><h3>Hands-on</h3><ol><li>Create an AWS account.</li><li>Open the AWS Console.</li><li>Switch between Regions.</li><li>View available Availability Zones.</li><li>Launch an EC2 instance.</li><li>Observe where it is created.</li><li>Explore the AWS Global Infrastructure map.</li></ol><h3>Summary</h3><p>Understanding AWS Global Infrastructure is the foundation of everything else you’ll learn in AWS.</p><p>When you understand Regions, Availability Zones, and Edge Locations, designing reliable cloud architectures becomes much easier.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1dc05a96a37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 10: End-to-End Terraform Project (Production-Style AWS Architecture)]]></title>
            <link>https://archithadevops.medium.com/day-10-end-to-end-terraform-project-production-style-aws-architecture-9659ef540db0?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9659ef540db0</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[kuberenetes]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Wed, 20 May 2026 03:23:58 GMT</pubDate>
            <atom:updated>2026-05-20T03:24:05.922Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the last 9 days, we covered:</p><ul><li>Variables</li><li>Modules</li><li>State management</li><li>Workspaces</li><li>CI/CD</li><li>Security</li></ul><p>Now it’s time to bring everything together into a <strong>real-world Terraform project</strong>.</p><h3>🏗️ Real Production Scenario</h3><p>Your company wants to deploy a web application on AWS.</p><p>Requirements:</p><ul><li>Secure network isolation</li><li>Public access to application</li><li>Scalable architecture</li><li>Infrastructure automation</li></ul><p>Instead of manually creating everything in AWS Console, we’ll automate it using Terraform.</p><h3>📐 Architecture Overview</h3><p>Our setup includes:</p><ul><li><strong>VPC</strong></li><li><strong>Public Subnets</strong></li><li><strong>Internet Gateway</strong></li><li><strong>Route Tables</strong></li><li><strong>Security Groups</strong></li><li><strong>EC2 Instances</strong></li><li><strong>Application Load Balancer (ALB)</strong></li></ul><h3>🌐 Why This Architecture Matters</h3><p>In real DevOps environments:</p><ul><li>Applications should not directly expose servers</li><li>Traffic should go through a Load Balancer</li><li>Infrastructure must be reproducible</li></ul><p>This architecture is commonly used for:</p><ul><li>Web applications</li><li>Microservices</li><li>Internal platforms</li></ul><h3>⚙️ Step 1: Create VPC</h3><pre>resource &quot;aws_vpc&quot; &quot;main&quot; {<br>  cidr_block = &quot;10.0.0.0/16&quot;</pre><pre>  tags = {<br>    Name = &quot;prod-vpc&quot;<br>  }<br>}</pre><h3>⚙️ Step 2: Create Public Subnet</h3><pre>resource &quot;aws_subnet&quot; &quot;public&quot; {<br>  vpc_id                  = aws_vpc.main.id<br>  cidr_block              = &quot;10.0.1.0/24&quot;<br>  map_public_ip_on_launch = true</pre><pre>  tags = {<br>    Name = &quot;public-subnet&quot;<br>  }<br>}</pre><h3>⚙️ Step 3: Internet Gateway</h3><pre>resource &quot;aws_internet_gateway&quot; &quot;gw&quot; {<br>  vpc_id = aws_vpc.main.id<br>}</pre><h3>⚙️ Step 4: Security Group</h3><pre>resource &quot;aws_security_group&quot; &quot;web_sg&quot; {<br>  vpc_id = aws_vpc.main.id</pre><pre>  ingress {<br>    from_port   = 80<br>    to_port     = 80<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>}</pre><h3>⚙️ Step 5: EC2 Instance</h3><pre>resource &quot;aws_instance&quot; &quot;web&quot; {<br>  ami           = &quot;ami-0f58b397bc5c1f2e8&quot;<br>  instance_type = &quot;t2.micro&quot;<br>  subnet_id     = aws_subnet.public.id<br>  security_groups = [aws_security_group.web_sg.id]</pre><pre>  user_data = &lt;&lt;-EOF<br>              #!/bin/bash<br>              yum install nginx -y<br>              systemctl start nginx<br>              EOF<br>}</pre><h3>⚙️ Step 6: Application Load Balancer</h3><pre>resource &quot;aws_lb&quot; &quot;app_lb&quot; {<br>  name               = &quot;app-load-balancer&quot;<br>  internal           = false<br>  load_balancer_type = &quot;application&quot;<br>  subnets            = [aws_subnet.public.id]<br>}</pre><p>Now traffic flows:</p><pre>Users → ALB → EC2 → Application</pre><h3>⚠️ Real Troubleshooting Scenarios</h3><h3>❌ Issue 1: EC2 Not Reachable</h3><p><strong>Why it happens:</strong></p><ul><li>No Internet Gateway</li><li>Route table missing</li></ul><p>✅ <strong>Fix:</strong><br> Ensure subnet routes internet traffic correctly.</p><h3>❌ Issue 2: Load Balancer Health Check Fails</h3><p><strong>Why it happens:</strong></p><ul><li>Nginx not running</li><li>Port 80 blocked</li></ul><p>✅ <strong>Fix:</strong></p><ul><li>Check security group</li><li>Verify service status</li></ul><h3>❌ Issue 3: Terraform Dependency Errors</h3><p>Example:</p><ul><li>ALB created before subnet exists</li></ul><p>✅ <strong>Fix:</strong><br> Terraform usually handles dependencies automatically via references.</p><h3>🔐 Production Best Practices</h3><p>In real companies:</p><p>✅ Use modules<br> ✅ Store state remotely<br> ✅ Use CI/CD pipelines<br> ✅ Avoid hardcoded values<br> ✅ Use private subnets for databases</p><h3>💡 Biggest Learning from This Challenge</h3><p>Terraform is not just about:<br> 👉 Creating resources</p><p>It’s about:</p><ul><li>Automation</li><li>Standardization</li><li>Scalability</li><li>Reliability</li></ul><p>This is how modern DevOps teams manage infrastructure.</p><h3>🧠 Final Pro Tip</h3><p>A strong Terraform engineer understands:</p><ul><li>Architecture</li><li>Networking</li><li>Security</li><li>Automation — not just syntax.</li></ul><h3>✅ Key Takeaways</h3><ul><li>Terraform can automate complete cloud infrastructure</li><li>Real production setups require networking + security + scalability</li><li>Infrastructure as Code improves consistency and collaboration</li></ul><p>🎉 That’s the end of the 10-Day Terraform Challenge!</p><p>Next step:<br> 👉 Build projects<br> 👉 Contribute to GitHub<br> 👉 Practice real scenarios<br> 👉 Keep learning DevOps deeply</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9659ef540db0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 9: Terraform Security & Best Practices (Secrets, IAM & Real Breach Scenarios)]]></title>
            <link>https://archithadevops.medium.com/day-9-terraform-security-best-practices-secrets-iam-real-breach-scenarios-d89b00adbb4a?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d89b00adbb4a</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Tue, 05 May 2026 06:55:36 GMT</pubDate>
            <atom:updated>2026-05-05T06:55:36.145Z</atom:updated>
            <content:encoded><![CDATA[<p>By Day 8, you’ve automated Terraform using CI/CD. But here’s the uncomfortable truth:</p><p>👉 Most cloud breaches are not due to hacks…<br> 👉 They’re due to <strong>misconfigurations</strong></p><p>And Terraform can either:</p><ul><li><strong>Secure your infrastructure</strong> ✅</li><li>Or expose everything ❌</li></ul><h3>🔥 Real-Time Scenario</h3><p>A developer pushes Terraform code to GitHub:</p><pre>provider &quot;aws&quot; {<br>  access_key = &quot;AKIA123456&quot;<br>  secret_key = &quot;abcd1234&quot;<br>}</pre><p>💥 Result:</p><ul><li>Credentials leaked</li><li>Bots scan GitHub</li><li>AWS account compromised within minutes</li></ul><p>This is not theoretical — it happens <em>daily</em>.</p><h3>🔐 Rule #1: NEVER Hardcode Secrets</h3><p>❌ Bad practice:</p><ul><li>Access keys in .tf files</li><li>Passwords in variables</li></ul><h3>✅ Secure Ways to Handle Secrets</h3><h3>1. Environment Variables</h3><pre>export AWS_ACCESS_KEY_ID=&quot;your-key&quot;<br>export AWS_SECRET_ACCESS_KEY=&quot;your-secret&quot;</pre><p>Used in:</p><ul><li>Local development</li><li>CI/CD pipelines</li></ul><h3>2. CI/CD Secret Managers</h3><p>In:</p><ul><li>GitHub Actions → GitHub Secrets</li><li>Jenkins → Credentials store</li></ul><p>👉 Secrets are encrypted and not exposed in logs</p><h3>3. AWS IAM Roles (Best Practice)</h3><p>Instead of using keys:</p><p>👉 Assign IAM role to EC2 / pipeline</p><p>✔ No credentials stored<br> ✔ More secure<br> ✔ Industry standard</p><h3>🔍 IAM: The Most Important Security Layer</h3><p>IAM (Identity &amp; Access Management) controls:</p><ul><li>Who can access AWS</li><li>What actions they can perform</li></ul><h3>⚠️ Real Mistake #1: Using Admin Access</h3><pre>{<br>  &quot;Action&quot;: &quot;*&quot;,<br>  &quot;Resource&quot;: &quot;*&quot;<br>}</pre><p>💥 Problem:</p><ul><li>Full access to everything</li><li>Huge security risk</li></ul><h3>✅ Best Practice: Least Privilege Principle</h3><p>Give only required permissions:</p><p>Example:</p><ul><li>EC2 access → EC2 only</li><li>S3 access → S3 only</li></ul><h3>⚠️ Real Mistake #2: Storing Terraform State Insecurely</h3><p>Remember Day 3?</p><p>👉 State file contains:</p><ul><li>Resource details</li><li>Sometimes sensitive data</li></ul><h3>❌ Bad Practice:</h3><ul><li>Local state</li><li>Public S3 bucket</li></ul><h3>✅ Secure Setup:</h3><ul><li>Private S3 bucket</li><li>Enable encryption</li><li>Restrict access via IAM</li></ul><h3>⚠️ Real Mistake #3: Secrets in Terraform State</h3><p>Example:</p><ul><li>DB passwords</li><li>API keys</li></ul><p>💥 Stored in terraform.tfstate</p><h3>✅ Fix:</h3><p>Mark variables as sensitive:</p><pre>variable &quot;db_password&quot; {<br>  type      = string<br>  sensitive = true<br>}</pre><h3>⚠️ Real Mistake #4: No Logging or Monitoring</h3><p>Without logs:<br> 👉 You don’t know what changed</p><h3>✅ Fix:</h3><p>Enable:</p><ul><li>AWS CloudTrail</li><li>Logging for Terraform runs</li></ul><h3>💡 Why This Matters in Production</h3><p>In real DevOps:</p><ul><li>Security is not optional</li><li>One mistake = major incident</li><li>Terraform amplifies both good &amp; bad practices</li></ul><h3>🧠 Pro Tip (Real Experience)</h3><p>Golden security checklist:</p><p>✔ No hardcoded secrets<br> ✔ Use IAM roles<br> ✔ Encrypt state<br> ✔ Use least privilege<br> ✔ Store secrets securely</p><h3>✅ Key Takeaways</h3><ul><li>Never expose credentials in Terraform</li><li>Use IAM roles instead of access keys</li><li>Secure Terraform state properly</li><li>Follow least privilege principle</li></ul><p>👉 In Day 10, we’ll build a <strong>complete production-ready Terraform project (VPC + EC2 + ALB)</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d89b00adbb4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 8: Terraform with CI/CD (Jenkins & GitHub Actions in Real DevOps)]]></title>
            <link>https://archithadevops.medium.com/day-8-terraform-with-ci-cd-jenkins-github-actions-in-real-devops-c5840cfe3fc5?source=rss-f4b2f36b10c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5840cfe3fc5</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[ArchithaDevOps]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 05:54:17 GMT</pubDate>
            <atom:updated>2026-04-30T05:54:17.350Z</atom:updated>
            <content:encoded><![CDATA[<p>By Day 7, you’ve built reusable, environment-aware Terraform setups. But here’s the reality in production:</p><p>👉 Engineers don’t run terraform apply manually.</p><p>Why?</p><ul><li>No audit trail ❌</li><li>Risk of human error ❌</li><li>No approval mechanism ❌</li></ul><p>Instead, everything runs through <strong>CI/CD pipelines</strong>.</p><h3>🔥 Real-Time Scenario</h3><p>Your team wants to deploy infrastructure changes:</p><ol><li>Developer pushes code to Git</li><li>Pipeline runs Terraform</li><li>Changes are reviewed</li><li>Approved → deployed</li></ol><p>This ensures:<br> ✅ Automation<br> ✅ Safety<br> ✅ Visibility</p><h3>🧰 Tools Used</h3><ul><li>Jenkins</li><li>GitHub Actions</li></ul><p>Both are widely used for Terraform automation.</p><h3>⚙️ Pipeline Workflow (Industry Standard)</h3><p>Typical Terraform pipeline:</p><ol><li><strong>Checkout Code</strong></li><li><strong>Terraform Init</strong></li><li><strong>Terraform Validate</strong></li><li><strong>Terraform Plan</strong></li><li><strong>Manual Approval</strong></li><li><strong>Terraform Apply</strong></li></ol><h3>⚙️ Example: GitHub Actions Pipeline</h3><p>Create .github/workflows/terraform.yml:</p><pre>name: Terraform CI/CD</pre><pre>on:<br>  push:<br>    branches:<br>      - main</pre><pre>jobs:<br>  terraform:<br>    runs-on: ubuntu-latest</pre><pre>    steps:<br>      - name: Checkout<br>        uses: actions/checkout@v3</pre><pre>      - name: Setup Terraform<br>        uses: hashicorp/setup-terraform@v2</pre><pre>      - name: Terraform Init<br>        run: terraform init</pre><pre>      - name: Terraform Validate<br>        run: terraform validate</pre><pre>      - name: Terraform Plan<br>        run: terraform plan</pre><h3>⚙️ Adding Manual Approval (Important)</h3><p>In real production:</p><p>👉 You NEVER auto-apply to production</p><p>Options:</p><ul><li>GitHub Environments (approval gates)</li><li>Jenkins manual input step</li></ul><h3>⚙️ Jenkins Pipeline Example</h3><pre>pipeline {<br>  agent any</pre><pre>  stages {<br>    stage(&#39;Init&#39;) {<br>      steps {<br>        sh &#39;terraform init&#39;<br>      }<br>    }</pre><pre>    stage(&#39;Plan&#39;) {<br>      steps {<br>        sh &#39;terraform plan&#39;<br>      }<br>    }</pre><pre>    stage(&#39;Approval&#39;) {<br>      steps {<br>        input message: &quot;Approve Terraform Apply?&quot;<br>      }<br>    }</pre><pre>    stage(&#39;Apply&#39;) {<br>      steps {<br>        sh &#39;terraform apply -auto-approve&#39;<br>      }<br>    }<br>  }<br>}</pre><h3>⚠️ Real Troubleshooting Scenarios</h3><h3>❌ Issue 1: Pipeline Fails at terraform init</h3><p><strong>Why it happens:</strong></p><ul><li>Backend (S3) not accessible</li><li>Credentials missing</li></ul><p>✅ <strong>Fix:</strong></p><ul><li>Set AWS credentials as secrets</li><li>Verify IAM permissions</li></ul><h3>❌ Issue 2: Terraform Plan Shows Unexpected Changes</h3><p>💥 Example:</p><ul><li>Resources being recreated</li></ul><p><strong>Why it happens:</strong></p><ul><li>State mismatch</li><li>Manual changes in AWS</li></ul><p>✅ <strong>Fix:</strong></p><ul><li>Run terraform refresh</li><li>Avoid manual infra changes</li></ul><h3>❌ Issue 3: Apply Runs Without Approval (Danger 🚨)</h3><p><strong>Why it happens:</strong></p><ul><li>No approval stage configured</li></ul><p>✅ <strong>Fix:</strong></p><ul><li>Add manual gate before apply</li></ul><h3>❌ Issue 4: Secrets Exposed in Logs</h3><p><strong>Why it happens:</strong></p><ul><li>Hardcoded credentials</li></ul><p>✅ <strong>Fix:</strong></p><ul><li>Use:</li><li>GitHub Secrets</li><li>Jenkins Credentials Store</li></ul><h3>💡 Why This Matters in Production</h3><p>In real DevOps teams:</p><ul><li>Every infra change is tracked via Git</li><li>Pipelines enforce validation</li><li>Approvals prevent accidental deployments</li></ul><p>Without CI/CD:<br> 👉 High risk of production outages</p><p>With CI/CD:<br> 👉 Safe, automated, auditable deployments</p><h3>🧠 Pro Tip (Real Experience)</h3><p>Golden rule:</p><p>👉 <strong>“Plan in CI, Apply after approval”</strong></p><p>Never skip:</p><ul><li>terraform validate</li><li>terraform plan</li></ul><h3>✅ Key Takeaways</h3><ul><li>Terraform should run through CI/CD pipelines</li><li>Never apply directly in production</li><li>Approval stages are critical</li><li>Secure credentials using secrets</li></ul><p>👉 In Day 9, we’ll cover <strong>Terraform Security &amp; Best Practices</strong>, including secrets handling and IAM strategies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5840cfe3fc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>