<?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 Sahadev Grover on Medium]]></title>
        <description><![CDATA[Stories by Sahadev Grover on Medium]]></description>
        <link>https://medium.com/@sahdevgrover02?source=rss-e6e8a42df3c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1P3TL0t_mrF27cdl6aoi7A.png</url>
            <title>Stories by Sahadev Grover on Medium</title>
            <link>https://medium.com/@sahdevgrover02?source=rss-e6e8a42df3c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:29:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sahdevgrover02/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[❄️ Snowflake Architecture & Warehouses – Explained Simply, with Real-World Examples]]></title>
            <link>https://medium.com/@sahdevgrover02/%EF%B8%8F-snowflake-architecture-warehouses-explained-simply-with-real-world-examples-3172a63897a1?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3172a63897a1</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 16:20:24 GMT</pubDate>
            <atom:updated>2025-12-05T17:02:41.935Z</atom:updated>
            <content:encoded><![CDATA[<p>When most people say <strong>“Snowflake is a cloud-based data warehouse,”</strong> they are correct — but they miss the deeper truth. Snowflake is not just a warehouse.<br>It is a <strong>cloud-native SaaS data platform</strong> with a <strong>unique architecture</strong> that separates <strong>Storage, Compute, and Services</strong> — giving it unmatched <strong>speed, scalability, and simplicity</strong>.</p><p>In this article, I break down Snowflake’s architecture in the <strong>most beginner-friendly</strong> way while keeping the technical depth required to truly master it.</p><h3>⭐ What Makes Snowflake Special?</h3><p>Snowflake is built differently from traditional warehouses:</p><ul><li><strong>No servers</strong> to manage</li><li><strong>No infrastructure</strong> headaches</li><li>Everything communicates through <strong>cloud APIs</strong></li><li><strong>Storage and Compute scale independently</strong></li><li>You <strong>pay only for what you use</strong></li></ul><p>It supports multiple languages — <strong>SQL, Python, JS, Scala, Java, C#, and more</strong> — but the real magic lies in the architecture.</p><h3>🧠 Snowflake Architecture (The 3-Layer Engine)</h3><p>Snowflake has <strong>three core layers</strong>:</p><ol><li><strong>Storage Layer</strong> — where your data lives</li><li><strong>Compute / Query Processing Layer</strong> — where queries run</li><li><strong>Cloud Services Layer</strong> — the brain</li></ol><p>Let’s break them down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GMdNewlVU_FLCvWFn3HWlQ.png" /></figure><h3>1️⃣ Storage Layer — Where Your Data Lives</h3><p>Your data is <strong>not stored inside Snowflake</strong>. It lives in your cloud provider:</p><ul><li><strong>AWS → S3</strong></li><li><strong>Azure → Blob Storage</strong></li><li><strong>GCP → Google Cloud Storage</strong></li></ul><blockquote>Snowflake manages and optimises the stored data.</blockquote><h3>🔍 Row vs Column Storage (Super Important)</h3><p><strong>Row-based storage (OLTP):</strong></p><p>id │ name │ age<br> 1 │ Edward │ 23<br> 2 │ Garrick │ 35</p><p><strong>Columnar storage (Snowflake):</strong></p><ul><li>id: [1, 2]</li><li>name: [Edward, Garrick]</li><li>age: [23, 35]</li></ul><blockquote>Snowflake uses <strong>columnar</strong>, compressed <strong>micro-partitions (~16MB)</strong> stored as BLOBs.</blockquote><h3>⚡ Why columnar format makes queries faster</h3><p>Query:</p><pre>SELECT name FROM users;</pre><p>Snowflake reads <strong>only the </strong><strong>name column blocks</strong> →<br> <strong>Less data scanned = faster + cheaper.</strong></p><h3>2️⃣ Query Processing Layer — The Compute Engine</h3><p>When you create a warehouse:</p><pre>CREATE WAREHOUSE user_wh WAREHOUSE_SIZE = &#39;LARGE&#39;;</pre><p>Snowflake spins up a <strong>cluster of cloud instances</strong> (e.g., EC2 on AWS).<br>These clusters are called <strong>Virtual Warehouses</strong>.</p><h3>🏗 Virtual Warehouses = Compute + Cache</h3><p>They handle:</p><ul><li>Running SQL queries</li><li>Reading data from storage</li><li>Joins, aggregations, sorting</li><li>Caching data for faster re-runs</li></ul><blockquote><strong>Compute and storage are completely independent.</strong></blockquote><h3>📈 Scaling Types</h3><h3>1. Scale-Up (Vertical)</h3><p>Move XS → Small → Medium → Large<br> More power = faster queries.</p><h3>2. Scale-Out (Horizontal)</h3><p>Use <strong>multi-cluster warehouses</strong><br> Ideal for huge loads / BI dashboards / many users.</p><h3>3️⃣ Cloud Services Layer — The Brain of Snowflake</h3><p>This layer handles:</p><ul><li><strong>Metadata</strong></li><li><strong>Query parsing + optimization</strong></li><li><strong>Security (RBAC, IAM)</strong></li><li><strong>Transactions (ACID)</strong></li><li><strong>Auto-scaling</strong></li><li><strong>Orchestration + monitoring</strong></li></ul><p>Whenever you run a query, this layer decides:</p><ul><li>Which warehouse to use</li><li>How to optimise the plan</li><li>If you have access</li><li>Whether Snowflake can reuse the <strong>result cache</strong></li></ul><p>This is the <strong>control plane</strong> of Snowflake.</p><h3>⚙️ Understanding Snowflake Warehouses (Compute)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D_kZ-y6hQ4BNR2SgqMY2yw.png" /></figure><p>A Snowflake warehouse = <strong>the compute engine</strong>.</p><h3>Warehouse Sizes:</h3><ul><li><strong>X-Small</strong> — best for learning</li><li><strong>Small</strong> — small teams / ETL</li><li><strong>Medium/Large</strong> — heavy pipelines</li><li><strong>XL/XXL</strong> — massive workloads</li></ul><h3>💰 Auto-Suspend = Huge Cost Savings</h3><p>Warehouses cost money <strong>only when running</strong>.<br> Use:</p><ul><li>AUTO_SUSPEND = 60</li><li>AUTO_RESUME = TRUE</li></ul><p>Your bill will thank you.</p><h3>⚡ Snowflake Caching — The Secret Weapon</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zd3Dr9fxEmxqQS9nZC7EbQ.png" /></figure><p>Snowflake has <strong>three cache layers</strong>:</p><h3>1. Result Cache (24 hours)</h3><p>Same query within 24 hours = <strong>instant + free</strong>.</p><h3>2. Warehouse Cache (Memory)</h3><p>Stores recently scanned data blocks.<br> <strong>Cleared when warehouse suspends.</strong></p><h3>3. Storage Layer (slowest path)</h3><p>Used when caches miss.</p><h3>🔁 End-to-End Example</h3><h3>Query 1:</h3><pre>SELECT * FROM orders;</pre><p>Reads from storage → <strong>slowest + costs credits</strong><br> Updates result + warehouse cache.</p><h3>Query 2 (same query, within 24 hours):</h3><p>Uses <strong>result cache</strong> → <strong>fast + free</strong>.</p><h3>Query 3 (slightly different):</h3><pre>SELECT COUNT(*) FROM orders;</pre><p>Uses <strong>warehouse cache</strong> → faster but still costs compute.</p><h3>If warehouse suspends:</h3><ul><li>Warehouse cache → ❌ cleared</li><li>Result cache → ✅ still available</li></ul><h3>⭐ Practical Tips (Must-Use)</h3><ul><li>Start with <strong>X-Small warehouse</strong></li><li>Always enable <strong>auto-suspend</strong> (5–10 min)</li><li>Use <strong>LIMIT</strong> when exploring big tables</li><li>Share warehouses for better <strong>cache hit</strong></li><li>Sometimes <strong>scaling up</strong> for 1 minute is cheaper than waiting 10 minutes on XS</li></ul><h3>🔚 Final Thought</h3><p>Snowflake stands out as one of the most powerful, scalable, and cloud-native data platforms in the industry.<br> Its unique separation of <strong>Storage, Compute, and Cloud Services</strong> enables unmatched performance, flexibility, and cost-efficiency compared to traditional warehouses.</p><p>Throughout this article, we explored Snowflake’s core architecture — from columnar micro-partitions and virtual warehouses to the brain-like Cloud Services layer that optimizes every query behind the scenes. These concepts are not just theoretical; they form the backbone of real-world data engineering, analytics, and enterprise pipelines.</p><p>Whether it’s <strong>handling massive workloads</strong>, <strong>reducing costs through caching</strong>, <strong>autoscaling compute</strong>, or enabling <strong>zero-management architecture</strong>, Snowflake delivers industry-grade capabilities that teams rely on daily.</p><h3>🔹 An important note</h3><p>These Snowflake deep-dives will help you strengthen your <strong>data engineering</strong>, <strong>cloud</strong>, and <strong>analytics</strong> foundations.<br> They will also help you shine in <strong>interviews</strong>, <strong>practical projects</strong>, and <strong>real production systems</strong>.</p><p>And this is just the beginning.</p><p>I will be sharing more <strong>exciting, practical, industrial insights</strong> from my own day-to-day Snowflake experience — things you won’t find easily anywhere else on the internet.</p><h3>⭐ Stay connected</h3><p>Follow <strong>Sahdev Grover</strong> and share this article with your colleagues and peers so everyone can grow together in their cloud journey.</p><p>Stay tuned for more insights in our <strong>#SnowflakeWithSahdev</strong> series.</p><p>Also, don’t forget to follow me on LinkedIn for daily content on <strong>Snowflake, SQL, Python, AWS, and Data Engineering</strong>:<br> 👉 <a href="http://www.linkedin.com/in/sahdevgrover">www.linkedin.com/in/sahdevgrover</a></p><p>If you have any queries, doubts, or need guidance, feel free to reach out.<br> Your support and feedback mean a lot as we continue exploring the world of modern data platforms.</p><h3>THANK YOU FOR READING MY ARTICLE!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3172a63897a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UNDERSTANDING AMAZON RDS — PART 2]]></title>
            <link>https://medium.com/@sahdevgrover02/understanding-amazon-rds-part-2-9519eab9a169?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9519eab9a169</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Wed, 24 Jan 2024 05:58:55 GMT</pubDate>
            <atom:updated>2024-01-24T05:58:55.863Z</atom:updated>
            <content:encoded><![CDATA[<h3>UNDERSTANDING AMAZON RDS — PART 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*afOqO2PO0ngG2cZFxg738w.png" /></figure><p>Hello, everyone!</p><p><strong>Welcome to the exciting world of the AWS Zero to Hero series!</strong></p><p>In today’s journey, we’re taking a <strong>deep dive into the Amazon RDS</strong>, covering everything from the <strong>fundamentals to advanced topics</strong>.</p><p>This blog is <strong>Part 2 of our Amazon RDS adventure</strong>, and I’ve carefully crafted it to be your one-stop shop for all things Amazon RDS.</p><blockquote>Don’t miss out on this opportunity!!</blockquote><p>Read the entire blog, and you’ll discover everything you need to know about this essential AWS service, all in one convenient place.</p><blockquote><em>Rest assured, by the end, </em><strong><em>you’ll have the knowledge you need to master Amazon RDS </em></strong><em>— no need to look anywhere else.</em></blockquote><p><strong>Happy reading in advance!</strong></p><h3>SNAPSHOT IN RDS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*7Cr-cHtBQBuUYYwnXOh5Ww.png" /></figure><ul><li>A snapshot is a <strong>specific type of backup </strong>in Amazon RDS.</li><li>It <strong>captures the entire state </strong>of your database at a <strong>specific point in time</strong>, including data, settings, and configurations.</li><li>Snapshots are <strong>stored in Amazon S3</strong>, a highly durable and available storage service provided by AWS.</li><li>You can create <strong>snapshots manually </strong>or set up <strong>automated snapshot </strong>schedules to capture regular backups.</li></ul><blockquote>In simple terms, <br>An Amazon RDS snapshot is like taking a picture of your database family at a specific moment. It captures everything about your database — data, settings, and configurations. These snapshots are stored in a secure photo album called Amazon S3, provided by AWS. You can take these pictures manually or set up a schedule for automatic snapshots.</blockquote><h3><strong>STORAGE AUTO SCALING IN RDS</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*Kxcm_BLBXbKmu7Lm7_9UGA.png" /></figure><p>We have an RDS database for our applications, and the amount of data it stores can vary.</p><p>Let’s understand this in a very simple way: there’s a feature that helps us handle the <strong>storage space automatically</strong> without you having to do it manually</p><h4><strong>Dynamic Storage Increase:</strong></h4><p>This feature allows your RDS database to increase its storage space on-the-fly. So, if your database is getting close to running out of space, it automatically adds more storage.</p><h4>Automatic Scaling:</h4><p>When the RDS system notices that your database is running low on free storage space, it takes care of scaling up the storage by itself.</p><p>This means you don’t have to worry about doing it manually.</p><h4>Predefined Conditions:</h4><p>There are some conditions set to trigger this automatic scaling. For instance:</p><ul><li>If the free storage is less than <strong>10%</strong> of the total allocated storage.</li><li>If the low-storage situation lasts for at least 5 minutes.</li><li>If 6 hours have passed since the last time the system made changes to the storage.</li></ul><h4>Maximum Storage Limit:</h4><p>You can also set a <strong>maximum limit for how much storage</strong> your database can use. This ensures that your database doesn’t go beyond a certain size, which can be useful for budgeting or system management.</p><h4>Useful for Unpredictable Workloads:</h4><p>This feature is particularly <strong>handy for applications</strong> where the amount of data being handled can vary a lot. It ensures your database can adapt to the changing storage needs without you constantly adjusting it.</p><h4>Compatibility with Different Database Engines:</h4><p>It works with various types of databases, like <strong>MariaDB, MySQL, PostgreSQL, SQL Server, and Oracle.</strong> So, regardless of the database engine you’re using, this feature should be applicable.</p><p>In simpler terms, it’s like having a <strong>smart system</strong> that takes care of making sure your database always has enough room to store data, and it does this all on its own based on some rules you’ve set.</p><p><strong>MAKE SENSE!</strong></p><h3>RDS READ REPLICAS FOR READ SCALABILITY</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*gsXjbvIzb9QT4rM2vs7kOQ.png" /></figure><p>Let’s Understand this again in a very simple way;</p><h4>Up to 15 Read Replicas:</h4><p>Think of a Read Replica as a<strong> copy of your main database</strong>. You can have up to 15 of these copies.</p><h4>Within AZ, Cross AZ, or Cross Region:</h4><p>These replicas can be placed in the <strong>same Availability Zone</strong> (AZ), a different <strong>AZ in the same region</strong>, or even in a completely <strong>different region</strong>.</p><h4>Replication is ASYNC (Asynchronous):</h4><p>This means that updates from the main database to the <strong>replicas don’t happen instantly.</strong></p><p>It takes a little time, so the replicas might not have the very latest data. They are eventually consistent.</p><h4>Replicas can be Promoted to their own DB:</h4><p>If you decide that one of these replicas should become the new main database, you can promote it.</p><p>It then becomes its own<strong> standalone database.</strong></p><h4>Applications must update the connection string to leverage read replicas:</h4><p>To benefit from the read replicas, applications need to be aware of them.<br> They have to use a specific connection string that includes information about these replicas. This way, the application knows to send read queries to the replicas instead of the main database, distributing the load and improving performance.</p><blockquote>In a nutshell, having Read Replicas is like having extra copies of your database that can be placed in different locations.<br> <br>They might not have the very latest data, but they help spread the workload and can be promoted to become the main database if needed.</blockquote><blockquote>Applications just need to know how to talk to them by using a specific connection string.</blockquote><h3>RDS READ REPLICAS — USE CASES</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*gsXjbvIzb9QT4rM2vs7kOQ.png" /></figure><h4>Production Database Handling Normal Load:</h4><p>Imagine you have a main database handling everyday tasks without any issues. This is your production database.</p><h4>Running a Reporting Application for Analytics:</h4><p>Now, you want to analyse data and run reports. Instead of putting extra load on the main database (which might slow things down for your regular tasks), you create a <strong>copy of the database called a Read Replica</strong>.</p><p>It’s like making a <strong>twin of your database</strong> that’s just for reading and analysing.</p><h4>Production Application Unaffected:</h4><p>While you’re busy running reports on the Read Replica, your regular applications keep working smoothly with the main production database. They’re not disturbed by the reporting activities.</p><h4>Read Replicas for SELECT (Read-Only) Statements:</h4><p>The Read Replica is specifically designed for reading data, not making changes. <br>So, your reporting application can ask questions and analyse stuff without messing up the original data.</p><p>It’s like having a <strong>copy of a book to highlight</strong> and take notes without changing the original text.</p><blockquote>In short, by creating a Read Replica, you’re making a copy of your main database to specifically handle reading and analyzing tasks.</blockquote><blockquote>This way, your regular tasks in the production database continue undisturbed.</blockquote><blockquote>It’s like having a twin just for reading and learning, without affecting the original.</blockquote><p>Let’s have some discussion over the cost!!</p><h3>RDS READ REPLICAS — NETWORK COST</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*k2U3Wn1vy1XIvtDkVpXAcw.png" /></figure><h4>Network Cost in AWS:</h4><p>When data travels from one Availability Zone (AZ) to another in Amazon Web Services (AWS), it’s like your data taking a trip on a highway.</p><p>AWS charges a fee for using their highway to move that data.</p><p>(Oh, got it! It’s like a toll where we have to pay charges when we travel from one city to another.)</p><h4>RDS Read Replicas in the Same Region:</h4><p>However, if you’re using Read Replicas for your RDS database within the same AWS region, you don’t have to pay that toll</p><p>It’s like a free pass for your data to move between replicas because they’re all in the same neighborhood (region).</p><p>(Oh, got it! No tolls. I’m in my local city, using local roads)</p><blockquote>In other words, if your Read Replicas are hanging out in the same region as the main database, you don’t get charged extra when they chat and share data with each other. It’s a cost-saving perk for keeping things close by in the AWS world.</blockquote><p>Let’s explore how to ensure disaster recovery for our database.</p><h3>RDS MULTI AZ ( DISASTER RECOVERY )</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*fTRZwEsCQSovsyG-IzapgA.png" /></figure><h4>SYNC Replication:</h4><p>Think of SYNC replication as a way for two databases to stay in sync (like having identical twin databases).</p><p>When something happens to one, the other automatically knows about it.</p><h4>One DNS Name — Automatic App Failover to Standby:</h4><p>Imagine you have an application connected to your database using a web address (DNS name).</p><p>If the main database goes down, the application automatically switches to a standby (backup) database without needing a person to do it.</p><p>(It’s like having a spare tire for your car — if one fails, you automatically switch to the backup.)</p><p>SOUNDS GOOD, RIGHT?</p><h4>Increase Availability:</h4><p>This setup is all about making sure your application stays available.</p><p>If there’s a problem with the main database, the standby one steps up without any delay, ensuring your application keeps running smoothly.</p><h4>Failover in Case of Loss:</h4><p>If there’s an issue like losing an Availability Zone (AZ), network problems, instance failure, or storage trouble, the system quickly switches to the backup to avoid any interruptions.</p><h4>No Manual Intervention in Apps:</h4><p>You don’t have to do anything manually in your applications.</p><p>They just keep working seamlessly, and if there’s ever a problem with the main database, the backup takes over automatically.</p><h4>Not Used for Scaling:</h4><p>This setup is not for making things bigger or handling more load.</p><p>It’s purely for ensuring your application doesn’t stop working if something goes wrong.</p><h4>Note on Read Replicas for Disaster Recovery (DR):</h4><p>Read Replicas can also be set up in multiple Availability Zones for disaster recovery.</p><p>If something catastrophic happens, these replicas in different zones act as backups to get things back to normal.</p><blockquote>In short, SYNC replication is like having a backup plan that kicks in automatically if something goes wrong, ensuring your application keeps running without any hiccup.</blockquote><blockquote>It’s not about making things bigger; it’s about keeping things reliable.</blockquote><h3>RDS — From Single-AZ to Multi-AZ</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*4LumHUfz77C4XZav3xmi3w.png" /></figure><p>Let’s simplify the process of achieving zero downtime operations for database modifications:</p><h4>Zero Downtime Operation (No Need to Stop the DB):</h4><p>Imagine you want to make changes to your database, but you don’t want to interrupt its operation.</p><p>You can do this without any downtime.</p><h4>Just Click on “Modify” for the Database:</h4><p>Instead of stopping or pausing the database, you just click a button that says “modify” to make the changes you need.</p><h4>Internally, the Following Happens:</h4><ul><li><strong>Snapshot is Taken:</strong></li></ul><p>It’s like taking a quick photo of your database in its current state. This snapshot captures all the data and settings.</p><ul><li><strong>New DB is Restored from the Snapshot in a New AZ:</strong></li></ul><p>Now, a fresh copy of your database is created in a different Availability Zone (AZ).</p><p>This is like making a clone of your database in a new location.</p><ul><li><strong>Synchronization is Established Between the Two Databases:</strong></li></ul><p>The original database and the newly created one are synced up.</p><p>Any changes made during the modification process are smoothly transferred from the original to the new one.</p><blockquote>So, in simple terms, making changes to your database without downtime is as easy as clicking “modify.” Behind the scenes, it takes a quick snapshot, creates a new database copy in a different zone, and ensures both copies stay in sync.</blockquote><blockquote>It’s like making upgrades to your car while it’s still running smoothly on the road.</blockquote><p><strong>📍I’m providing an example using a car since I’m fond of cars 🚘 (I hope you understand the concepts).</strong></p><h3>CONCLUSION</h3><p>In conclusion, Amazon RDS offers a comprehensive set of features to ensure the reliability, scalability, and disaster recovery of your databases.</p><p>Part 2 of our exploration covered essential aspects such as <strong>snapshots</strong> for backups, <strong>storage auto-scaling</strong> for dynamic space management, read <strong>replicas </strong>for scalability, and <strong>multi-AZ configurations</strong> for disaster recovery.</p><p>Whether it’s handling varying workloads, optimiSing costs with network considerations for read replicas, or achieving zero-downtime operations, Amazon RDS provides robust solutions for database management on the AWS platform.</p><h4>An important note:</h4><p>These blogs will undoubtedly help you ace your<strong> cloud practitioners’ skills and focus on solution architect-associated exams.</strong></p><p>Besides, they will make it easier for you to <strong>excel in your cloud journey interviews.</strong></p><blockquote>Stay tuned with me to learn exciting and informative content.</blockquote><p>Follow <a href="https://medium.com/@sahdevgrover02"><strong>Sahdev Grover</strong></a> and share these with your colleagues and peers so that they all benefit from these learnings.</p><h4>Stay tuned for more insights in our #AWSCloudWithSahdev</h4><blockquote>Also, Don’t forget to follow me on <strong>LinkedIn</strong>, where I cover all my content related to the <strong>AWS Cloud and DevOps.</strong> <a href="https://www.linkedin.com/in/sahdevgrover"><strong>https://www.linkedin.com/in/sahdevgrover</strong></a></blockquote><p>If you have any queries or require assistance, <strong>please feel free to reach out.</strong> Your <strong>feedback is highly appreciated</strong> as we continue to explore more things in the world of AWS.</p><h3>THANK YOU FOR READING MY ARTICLE!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9519eab9a169" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UNDERSTANDING AMAZON RDS — PART 1]]></title>
            <link>https://medium.com/@sahdevgrover02/understanding-amazon-rds-part-1-df32b62a2a31?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/df32b62a2a31</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[rds]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Sat, 30 Dec 2023 12:05:58 GMT</pubDate>
            <atom:updated>2023-12-30T12:05:58.688Z</atom:updated>
            <content:encoded><![CDATA[<h3>UNDERSTANDING AMAZON RDS — PART 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*afOqO2PO0ngG2cZFxg738w.png" /><figcaption>Amazon RDS</figcaption></figure><p>Hello, everyone!</p><p>W<strong>elcome to the exciting world of the AWS Zero to Hero series!</strong></p><p>In today’s journey, we’re taking a deep dive into the Amazon RDS, covering everything from the fundamentals to advanced topics.</p><p>This blog is Part 1 of our Amazon RDS adventure, and I’ve carefully crafted it to be your one-stop shop for all things Amazon RDS.</p><p>Don’t miss out on the opportunity to become an Amazon RDS expert.</p><p>Read the entire blog, and you’ll discover everything you need to know about this essential AWS service, all in one convenient place.</p><blockquote><em>Rest assured, by the end, you’ll have the knowledge you need to master Amazon RDS— no need to look anywhere else.</em></blockquote><p><strong>Happy reading in advance!</strong></p><h3><strong>INTRODUCTION TO DATABASES</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*qVQ9vlMOE-LRizb7tz22gw.png" /></figure><p>When it comes to storing data, regular methods like saving files on your computer or using cloud storage have their limits. That’s where databases step in to help organise and manage data efficiently. In this article, we’ll dive into why databases are essential and how they make working with data a whole lot easier.</p><h4>1. Why Databases Matter:</h4><p><strong>1.1 Limits of Regular Storage:</strong><br>Think about your computer’s folders or cloud storage — finding specific information gets tricky as data piles up. Plus, it’s not always quick to retrieve what you need.</p><p><strong>1.2 Introducing Databases:</strong><br>Databases are like organised data superheroes. They give a neat structure to your information, making it easy to handle and find what you’re looking for.</p><h4>2. Getting Your Data in Shape:</h4><p><strong>2.1 The Database Blueprint (Schema):</strong><br>Imagine you have a list of contacts. In a database, you’d create a blueprint (schema) defining what details each contact can have (like name, phone, and email). This keeps things tidy and prevents messy data.</p><p><strong>2.2 Friends Talking to Friends (Relationships):</strong><br>Databases let your data talk to each other. If you have a list of customers and a list of orders, you can link them. This way, you know which customer made which order — making your data smarter.</p><h4>3. Making Searches Lightning Fast:</h4><p><strong>3.1 Quick Reference (Indexing):</strong><br>Indexes in databases are like the index at the back of a book. They help the system find information faster. For instance, if you have a list of books, an index could tell you exactly where to find a book with a specific title.</p><p><strong>3.2 Picking the Right Tool (Types of Indexes):</strong><br>Different databases offer various indexing tools. It’s like choosing between a dictionary and an encyclopedia index — you use what suits your needs best.</p><h4>4. Choosing the Right Database for the Job:</h4><p><strong>4.1 Different Strokes for Different Folks:</strong><br>Not all databases are the same. Some are great for handling lots of data quickly (NoSQL databases), while others are perfect for making sure all your data is super accurate (relational databases).</p><p><strong>4.2 Pros and Cons:</strong><br>Each database has its strengths and weaknesses. It’s a bit like choosing between a fast sports car and a sturdy SUV — it depends on what you need.</p><p>So, based on our understanding of the use case of databases, we can confidently say that databases are indeed smart organisers.</p><p>They give your information a structure, make searches lightning fast, and come in different types for different tasks.</p><blockquote>So, the next time you’re dealing with loads of data, remember — databases are your secret weapon for making that data work smarter, not harder.</blockquote><p>Now that we have introduced the concept of databases, let’s delve into the database services provided by AWS, with a focus on Amazon RDS.</p><p>We’ll uncover it by understanding it in a straightforward manner, accompanied by suitable use cases and examples.</p><blockquote>Note : Amazon RDS falls under the category of relational databases.</blockquote><h3>INTRODUCTION TO AMAZON RDS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6stSAANbYG9-GkYGyjnZNg.png" /></figure><p>Relational databases have been a cornerstone of data management since the 1970s, playing a vital role in various applications such as mobile games and e-commerce platforms. The data in relational databases is organized into tables, much like traditional spreadsheets. Think of each table as a sheet within an Excel file, with rows representing individual data items (e.g., customers) and columns representing specific attributes (e.g., name, address, etc.).</p><p>Let’s understand it further with suitable examples</p><h4>1.Structured Organization of Data:</h4><p>Imagine you have a lot of information, like names, phone numbers, and addresses, and you want to keep it all in order. Spreadsheets (like Excel) and databases both help with this, but they do it in a bit different way.</p><ul><li><strong>Spreadsheets Example:</strong><br>Think of a spreadsheet as a digital table. Each row is a person, and each column is a type of information (name, phone number, address). It’s like making a list.</li><li><strong>Database Example:</strong><br>Now, imagine a database like a super-smart organizer. It not only keeps your list but also understands how different things in your list relate to each other. For instance, it knows which phone number belongs to which person. It’s like a really clever address book.</li></ul><p>As you can see, we’re dealing with relational databases, so, of course, there are relationships — a quite healthy one, haha — between data.</p><p>Let’s explore this aspect</p><h4>2. Relationships Between Data:</h4><ul><li><strong>Spreadsheets:</strong><br>In a spreadsheet, each row is kind of on its own. If you want to know something about one person, you just look in their row.</li><li><strong>Databases:</strong><br>Databases go a step further. They let you connect information. For example, if you have a list of customers and a list of orders, a database can link them. So, when you look at a customer, you can also see what orders they made. It’s like having a magical ability to connect the dots in your data.</li></ul><p>Now, the database wants to talk, and it uses SQL.</p><p>Let’s see what SQL is.</p><p>3. <strong>SQL for Queries and Lookups:</strong></p><ul><li><strong>What is SQL:</strong><br>SQL stands for Structured Query Language. It’s like a special language databases understand. You can use SQL to ask your database questions or tell it to find specific things.</li><li><strong>Example:</strong><br>Let’s say you have a database of books. With SQL, you can ask the database, “Show me all the books published in 2022.” It then gives you a neat list of just those books.</li></ul><blockquote>It’s like having a personal assistant for your data.</blockquote><p>So, databases are like the superheroes of data organization. They not only keep things in order but also make sure your data can talk to each other, and with SQL, you can easily ask them questions and get the information you need.</p><h3>AMAZON RDS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*mwMVmsx3ZnNM__XpeB7TUg.png" /></figure><p>Amazon Relational Database Service (RDS) is a robust managed database solution offered by AWS, allowing users to seamlessly create and operate databases in the cloud.</p><p>With its user-friendly interface and powerful features, Amazon RDS simplifies database management, enabling businesses to focus on their core operations.</p><h4>Six Database Engines to Choose From:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p9pYRWLagsrXRCJRFzateg.png" /></figure><p>Amazon RDS provides users with a diverse range of six relational database engines, offering flexibility and catering to various application needs. The supported engines include Microsoft SQL Server, PostgreSQL, Oracle, MariaDB, MySQL, and Amazon’s proprietary database, Aurora. This extensive selection empowers users to choose the database engine that best suits their specific application requirements.</p><ul><li><strong>Relational databases </strong>(SQL databases) <strong>use SQL as the primary language </strong>for managing and manipulating data.</li><li><strong>Non-relational databases </strong>(NoSQL databases) employ different data models and <strong>do not rely on traditional tabular structures</strong>.</li><li>RDS is optimized for <strong>Online Transaction Processing (OLTP) workloads </strong>with frequent read and write operations.</li><li>RDS takes care of operational tasks like <strong>backups, software patching, and scaling, relieving developers from infrastructure management</strong>.</li></ul><blockquote><strong>As we have discussed SQL, let’s also delve into NoSQL at a high-level overview. This way, you can easily compare both of these for your use cases</strong>.</blockquote><h4><strong>NoSQL DATABASES</strong></h4><ul><li><strong>NoSQL stands </strong>for non-SQL or <strong>non-relational databases</strong>.</li><li>NoSQL databases are <strong>designed for specific data models </strong>and offer flexible schemas for modern applications.</li><li>Benefits of NoSQL databases include <strong>flexibility</strong> in evolving the data model, <strong>scalability</strong> through distributed clusters, <strong>high performance </strong>tailored to specific data models, and <em>functionality optimized </em>for the data model.</li></ul><p><strong>Examples of NoSQL databases include key-value, document, graph, in-memory, and search databases.</strong></p><p><strong>NoSQL DATA EXAMPLE: JSON</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*SK_iw75WwlBWzmdhbXZ1UA.png" /></figure><p><strong>JSON (JavaScript Object Notation):</strong></p><ul><li>JSON stands for <strong>JavaScript Object Notation</strong>.</li><li>JSON is a widely used data format that aligns with the <strong>NoSQL database model</strong>.</li><li>It allows for the <strong>nesting of data</strong>, meaning one field can contain another JSON object or an array of objects.</li><li>JSON provides <strong>flexibility</strong> as fields can be added or modified over time without requiring a predefined schema.</li><li>It supports a variety of data types, including arrays, allowing for diverse and <strong>dynamic data structures</strong>.</li></ul><h4>ARCHITECTURE DIAGRAM FOR RDS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KDdWC5_vC-ntkS5OkwdfKQ.png" /></figure><h3><strong>ADVANTAGES OF USING RDS</strong></h3><p><strong>Managed Database Service:</strong></p><p>Amazon RDS simplifies the deployment and management of relational databases by handling routine tasks such as <strong>hardware provisioning, backups, and software patching</strong>.</p><p><strong>Database Engine Support:</strong></p><p>It supports popular databases like <strong>MySQL, PostgreSQL, Oracle, SQL Server, and Aurora</strong>, allowing you to choose the engine that best fits your application needs</p><p><strong>Automation:</strong></p><p>Amazon RDS automates tasks like <strong>hardware scaling, software patching, and backups</strong>, providing convenience and reducing administrative burden.</p><p><strong>High Availability and Scalability</strong>:</p><p>RDS ensures <strong>high availability by automatically replicating databases across multiple Availability Zones</strong>. It also offers easy scalability options to adjust compute and storage capacity as required.</p><p><strong>Enhanced Security:</strong></p><p>Amazon RDS provides security features such as<strong> network isolation</strong> using Amazon VPC, encryption at rest and in transit, and <strong>IAM-based authentication</strong>, ensuring data protection and compliance with security standards.</p><p><strong>Integration with AWS Services:</strong></p><p>RDS seamlessly <strong>integrates with other AWS services</strong>, including IAM, CloudWatch for monitoring, DMS for database migration, and the Management Console for centralized management.</p><p>When it comes to price, you need to see this :)</p><p><strong>Flexible Pricing Options:</strong></p><p>Amazon <strong>RDS offers flexible pricing options</strong>, including on-demand instances, reserved instances for cost savings, and BYOL models, allowing you to optimize costs while maintaining performance and reliability</p><p>As we discussed pricing options earlier, let’s now shift our focus to the security perspective.</p><p>Here’s a tip:</p><blockquote>Whether you’re becoming a cloud engineer or using the cloud for your business or development work, two crucial factors come into play</blockquote><h4>— cost and security.</h4><blockquote>When leveraging the cloud, it’s essential to consider how you can optimise costs, manage architectures efficiently, and implement robust security measures.</blockquote><blockquote><strong>Ultimately, these two aspects, cost and security, hold significant importance.</strong></blockquote><h3><strong>Securing RDS instances using security groups</strong></h3><h4>Security Groups:</h4><p>In Amazon RDS (Relational Database Service), you can secure your <strong>RDS instances using security groups</strong>.</p><p>recap: what’s the purpose of sg</p><blockquote><strong>Security groups </strong>act as virtual firewalls, <strong>controlling inbound and outbound traffic</strong> for RDS instances.</blockquote><blockquote>They allow you to <strong>define rules </strong>for permitting or denying access from specific IP addresses or security groups.</blockquote><blockquote>Configuring security groups properly helps <strong>restrict access </strong>to trusted sources, enhancing security.</blockquote><p><strong>NOTE: Security groups control network-level traffic</strong></p><p>So, as you know, we often use IAM roles for securely managing resources in AWS.</p><p>Let’s explore this from the perspective of IAM roles</p><h3><strong>Securing RDS instances using IAM Roles</strong></h3><h4>IAM Roles:</h4><p>You can also enhance the security of your RDS instances by using <strong>IAM (Identity and Access Management</strong>) <strong>roles</strong>.</p><p>IAM roles provide <strong>secure access management </strong>for AWS resources, including RDS instances.</p><p>IAM roles allow <strong>assigning specific permissions </strong>to users or services interacting with RDS instances.</p><p><strong>Granting necessary permissions </strong>and attaching IAM roles to relevant entities ensures secure access management.</p><blockquote><strong>NOTE: IAM roles enable fine-grained access management and mitigate risks associated with long-term access keys</strong></blockquote><blockquote>Now, let’s explore the backup and restoration strategies available in your RDS service.</blockquote><blockquote>It’s crucial for managing your database instance</blockquote><h3><strong>Backup and Restoration Strategies for Amazon RDS Databases</strong></h3><h4><strong>Backup :</strong></h4><ul><li>Backup is the process of <strong>creating a copy of your database</strong> to protect your data in case of accidental deletion, data corruption, or system failure.</li><li>In Amazon RDS, a backup is a <strong>point-in-time copy </strong>of your database that captures all its data and settings.</li><li>By taking backups, you ensure that you have a <strong>safe copy of your database </strong>that can be used for recovery or creating new instances.</li></ul><h4><strong>Restoration :</strong></h4><ul><li>Restoration is the process of <strong>recovering or recreating a database</strong> from a backup.</li><li>During restoration, a backup is used to <strong>recreate the database instance with the same data </strong>and settings as the backup.</li><li>Restoration is useful for scenarios such as recovering from <strong>accidental data loss</strong>.</li></ul><blockquote>Restoration can also be used to create a copy of a database for <strong>testing purposes</strong>. It can facilitate the migration to a new database instance.</blockquote><h3>CONCLUSION</h3><p>So, guys, we have completed the first part of our RDS blog. We covered the concepts in a simplified manner, starting from scratch. We began with an introduction to databases, why databases matter, and then moved on to our topic — introduction to Amazon RDS.</p><p>We discussed the benefits and features associated with Amazon RDS, explored available engines in RDS, and made a comparison between SQL and NoSQL databases. Not only this, but we also delved into the major things like the architectural diagram of RDS, followed by how to secure the RDS instances using security groups. Lastly, we discussed backups and restoration strategies for our Amazon RDS.</p><p>This marks the completion of the first part of our RDS series.</p><p>Stay tuned for upcoming articles where we’ll explore intermediate and advanced concepts in RDS, such as snapshots, RDS autoscaling, RDS read replicas for enhanced read capability, and more.</p><h4>An important note:</h4><p>These blogs will undoubtedly help you ace your cloud practitioners’ skills and focus on solution architect-associated exams. Besides, they will make it easier for you to excel in your cloud journey interviews.</p><p>Stay tuned with me to learn exciting and informative content.</p><p>Follow <a href="https://medium.com/u/e6e8a42df3c">Sahdev Grover</a> and share these with your colleagues and peers so that they all benefit from these learnings.</p><p>Looking forward to sharing more insights in the next part of our RDS series!</p><p>Alos, Don’t forget to follow me on <strong>LinkedIn</strong>, where I cover all my content related to the <strong>AWS Cloud and DevOps.</strong> <a href="https://www.linkedin.com/in/sahdevgrover"><strong>https://www.linkedin.com/in/sahdevgrover</strong></a></p><p>If you have any queries or require assistance, please feel free to reach out. Your feedback is highly appreciated as we continue to explore more things in the world of AWS.</p><h3>THANK YOU FOR READING MY ARTICLE!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df32b62a2a31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EVERYTHING ABOUT AMAZON S3 — PART 2]]></title>
            <link>https://medium.com/@sahdevgrover02/everything-about-amazon-s3-part-2-40e2dae509b3?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/40e2dae509b3</guid>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Mon, 20 Nov 2023 22:37:47 GMT</pubDate>
            <atom:updated>2023-11-20T22:37:47.698Z</atom:updated>
            <content:encoded><![CDATA[<h3>EVERYTHING ABOUT AMAZON S3 — PART 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*ax76G3KbApqS0yrvVBqWpQ.png" /></figure><p>Hello, everyone!</p><p><strong>Welcome to the exciting world of the AWS Zero to Hero series!</strong></p><p>In today’s journey, we’re taking a deep dive into the Amazon S3 universe, covering everything from the fundamentals to advanced topics.</p><p>This blog is Part 2 of our Amazon S3 adventure, and I’ve carefully crafted it to be your one-stop shop for all things Amazon S3.</p><p>Don’t miss out on the opportunity to become an Amazon S3 expert.</p><p>Read the entire blog, and you’ll discover everything you need to know about this essential AWS service, all in one convenient place.</p><blockquote><em>Rest assured, by the end, you’ll have the knowledge you need to master Amazon S3 — no need to look anywhere else.</em></blockquote><p><strong>Happy reading in advance!</strong></p><h3><strong>Amazon S3 — Replication (CRR &amp; SRR)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*z40Mo4nUAiYvYkjxw4YcNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*jIbQ6URqDIj66yvLMTAjpw.png" /></figure><ul><li>Versioning must be enabled in both the source and destination buckets for replication.</li><li>Cross-region replication (CRR) allows replication between buckets in different AWS regions.</li><li>Same-Region Replication (SRR) enables replication within the same AWS region.</li><li>Replication can occur between buckets in different AWS accounts.</li><li>Copying is asynchronous, and proper IAM permissions must be granted to S3.</li></ul><blockquote><strong>Use cases </strong>include compliance, lower latency access, replication across accounts (CRR), and log aggregation, live replication between production and test accounts (SRR).</blockquote><h3><strong>S3 Storage Classes</strong></h3><ul><li><strong>Amazon S3 Standard:</strong> General-purpose storage class for frequently accessed data.</li><li><strong>Amazon S3 Standard-Infrequent Access (IA):</strong> Lower-cost storage for data accessed less frequently.</li><li><strong>Amazon S3 One Zone-Infrequent Access:</strong> IA storage that is stored in a single availability zone.</li><li><strong>Amazon S3 Glacier:</strong> Low-cost storage for data archiving with different retrieval options.</li><li><strong>Amazon S3 Intelligent Tiering:</strong> Automatically moves data between storage classes based on usage patterns.</li></ul><blockquote>Migration between storage classes can be done manually or through S3 Lifecycle configurations.</blockquote><h3><strong>S3 Durability and Availability</strong></h3><ul><li>S3 offers high durability, with a guarantee of 99.999999999% (11 nines) across multiple Availability Zones.</li><li>Storing 10 million objects with S3, you can expect to lose a single object once every 10,000 years on average.</li><li>Durability remains the same for all S3 storage classes.</li><li>Availability measures the readiness of service and varies depending on the storage class.</li></ul><blockquote>For example, S3 Standard has 99.99% availability, equivalent to approximately 53 minutes of unavailability per year.</blockquote><h3><strong>S3 Standard — General Purpose</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*6ZtmdHdS2hclDLx9Qv3pUQ.png" /></figure><ul><li>99.99% availability for high accessibility.</li><li>Designed for frequently accessed data.</li><li>Provides low latency and high throughput.</li><li>Can withstand 2 concurrent facility failures.</li></ul><blockquote>Use cases include Big Data analytics, mobile and gaming applications, and content distribution.</blockquote><h3><strong>S3 Storage Classes — Infrequent Access</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/137/1*fSR5Wrp76QXVTTF4MKJdOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/106/1*s6MTTuvJKj1mvQe1wgQvsg.png" /></figure><ul><li>Designed for data that is accessed less frequently but requires rapid access when needed.</li><li>Offers lower costs compared to S3 Standard.</li><li>Amazon S3 Standard-Infrequent Access (S3 Standard-IA) provides 99.9% availability and is suitable for disaster recovery and backups.</li><li>Amazon S3 One Zone-Infrequent Access (S3 One Zone-IA) offers high durability within a single Availability Zone but may result in data loss if the Zone is destroyed.</li><li>S3 One Zone-IA provides 99.5% availability and is suitable for storing secondary backup copies or data that can be recreated.</li></ul><h3><strong>Amazon S3 Glacier Storage Classes</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/134/1*vBtXotfhJxlFs-0krqroAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/127/1*s6w02P9tB9Yc_l736N5aTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/127/1*8niWdp2gZs3-ePEqI9Ny2g.png" /></figure><ul><li>Low-cost object storage designed for archiving and backup purposes.</li><li>Pricing includes storage costs and object retrieval costs.</li><li><strong>Amazon S3 Glacier Instant Retrieval </strong>offers millisecond retrieval, suitable for data accessed once a quarter, with a minimum storage duration of 90 days.</li><li><strong>Amazon S3 Glacier Flexible Retrieval </strong>provides expedited, standard, and bulk retrieval options, with varying retrieval times and no additional cost. It also requires a minimum storage duration of 90 days.</li><li><strong>Amazon S3 Glacier Deep Archive </strong>is intended for long-term storage, with standard and bulk retrieval options and a minimum storage duration of 180 days.</li></ul><h3><strong>S3 Intelligent-Tiering</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/167/1*rmlrvE3If3879pKgiErgYQ.png" /></figure><ul><li>S3 Intelligent-Tiering automatically moves objects between Access Tiers based on their usage.</li><li>It incurs a small monthly monitoring and auto-tiering fee but does not have retrieval charges.</li><li>The default tier is the Frequent Access tier, while objects not accessed for 30 days are moved to the Infrequent Access tier.</li><li>The Archive Instant Access tier is for objects not accessed for 90 days, and there is an optional Archive Access tier configurable from 90 days to 700+ days.</li><li>The Deep Archive Access tier is also optional and can be configured from 180 days to 700+ days.</li></ul><h3>S3 Storage Classes Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXeP8ktRZfsS9Sevael06A.png" /></figure><h3><strong>S3 Encryption</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BkDVVvuiGzAlUfzo6T2BVg.png" /></figure><ul><li><strong>S3 offers</strong> both <strong>server-side and client-side encryption</strong> options to protect data at rest.</li><li><strong>Server-side encryption is the default option</strong> and provides encryption at the S3 service level.</li><li><strong>Client-side encryption</strong> allows <strong>users to encrypt data</strong> before uploading it to S3.</li></ul><blockquote><strong>It’s important to note that S3 also provides encryption in transit to secure data as it is transferred between the client and S3</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cW9pj6wqwkrNRC-Qx9xh8A.png" /></figure><h3><strong>AWS S3 Pricing:</strong></h3><ul><li>Amazon S3 pricing consists of storage costs, data transfer costs, and request costs.</li><li>The storage costs depend on the storage class and the amount of data stored</li><li>Data transfer costs are applicable for data movement in and out of S3 and between regions.</li><li>Request costs are incurred for accessing or managing S3 objects.</li></ul><p>It’s <strong>important to note that AWS provides a detailed pricing calculator </strong>that enables users to estimate costs based on their specific usage patterns and storage requirements.</p><p>Additionally, AWS offers various cost optimization tools and features, such as S3 Intelligent Tiering, to help users optimize costs by automatically moving objects between storage classes based on access patterns.</p><h3><strong>Shared Responsibility Model for S3</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/159/1*Kd3Jt1GWR9C569NWE02MFQ.png" /></figure><ul><li>Infrastructure (global security, durability, availability, sustaining the concurrent loss of data in two facilities)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/108/1*tAprFeBClhEIVOnRWwyAfA.png" /></figure><ul><li>Configuration and vulnerability analysis</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/108/1*cYYRDsjo4scOo8qj7UDIcw.png" /></figure><ul><li>Compliance validation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/108/1*8ebo_gNgxRDtnpaYAkMtig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*pOiAGCthusKjZIBpbHLMlA.png" /></figure><ul><li>S3 Versioning</li><li>S3 Bucket Policies</li><li>S3 Replication Setup</li><li>Logging and Monitoring</li><li>S3 Storage Classes</li><li>Data encryption at rest and in transit</li></ul><h3>🥳 Exciting news for all of you!</h3><p><strong>I just have started a series on AWS where I will cover every corner of AWS.</strong></p><p>This will not only help you <strong>crack the fundamental certification exam</strong> but also make it easier for you to <strong>pass the associate-level AWS exams in one go.</strong></p><h4><strong>It’s my promise to you all.</strong></h4><h3>Here’s what you need to do:</h3><blockquote><em>Read this content. The good thing is, it’s free! You don’t have to enroll in training programs and such.</em></blockquote><blockquote><em>Immediately after reading and understanding the content, practice what you have learned. Try your hands directly on the AWS console.</em></blockquote><blockquote><strong><em>I recommend following along with this tutorial.</em></strong></blockquote><blockquote><em>If you still find things challenging, try taking help from AWS documentation, skill builders for watching free resources, or feel free to reach out to me on LinkedIn.</em></blockquote><blockquote><strong><em>I’ll guide you on how to start your journey in AWS.</em></strong></blockquote><h3>ONE MORE EXCITING NEWS FOR ALL OF YOU, THIS TIME EVEN BIGGER 🥳</h3><p>If you’re a person who wants everything available or prefers <strong>personalized training (1:1)</strong>, not recorded sessions, not a batch of hundreds of students, just you and your instructor — for this, too, you can reach out to me.</p><p>I will not only prepare you for AWS certification but also explore things beyond this, followed by tips and tricks.</p><p><strong>No prerequisites are needed.</strong></p><p>I always teach from the very beginning, meaning even a 5-year-old child can understand what I have explained.</p><p><strong>Remember the following things above to start your journey today!</strong></p><h3>CONCLUSION</h3><p>As you can witness throughout our exploration, we’ve seen how S3 plays a crucial role in modern cloud computing, offering a flexible and secure solution for storing and managing data.</p><p>Its features and capabilities make it a <strong>go-to service </strong>for a wide range of applications, providing a reliable foundation for businesses and developers leveraging the AWS ecosystem.</p><p>Remember to consider your specific needs and requirements when using S3 and always prioritize <strong>security best practices</strong> for a robust and reliable storage solution.</p><p>Don’t forget to follow me on <strong>LinkedIn</strong>, where I cover all my content related to the <strong>AWS Cloud and DevOps</strong> <a href="https://www.linkedin.com/in/sahdevgrover"><strong>https://www.linkedin.com/in/sahdevgrover</strong></a></p><p>If you have any queries or require assistance, please feel free to reach out. Your feedback is highly appreciated as we continue to explore more things in the world of AWS.</p><h4>THANK YOU FOR READING MY ARTICLE!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40e2dae509b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EVERYTHING ABOUT AMAZON S3 — PART 1]]></title>
            <link>https://medium.com/@sahdevgrover02/everything-about-amazon-s3-part-1-dd03ee4adf0?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd03ee4adf0</guid>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[awscertificationtraining]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Fri, 17 Nov 2023 21:02:31 GMT</pubDate>
            <atom:updated>2023-11-17T21:04:15.484Z</atom:updated>
            <content:encoded><![CDATA[<h3>EVERYTHING ABOUT AMAZON S3 — PART 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*ax76G3KbApqS0yrvVBqWpQ.png" /></figure><p>Hello, everyone!</p><p><strong>Welcome to the exciting world of the AWS Zero to Hero series!</strong></p><p>In today’s journey, we’re taking a deep dive into the Amazon S3 universe, covering everything from the fundamentals to advanced topics.</p><p>This blog is Part 1 of our Amazon S3 adventure, and I’ve carefully crafted it to be your one-stop shop for all things Amazon S3.</p><p>Don’t miss out on the opportunity to become an Amazon S3 expert.</p><p>Read the entire blog, and you’ll discover everything you need to know about this essential AWS service, all in one convenient place.</p><blockquote>Rest assured, by the end, you’ll have the knowledge you need to master Amazon S3 — no need to look anywhere else.</blockquote><p><strong>Happy reading in advance!</strong></p><h3><strong>INTRODUCTION OF AMAZON S3</strong></h3><p>Amazon S3, also known as <strong>Amazon Simple Storage Service</strong>, is a highly popular cloud storage solution provided by <strong>Amazon Web Services (AWS</strong>).</p><blockquote>It offers scalable and reliable storage capabilities for individuals and businesses.</blockquote><blockquote>With Amazon S3, users can securely store and retrieve data of any size or type from anywhere in the world via the internet.</blockquote><blockquote>A key advantage of Amazon S3 is its accessibility.</blockquote><blockquote>Users can easily access their stored data from any location, which makes it particularly useful for remote work and collaboration.</blockquote><blockquote>The <strong>AWS Management Console provides a user-friendly web interface </strong>that simplifies storage resource management, allowing users to efficiently organize and control their</blockquote><h3><strong>Amazon S3: The Foundation of Infinite Scaling Storage in AWS</strong></h3><p><strong>Object storage:</strong></p><ul><li>Amazon S3 provides reliable and scalable object-based storage for storing an unlimited amount of data.</li></ul><p><strong>Seamless scalability:</strong></p><ul><li>With Amazon S3, you can easily scale your storage capacity without worrying about limitations, ensuring your data grows with your needs.</li></ul><p><strong>High durability and redundancy:</strong></p><ul><li>Amazon S3 automatically replicates data across multiple servers and facilities, ensuring high durability and protection against data loss.</li></ul><p><strong>Global accessibility</strong>:</p><ul><li>Amazon S3 offers global availability, allowing you to store and retrieve your data from anywhere in the world with low latency and high transfer speeds.</li></ul><p><strong>Integration with AWS services:</strong></p><ul><li>Amazon S3 seamlessly integrates with various AWS services, enabling you to leverage its scalability as the foundation for data analytics, content delivery, and serverless computing.</li></ul><h3><strong>Understanding Amazon S3’s Scalability</strong></h3><p><strong>Object-based storage: </strong>Amazon S3 allows storage and retrieval of an unlimited number of objects (files) of any size.</p><p><strong>Distributed architecture: </strong>Data is stored across multiple servers and data centers, enabling high scalability and availability.</p><p><strong>Elasticity: </strong>Amazon S3 automatically scales its infrastructure based on demand, accommodating increased storage needs without manual intervention.</p><p><strong>Global availability: </strong>It has a global infrastructure that spans multiple regions and Availability Zones, reducing latency and improving performance.</p><p><strong>Parallel uploads and downloads: </strong>Amazon S3 supports parallelization, enabling fast and efficient data transfer with high throughput.</p><h3><strong>Amazon S3 as a Backbone for Websites</strong></h3><p><strong>Static website hosting: </strong>Amazon S3 directly serves static files, offering a simple and cost-effective solution for hosting websites with scalability and availability.</p><p><strong>Content delivery: </strong>Integration with Amazon CloudFront ensures fast and reliable delivery of website content globally, improving performance for users.</p><p><strong>Scalability and durability: </strong>Amazon S3’s scalable infrastructure handles high traffic loads while maintaining performance, and its distributed architecture provides durability by storing multiple copies of website content.</p><p><strong>Cost-effectiveness: </strong>With a pay-as-you-go pricing model, Amazon S3 is a cost-effective option for hosting websites, especially for static content with predictable traffic patterns.</p><p><strong>Integration with AWS services: </strong>Amazon S3 seamlessly integrates with other AWS services, empowering the creation of dynamic and interactive websites by leveraging additional capabilities like AWS Lambda, Amazon API Gateway, and Amazon CloudFront</p><h3><strong>Amazon S3 Use cases</strong></h3><blockquote><strong>Backup and Storage:</strong> Reliable and scalable storage for data backups.</blockquote><blockquote><strong>Disaster Recovery:</strong> Replicating data to ensure accessibility during disasters.</blockquote><blockquote><strong>Archive:</strong> Cost-effective storage for infrequently accessed data.</blockquote><blockquote><strong>Hybrid Cloud Storage:</strong> Integration of on-premises and cloud storage.</blockquote><blockquote><strong>Application Hosting:</strong> Hosting static web content and web applications</blockquote><blockquote><strong>Media Hosting:</strong> Storing and delivering media files with high-performance</blockquote><blockquote><strong>Software Delivery:</strong> Efficient distribution of software updates and applications</blockquote><blockquote><strong>Static Website:</strong> Hosting static websites with scalability and reliability.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*h2vXtE-8o-6saEBSuOMoGQ.png" /></figure><h3><strong>Amazon S3 — Buckets</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/121/1*UWQsdW0CyJEPsbF99Aw8ZA.png" /></figure><p><strong>Bucket Purpose</strong>: Amazon S3 allows users to store objects (files) in “buckets,” which can be thought of as directories within the S3 service</p><p><strong>Global Unique Name</strong>: Each bucket must have a globally unique name across all regions and accounts. This uniqueness ensures that there are no naming conflicts and enables proper identification of each bucket.</p><p><strong>Region Level Definition</strong>: Buckets are defined at the region level, meaning that when you create a bucket, it is associated with a specific AWS region. Although S3 appears to be a global service, buckets are created and exist within a particular region.</p><p><strong>Naming Format</strong>: When naming a bucket, it should adhere to the following conventions:</p><blockquote>No uppercase letters or underscores are allowed in bucket names.</blockquote><blockquote>The name must be between 3 and 63 characters in length.</blockquote><blockquote>The bucket name cannot be an IP address.</blockquote><blockquote>It must start with a lowercase letter or a number.</blockquote><blockquote>The bucket name must not start with the prefix “xn — “.</blockquote><blockquote>It must not end with the suffix “-s3alia”.</blockquote><blockquote>These naming guidelines ensure consistency, uniqueness, and compatibility within the Amazon S3 service. Adhering to these rules will prevent naming conflicts, maintain the integrity of the S3 infrastructure, and facilitate a smooth operation and management of your buckets.</blockquote><h3><strong>Amazon S3 — Objects</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*EEvuQqiBr0xlG0kPcmD4SQ.png" /></figure><p>In Amazon S3, objects (files) are identified by their keys, which represent the full path to the object.</p><h4>For example:</h4><blockquote>s3://my-bucket/my_file.txt</blockquote><blockquote>s3://my-bucket/my_folder1/another_folder/my_file.txt</blockquote><p>The key of an object is composed of a prefix and the object name. In the second example above, the prefix is “my_folder1/another_folder/” and the object name is “my_file.txt”.</p><blockquote>It’s important to note that although the Amazon S3 user interface may visually represent objects as if they are organized in directories within buckets, there is actually no concept of directories within buckets. Instead, objects have keys with very long names that can include slashes (“/”) to mimic the appearance of a directory structure.</blockquote><h4><strong>Amazon S3 — Objects (cont.)</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/133/1*NOnS-HtXsLeLv0p0WtzEpA.png" /></figure><blockquote>In Amazon S3, object values are the content of the object</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/133/1*F-xbSjlYed7H5MM4M_1o0w.png" /></figure><blockquote>The maximum object size is 5TB (5000GB).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/133/1*ZZHl5vbe99XQ-ZT3cD3E9w.png" /></figure><blockquote>For uploads larger than 5GB, multipart upload should be used.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/133/1*yXoMaPFXL57BPTEq4_MjYg.png" /></figure><blockquote>Objects can have metadata, which is a list of text key/value pairs, and tags, which are Unicode key/value pairs (up to 10 tags).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/133/1*32f9JNI3NXXeETyzzIfCAQ.png" /></figure><blockquote>If versioning is enabled, objects can have multiple versions identified by unique version IDs</blockquote><p>now , it’s very crucial to see the security features as well.</p><h3><strong>Amazon S3 — Security</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*PlXnN0Ioi__eJLClFPfJuA.png" /></figure><h4>User-Based:</h4><blockquote>Amazon S3 employs IAM Policies to control which API calls are permitted for specific users from IAM.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*-k2tQK92RkIqIOAs0bKRTg.png" /></figure><h4>Resource-Based:</h4><blockquote>Bucket Policies, configured through the S3 console, establish bucket-wide rules, including the ability to enable cross-account access.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*lkhP6msV79nVUCCLqiRqgA.png" /></figure><h4>Object Access Control List (ACL):</h4><blockquote>Offers finer-grained access control for S3 objects, which can be disabled if needed.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*wy8lPJJMNO1YmoEpvd5KOA.png" /></figure><h4>Bucket Access Control List (ACL):</h4><blockquote>Although less common, it provides access control at the bucket level and can also be disabled.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*TVFrIgzICMfKYPxAYCyF9w.png" /></figure><h4>Important Note:</h4><blockquote>An IAM principal can access an S3 object if the user’s IAM permissions or the resource policy allows it, as long as there is no explicit denial.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*m6kP3HKRmTJP8uXvgPSQug.png" /></figure><h4>Encryption:</h4><blockquote>Amazon S3 allows encryption of objects using encryption keys for added security</blockquote><h3><strong>S3 Bucket Policies</strong></h3><h4><strong>JSON-based policies:</strong></h4><blockquote>S3 bucket policies are written in JSON format.</blockquote><h4><strong>Resources:</strong></h4><blockquote>Bucket policies apply to both buckets and objects within them.</blockquote><h4><strong>Effect:</strong></h4><blockquote>Policies can have “Allow” or “Deny” effects on access.</blockquote><h4><strong>Actions:</strong></h4><blockquote>Policies define a set of API actions to allow or deny.</blockquote><h4><strong>Principal:</strong></h4><blockquote>Specifies the AWS account or user to apply the policy to.</blockquote><blockquote>Common uses of bucket policies include granting public access, enforcing object encryption at upload, and allowing access to another account (cross-account access).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*9OgifjqmCEiWVxR3n1atbw.png" /></figure><p><strong>Example: Public Access — Use Bucket Policy</strong></p><blockquote>To grant public access to an S3 bucket, you can use a bucket policy.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*MbrXy2jIlONhes55E1R5_A.png" /></figure><blockquote>In this example, the policy allows anyone (“Principal”: “<em>”) to perform the “s3:GetObject” action on any object within the specified bucket (“Resource”: “arn:aws:s3:::your-bucket-name/</em>”). This effectively grants public read access to the bucket.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*i1EWc7CdmcFlcsJxY-ePiQ.png" /></figure><p><strong>Example: User Access to S3 — IAM Permissions</strong></p><blockquote>To control user access to S3 resources, you can define IAM permissions. Here’s an example:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*mnfzwC6QXdDwRDKXoAlaMQ.png" /></figure><blockquote>In this example, the policy allows a user to list the bucket contents(s3:ListBuckets) and perform read and write operations (s3:Getobjects, s3:Putobjects) on objects within the specified bucket (arn:aws:s3:::your-bucket-name/*).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*A0knio3dTds5Iq0luAiX8A.png" /></figure><p><strong>Example: EC2 instance access — Use IAM Roles</strong></p><blockquote>To grant EC2 instances access to AWS services, you can use IAM roles. Here’s an example:</blockquote><blockquote>Create an IAM role with the required permissions.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*RKv3qnDgyk72xj3Kdz9JqA.png" /></figure><blockquote>In this example, the IAM role grants permissions for the EC2 instance to perform the “s3:GetObject” action on objects within the specified S3 bucket (“arn:aws:s3:::your-bucket-name/*”) and “dynamodb: PutItem” action on the specified DynamoDB table (“arn:aws:dynamodb:your-region:your-account-id:table/your-table-name”).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*Hgh1vg5DaHYQEKBqr4TSRA.png" /></figure><h3><strong>Bucket settings for Block Public Access</strong></h3><h4>Prevents Data Leaks:</h4><blockquote>Bucket settings for Block Public Access are designed to prevent accidental exposure of company data.</blockquote><blockquote>By blocking public access, the risk of unauthorized access and data leaks is significantly reduced.</blockquote><h4>Keep Settings Enabled:</h4><blockquote>If you are certain that your bucket should never be public, it is advisable to keep these settings enabled.</blockquote><blockquote>This ensures that your data remains secure and inaccessible to the public.</blockquote><h4>Account-Level Configuration:</h4><blockquote>Block Public Access settings can be set at the account level.</blockquote><blockquote>This provides consistent security measures across all buckets within the account.</blockquote><blockquote>By implementing and maintaining the Block Public Access settings for your S3 buckets, you can effectively mitigate the risk of data leaks and unauthorized access, ensuring the confidentiality and security of your company’s data.</blockquote><h3><strong>Amazon S3 -Versioning</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*CKJGqqHQkv-wOEkoKE6a2A.png" /></figure><p><strong>Versioning in Amazon S3 allows you to track and manage versions of your files.</strong></p><ul><li>It is enabled at the bucket level and assigns version numbers to files.</li><li>Versioning is considered a best practice to protect against unintended deletes and enables easy rollback to previous versions.</li><li>Enabling versioning does not delete previous versions, and any non-versioned files will have a version number of “null.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6vrJyUV1d7mENBGjf2w1gQ.png" /></figure><h3>🥳 Exciting news for all of you!</h3><p><strong>I just have started a series on AWS where I will cover every corner of AWS.</strong></p><p>This will not only help you <strong>crack the fundamental certification exam</strong> but also make it easier for you to <strong>pass the associate-level AWS exams in one go.</strong></p><p><strong>It’s my promise to you all.</strong></p><h4>Here’s what you need to do:</h4><blockquote>Read this content. The good thing is, it’s free! You don’t have to enroll in training programs and such.</blockquote><blockquote>Immediately after reading and understanding the content, practice what you have learned. Try your hands directly on the AWS console.</blockquote><blockquote><strong>I recommend following along with this tutorial.</strong></blockquote><blockquote>If you still find things challenging, try taking help from AWS documentation, skill builders for watching free resources, or feel free to reach out to me on LinkedIn.</blockquote><blockquote><strong>I’ll guide you on how to start your journey in AWS.</strong></blockquote><h3>ONE MORE EXCITING NEWS FOR ALL OF YOU, THIS TIME EVEN BIGGER 🥳</h3><p>If you’re a person who wants everything available or prefers <strong>personalized training (1:1)</strong>, not recorded sessions, not a batch of hundreds of students, just you and your instructor — for this, too, you can reach out to me.</p><p>I will not only prepare you for AWS certification but also explore things beyond this, followed by tips and tricks.</p><p><strong>No prerequisites are needed.</strong></p><p>I always teach from the very beginning, meaning even a 5-year-old child can understand what I have explained.</p><p><strong>Remember the following things above to start your journey today!</strong></p><h3>CONCLUSION</h3><p>As you can witness throughout our exploration, we’ve seen how S3 plays a crucial role in modern cloud computing, offering a flexible and secure solution for storing and managing data.</p><p>Its features and capabilities make it a <strong>go-to service </strong>for a wide range of applications, providing a reliable foundation for businesses and developers leveraging the AWS ecosystem.</p><p>Remember to consider your specific needs and requirements when using S3 and always prioritize <strong>security best practices</strong> for a robust and reliable storage solution.</p><p>Don’t forget to follow me on LinkedIn, where I cover all my content related to the AWS Cloud and DevOps <a href="https://www.linkedin.com/in/sahdevgrover"><strong>https://www.linkedin.com/in/sahdevgrover</strong></a></p><p>If you have any queries or require assistance, please feel free to reach out. Your feedback is highly appreciated as we continue to explore more things in the world of AWS.</p><h4>THANK YOU FOR READING MY ARTICLE!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd03ee4adf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AMAZON S3 BUCKET CREATION: HANDS-ON]]></title>
            <link>https://medium.com/@sahdevgrover02/creation-of-s3-bucket-7d983d95abce?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d983d95abce</guid>
            <category><![CDATA[s3-bucket]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Wed, 13 Sep 2023 13:31:10 GMT</pubDate>
            <atom:updated>2023-11-20T22:54:35.112Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>CREATING BUCKET</strong></p><ol><li><strong>Go to the AWS Management Console and navigate to the S3 service.</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*aVVFt3CgPHv4FLCezNI4qA.png" /></figure><p><strong>2. Click on “Create bucket” to start the bucket creation process.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*fLEf0JrsZXMaaUww9ng0VQ.png" /></figure><p><strong>3. Provide a unique bucket name and select the region for the bucket.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*5LKekO1GoiYiWMXcc7ltVw.png" /></figure><p><strong>4. Optionally, configure additional options such as versioning, logging, and encryption.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*E430yVGBbxThEu6af1uHRQ.png" /></figure><p><strong>5. Click “Create bucket” to create the bucket.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*fPPFpYGYoczQcpakVXRfvw.png" /></figure><p><strong>6. You will be redirected to the bucket’s overview page where you can manage its settings and perform operations.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*4KnU301wuXDthqVIGe-X4A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d983d95abce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explaining methods of installing an operating system]]></title>
            <link>https://medium.com/@sahdevgrover02/explaining-methods-of-installing-an-operating-system-ff1b99f113c7?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff1b99f113c7</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 04:04:24 GMT</pubDate>
            <atom:updated>2023-07-05T04:04:24.097Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to my blog! In this blog we will explore the significance of the operating system in the context of the cloud.</p><p>We’ll be covering the functionalities of the operating system, its various methods of installation, with the help of diagrams.</p><p>I’ve kept this blog concise for easy reading, presenting the information in a simple manner.</p><h3>Operating System</h3><ul><li>The main purpose of an operating system is to manage computer hardware and software resources, providing a platform for running applications.</li><li>It serves as an intermediary between users and the computer hardware, facilitating user interaction and executing various tasks.</li><li>The operating system offers essential services like file management, process management, memory management, and device management.</li></ul><h3>Running Programs and Applications</h3><ul><li>An operating system is necessary to run any program or application as it provides the required environment and resources.</li><li>Programs rely on the operating system to handle memory management, CPU resource allocation, input/output operations, and overall execution.</li><li>The operating system provides an interface for users to launch programs, switch between them, and manage their execution.</li></ul><h3>Dependency on Physical Hardware</h3><ul><li>To install and run an operating system, physical hardware components such as RAM, CPU, network card, and hard drive are essential.</li><li>These hardware components form the foundation for the operating system to function and enable the execution of programs and applications.</li></ul><h3>Methods of Installing an Operating System</h3><h4>a. Bare Metal:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*OkPerARKGNdrWq0_QrKDGA.jpeg" /><figcaption>PHYSICAL HARDWARE</figcaption></figure><ul><li>Bare metal installation involves directly installing an operating system on the physical hardware without any intermediary software.</li><li>It includes formatting the hard drive, partitioning it, and installing the operating system from scratch.</li><li>Bare metal installations are commonly performed on personal computers, servers, or dedicated hardware.</li></ul><h4>b. Cloud Computing:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*DwSlopWjA4K6NagOxx40kg.jpeg" /><figcaption>CLOUD COMPUTING</figcaption></figure><ul><li>Cloud computing enables users to access computing resources and services over the internet without relying on local infrastructure.</li><li>Operating systems can be deployed and run on cloud platforms provided by different service providers.</li><li>Users can create and configure virtual machines or containers on the cloud platform, hosting the operating system and running applications.</li></ul><h4>c. Virtualization:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*4TQLS-1-JH0GJXg-VUwzgQ.jpeg" /><figcaption>VIRTUALIZATION</figcaption></figure><ul><li>Virtualization allows the creation of virtual instances of an operating system on a physical machine.</li><li>It enables running multiple operating systems concurrently on the same hardware through virtual machines.</li><li>Virtualization software, such as VMware or VirtualBox, facilitates the installation and management of different operating systems on a single physical host.</li></ul><h4>d. Containerization:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAaHm8zNQZVvQFwRPxDl1w.jpeg" /><figcaption>CONTAINERIZATION</figcaption></figure><ul><li>Containerization is a lightweight virtualization method that isolates and runs applications along with their dependencies.</li><li>It utilizes operating system-level virtualization to create containers, which share the host operating system kernel.</li><li>Containers offer a portable and efficient way to package and deploy applications across diverse environments.</li></ul><h3>Conclusion</h3><p>Understanding the primary use of an operating system, its interaction with programs, and the various installation methods allow users to comprehend the fundamental concepts of operating systems and their significance in computing environments.</p><p>Going through the installation types of operating systems, will be beneficial for you to understand the concepts in accordance with the cloud.</p><p>If you need any assistance, let me know in the comment box I would be more than happy to guide you.</p><p>Don’t forget to follow <a href="https://www.linkedin.com/in/sahdevgrover">Sahdev Grover</a> on LinkedIn, where I have covered all my content related to the fundamentals of cloud computing and AWS.</p><p>Happy learning!</p><p>THANK YOU!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff1b99f113c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SIMPLIFY AWS MANAGEMENT WITH CLI]]></title>
            <link>https://medium.com/@sahdevgrover02/simplify-aws-management-with-cli-c951576ed6f2?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c951576ed6f2</guid>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Tue, 04 Jul 2023 03:15:48 GMT</pubDate>
            <atom:updated>2023-07-04T03:15:48.317Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to my blog post where we dive into the world of AWS CLI, the command line interface provided by Amazon Web Services.</p><p>In this post, we will explore the benefits of using AWS CLI, its installation process and configuration setup, specifically for windows operating systems.</p><p>Let’s embark on this journey to unlock the full potential of AWS CLI and enhance our AWS cloud experience.</p><h3>INTRODUCTION</h3><p>Amazon Web Services (AWS) offers a wide range of tools to facilitate the development and management of AWS cloud services. These tools include software development kits (SDKs), the AWS Management Console, and the AWS Command Line Interface (CLI).</p><p>In this article, we will focus on the AWS CLI and explore its benefits, installation process, configuration options, and common questions.</p><h3>AWS CLI</h3><p>The AWS CLI is an open-source command-line application developed by AWS for seamless management of AWS cloud services. It provides a set of commands that allow users to interact with and control their AWS resources.</p><blockquote>The AWS CLI is compatible with various operating systems, such as Windows, Linux, and macOS. It can also be used on remote terminals like PuTTY.</blockquote><h3>Understanding AWS CLI</h3><p>The AWS CLI is a native tool designed to simplify the management of AWS resources. Users can execute commands directly in their operating system&#39;s terminal or command prompt. On Windows, commands can be run in the command prompt, while on Linux and macOS, users can utilize shell programs such as Bash, Zsh, or Tcsh. Additionally, AWS CLI commands can be executed on remote EC2 instances using tools like PuTTY or SSH. Similar to managing AWS services through the AWS Management Console, users can perform all necessary tasks using the CLI tool.</p><h3>USE OF AWS CLI</h3><p>The AWS CLI serves as a valuable tool for configuring and managing AWS cloud services, particularly those that involve multiple steps. It enables users to automate repetitive tasks, saving time and eliminating the need to log in to the AWS Management Console repeatedly. Once AWS credentials are configured, users can avoid repeatedly providing their credentials, unlike the console application that requires authentication for every access to AWS cloud services.</p><h3>Benefits of AWS CLI</h3><p>The AWS CLI offers numerous benefits, including:</p><p><strong>Unified access:</strong> With AWS CLI, users can access all their cloud services through a single tool, even with Amazon providing over 200 services.</p><p><strong>Easy installation and</strong> <strong>configuration</strong>: Installing and configuring AWS CLI is a straightforward process. In the following sections, I will provide step-by-step guides on how to install and configure AWS CLI on windows machines.</p><p><strong>Automation</strong>: AWS CLI allows users to automate the management of their AWS services using scripts. By utilizing shell scripts, users can automate tasks such as provisioning and managing their cloud infrastructure.</p><p><strong>Time-saving</strong>: AWS CLI streamlines workflows by enabling users to perform multiple steps and complex operations with just a few commands. This saves time and enhances efficiency in managing AWS resources.</p><h3>INSTALLATION AND CONFIGURATION</h3><p>Here’s a step-by-step guide on how to install AWS Command Line Interface (CLI) on your machine, specifically for the Windows operating system:</p><p>Installing AWS CLI on Windows:</p><h4>Step 1: Download the AWS CLI Bundled Installer</h4><ul><li>Visit the AWS CLI Downloads page: <a href="https://aws.amazon.com/cli/"><strong>https://aws.amazon.com/cli/</strong></a><strong>.</strong></li><li>Check the “Windows” section and click on the “64-bit” Bundled Installer link to download the installer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xGvzy-w1epCELv11IBQGA.png" /></figure><ul><li>Once downloaded, double-click on the installer to start the installation process.</li></ul><h4>Step 2: Choose Installation Options</h4><ul><li>In the installation wizard, select “Install” to begin the installation.</li><li>Choose the desired installation location or leave it as the default.</li><li>Select “Next” to proceed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*ITsdCK_S_DxZrsVNKI6oLw.png" /></figure><h4>Step 3: Configure the AWS CLI</h4><ul><li>In the AWS CLI Bundled Installer, click on the “Browse” button to choose a location for the AWS CLI bundle. You can select a folder where you want to install the AWS CLI, such as “C:\Program Files\Amazon\AWSCLI” or any other preferred location.</li><li>Click “Next” to continue.</li></ul><h4>Step 4: Add AWS CLI to the System’s Environment Path (Optional)</h4><ul><li>If you want to use AWS CLI from any directory in the Command Prompt, you can choose to add it to the system’s environment path.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*oxRgFyxQzAeWaMv03XVbDw.png" /></figure><ul><li>Select “Add AWS CLI to the system’s environment path” and click “Next” to proceed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*8dimJChgPf0jzGm99vQnTQ.png" /></figure><ul><li>If you choose not to add it to the path, you will need to provide the full path to the AWS CLI executable whenever you want to use it.</li></ul><h4>Step 5: Review the Installation Summary</h4><ul><li>Review the installation summary and ensure that all the selected options are correct.</li><li>Click “Install” to start the installation process.</li></ul><h4>Step 6: Verify AWS CLI Installation</h4><ul><li>Open Command Prompt by pressing Windows key + R, then type “cmd” and press Enter.</li><li>Type “aws — version” and press Enter. If AWS CLI is installed correctly, it will display the version number.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Fgv71gSblDwJL9PtcltPw.png" /></figure><ul><li>Type “aws configure” and press Enter. Follow the prompts to provide your AWS access key, secret access key, default region, and default output format.</li></ul><p><strong>NOTE: If you don’t have these credentials, please refer to the slides where we covered this in our IAM Section on how to create them.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jR_-Lks2MfhJBjfrQKMJYA.png" /></figure><h4>Congratulations! You have successfully installed AWS CLI on your Windows machine.</h4><p>Note: If you encounter any issues during the installation process or need additional help, please refer to the official AWS CLI documentation: <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html"><strong>https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html</strong></a><strong>.</strong></p><h4>Remember to keep your AWS access key and secret access key secure and avoid sharing them with unauthorized individuals.</h4><h3>CONCLUSION</h3><p>By leveraging the capabilities of AWS CLI, developers, architects, and administrators can effectively manage their AWS cloud services, automate tasks, and optimize their workflows.</p><p>Let me know if there’s anything else I can assist you with!</p><p>Don’t forget to follow <a href="https://www.linkedin.com/in/sahdevgrover">Sahdev Grover </a>on LinkedIn, where he has covered the contents related to the fundamentals of cloud computing and AWS Cloud.</p><h3>THANK YOU!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c951576ed6f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide: Launching and Accessing an EC2 Instance — A Hands-On Tutorial]]></title>
            <link>https://medium.com/@sahdevgrover02/step-by-step-guide-launching-and-accessing-an-ec2-instance-a-hands-on-tutorial-6dc975e4cd2e?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dc975e4cd2e</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Wed, 21 Jun 2023 14:05:44 GMT</pubDate>
            <atom:updated>2023-06-21T14:05:44.914Z</atom:updated>
            <content:encoded><![CDATA[<h3>Step-by-Step Guide: Launching and Accessing an EC2 Instance — A Hands-On Tutorial</h3><p>Welcome to our beginner-friendly guide on how to launch and access EC2 instances in AWS. Whether you’re new to Amazon Web Services (AWS) or just starting your cloud computing journey, this blog post is here to help you.</p><p>In this hands-on tutorial, we’ll walk you through the simple steps of creating your own virtual server and connecting to it.</p><p>EC2 instances are like virtual computers that you can use to run your applications in the AWS cloud. By the end of this tutorial, you’ll have the knowledge and confidence to launch your own EC2 instance and access it from anywhere.</p><p>So, let’s get started and unlock the power of EC2 together!</p><blockquote><strong>PREREQUISITES :</strong></blockquote><blockquote><strong>AWS ACCOUNT</strong></blockquote><blockquote><strong><em>It is recommended to utilize the free-tier services; otherwise, you will be required to pay for the services based on your usage.</em></strong></blockquote><blockquote><strong><em>This is the key advantage that AWS offers to its users: paying only for what you use.</em></strong></blockquote><h4><strong>Here is a step-by-step guide to launching an EC2 instance via the AWS Management Console:</strong></h4><h4>1. Log in to the AWS Management Console.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YuMKKrL1ZEt5KW6TzYLAZg.png" /></figure><h4>2. Navigate to the EC2 service either by searching for “EC2” in the search bar or by selecting it from the services menu.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4nqLr88Pe5Ga3eFwVvfIQ.png" /></figure><h4>3. Click on the “Launch Instance” button.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJIg5zDX427CUtTOT3dtcg.png" /></figure><h4>4. Provide a name and tags for your EC2 instance.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*PPvpBdszofqhHJL8BwGWzQ.png" /></figure><h4>5. Choose an Amazon Machine Image (AMI), which is the operating system and software that will run on your instance.</h4><h4>It is recommended to choose the default option that is free-tier eligible.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*FRrqT2v8vqVFi74qGG5esg.png" /></figure><h4>6. Select an instance type, determining the hardware configuration based on your resource requirements.</h4><h4>It is recommended to keep the default settings, which are free-tier eligible.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*DiGqT2-HojoGgYRX3Ho_Ng.png" /></figure><h4>7. Configure key pairs. Create your first key pair by giving it a name and selecting the key pair type and private key file format.</h4><h4>Make sure to download and securely store your key pair.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*x-cgngwCPvntwjENAtDGaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*vz6oddg7mrDaD8GANvPW4g.png" /></figure><blockquote>NOTE: If you already have a key pair, you can use an existing one to connect to your instance.</blockquote><h4>8. Configure the network settings. Create a security group and allow SSH traffic and HTTP traffic from the internet.</h4><h4>Security groups define inbound and outbound rules for network access to your instance.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*aXdoehA6zsqIusGnPyIEMw.png" /></figure><h4>9. Configure storage. Specify the size and type of storage (EBS volumes) you need for your instance.</h4><h4>It is recommended to use the default settings, which are free-tier eligible.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*biako3jh90DF_3KlJNvpLw.png" /></figure><blockquote>NOTE: You can get up to 30 GB of free storage in the free tier.</blockquote><h4>10. Scroll down and click on “Advanced Details.”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*OfNWmRSnpqM5Zpm885275g.png" /></figure><h4>11. Again, scroll down to the end of the section where you will find the optional “User Data” section, you can input any scripts or commands required for your instance setup.</h4><blockquote>#!/bin/bash</blockquote><blockquote># Use this for your user data (script from top to bottom)</blockquote><blockquote># install httpd (Linux 2 version)</blockquote><blockquote>yum update -y</blockquote><blockquote>yum install -y httpd</blockquote><blockquote>systemctl start httpd</blockquote><blockquote>systemctl enable httpd</blockquote><blockquote>echo “&lt;h1&gt;Hello World from $(hostname -f)&lt;/h1&gt;” &gt; /var/www/html/index.html</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*lhEieQpQVwQgYl9p-GshEQ.png" /></figure><blockquote>NOTE: Once done, review your instance details to ensure everything is correct.</blockquote><h4>12. Specify the number of instances you want to launch in the summary section.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*V_z8FSR-TxE1EIF5zF3DFQ.png" /></figure><h4>13. Click on the “Launch Instance” button.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*ztv3f5MBS-YgJ1qgr3aHCg.png" /></figure><h4>14. Once the instance is launched, you’ll see a success message. Scroll down and click on the “View all Instances” button.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3DZTkt45J1Kb_ieUD-8_VA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*m0Tk-sKkE_5C8xTJRml7Yw.png" /></figure><h4>15. In the instances list, locate your newly launched instance and wait for it to reach the “running” state with passing status checks.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCSpuFsx_JTyCqV2Tg8Yww.png" /></figure><h4>16. To connect to your instance, select it from the list and click on “Connect.”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*srk0Rr8ZOLzQ0rnmvKaCZQ.png" /></figure><h4>17. Follow the instructions to connect to your instance using the preferred method (e.g.EC2 Instance Connect).</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mIpx2gEiKXawXW4TXqefwA.png" /></figure><h4>18. Once connected, you can start using your EC2 instance as needed.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lwk-6c8OrcDrlxyy6zZ6Mw.png" /></figure><h4>19. Now that you have connected to your EC2 instance through your operating system, you can execute any Linux command to verify that it is working properly.</h4><h4>Here is an example command you can try:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwYQw-1pIpslGL6ffBiubw.png" /></figure><h3><strong>Instance Management</strong></h3><p><em>You have the ability to </em><strong><em>change the state of an EC2 instance</em></strong><em> in AWS, such as </em><strong><em>stopping or terminating</em></strong><em> it. However, if your workload is currently running on the EC2 instance, it is crucial to avoid termination without creating a backup of your data. Terminating the instance effectively deletes the created instance.</em></p><h4>Below are the example of stopping and terminating the desired instance.</h4><h4><strong>1. Stopping an EC2 Instance</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*omdXlIc1pNfvxNRKvyr3_w.png" /></figure><h4>2. Terminating an EC2 Instance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q9zA6s6uZDVb6lcM3zxvMQ.png" /></figure><h3><strong>EC2 Instance using ssh on Windows</strong></h3><h4><strong>1. Go to SSH client section and copy the command, as shown below</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*7PE0tuGOMU8ZiATn" /></figure><h4><strong>2. Open the Command Prompt or Windows Powershell on your Windows machine and paste the ssh command there.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k5p9PJdp4VvfxZ7f" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q65Wl6xdwKz2Vx93" /></figure><h4><strong>3. You should now be connected to the EC2 instance using open SSH on your Windows machine, let’s do some commands!</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Cm-fVi0GjhcotHvw" /></figure><h3>CONCLUSION</h3><p>We have covered the essential steps to launch and access EC2 instances in AWS. This beginner-friendly guide has provided you with a straightforward tutorial to create your own virtual server and establish a connection to it.</p><p>By following these steps, you now have the knowledge and skills to leverage the scalability and flexibility of EC2 for your applications and projects. EC2 instances serve as the foundation of cloud computing, offering a wide range of possibilities for running your workloads in the AWS cloud.</p><p>Remember to explore further and continue learning about different EC2 configurations and features. This will help you maximize the potential of AWS cloud services and unlock even more benefits.</p><p>Don’t forget to follow me on LinkedIn, where I cover all my content related to the fundamentals of cloud computing and AWS <a href="https://www.linkedin.com/in/sahdevgrover"><strong>https://www.linkedin.com/in/sahdevgrover</strong></a></p><p>If you have any queries or require assistance, please feel free to reach out. Your feedback is highly appreciated as we continue to explore more things in the world of AWS.</p><h3>THANK YOU FOR READING MY ARTICLE!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dc975e4cd2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UNDERSTANDING AMAZON EC2]]></title>
            <link>https://medium.com/@sahdevgrover02/understanding-amazon-ec2-cb702b53c9ca?source=rss-e6e8a42df3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb702b53c9ca</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Sahadev Grover]]></dc:creator>
            <pubDate>Wed, 21 Jun 2023 13:34:16 GMT</pubDate>
            <atom:updated>2023-06-21T14:14:50.892Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I cover everything you need to know about EC2 in a simple and easy-to-understand language. I explain the basics, key terms, and why EC2 is such an important service in AWS.</p><p>Whether you’re a beginner or looking to deepen your knowledge, you’ll find valuable insights and knowledge about EC2.</p><p>Without wasting much time, let’s deep dive into the understanding of EC2 from scratch.</p><h3>INTRODUCTION</h3><p><strong>Amazon Elastic Compute Cloud (EC2) </strong>is a <strong>popular web service offered by Amazon Web Services (AWS) </strong>that allows you to create and manage <strong>virtual machines</strong>, known as instances, in the AWS infrastructure. EC2 provides <strong>resizable and scalable computing</strong> capacity in the cloud</p><blockquote><strong>Instances:</strong> Instances are virtual machines in the cloud.</blockquote><ul><li><strong>EC2 (Elastic Compute Cloud) </strong>has<strong> transformed server provisioning</strong>.</li><li>It provides <strong>virtual servers </strong>within minutes through a self-service model, revolutionizing information technology.</li></ul><p><strong>The Traditional Server Provisioning Process:</strong></p><ul><li>In the past, getting a server involved a lengthy process of purchasing, delivery, installation, and network connection, taking months.</li><li><strong>Virtualization</strong> improved this process by <strong>eliminating the need for hardware orders</strong>, but manual processes still slowed down provisioning to weeks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t7HKpP91j079tKmx" /></figure><h4>The Innovation of EC2:</h4><ul><li>Amazon automated the provisioning process, <strong>removing the need for human intervention.</strong></li><li>This<strong> changed the perspective of the IT industry</strong>, raising expectations for resource availability and challenging traditional approaches.</li><li>EC2’s fast provisioning and lack of time commitment <strong>attracted users from individuals to large organizations.</strong></li></ul><h4>Unique Characteristics of EC2:</h4><ul><li><strong>EC2 uses virtualization</strong> to create virtual machines (instances) with operating systems.</li><li>Unlike traditional virtualization, <strong>EC2 stores only necessary data</strong> when instances are not running, reducing costs.</li><li>It supports two types of <strong>Amazon Machine Images (AMIs)</strong>: S3-backed and EBS-backed, each with specific storage features.</li></ul><h4>Architecting and Managing EC2 Applications:</h4><ul><li>Success with EC2 relies on understanding its unique characteristics and <strong>designing applications</strong> accordingly.</li><li>Applications need to leverage EC2’s features to <strong>optimize performance and cost-effectiveness.</strong></li></ul><h3>ADVANTAGES OF EC2</h3><p>It enables users to quickly create, configure, and <strong>launch virtual servers </strong>known as <strong>EC2 instances </strong>to run applications and services.</p><ul><li>You can choose from a wide range of <strong>instance types </strong>based on your specific requirements, such as <strong>computing power, memory, and storage</strong>.</li><li><strong>EC2 instances </strong>can be easily <strong>scaled up or down based on demand</strong>, allowing you to <strong>pay only for the resources </strong>you need.</li><li>You have <strong>full control over the instance</strong>, including the operating system and software configurations.</li><li><strong>EC2 instances </strong>can be <strong>accessed remotely</strong>, allowing you to connect to them and manage them over the internet.</li></ul><h3>AMAZON MACHINE IMAGES (AMIs)</h3><p>When it comes to installing the operating system (OS) on your EC2 instance, the first step is to have a bootable image.</p><p><strong>AMIs(Amazon Machine Images)</strong> are <strong>pre-configured templates </strong>with the <strong>operating system, applications, and software</strong> needed to <strong>launch an EC2 instance</strong>.</p><ul><li><strong>AMIs</strong> are used as the <strong>foundation for launching EC2 instances</strong>.</li><li>This streamlined process <strong>eliminates the need to manually install the OS</strong> and simplifies the setup of your EC2 instances.</li><li>AWS provides a wide <strong>variety of pre-built AMIs</strong>, including different operating systems and software configurations.</li><li>You can also <strong>create your own custom AMIs </strong>by starting with an existing AMI, modifying it as needed, and then saving it as a new image.</li><li>AMIs can be <strong>shared with other AWS accounts</strong>, allowing you to <strong>collaborate with other users</strong> or distribute your custom configurations.</li><li>When launching an EC2 instance, you can <strong>select the desired AMI </strong>and <strong>launch multiple instances from the same AMI </strong>if needed.</li></ul><h3>EC2 SIZING AND CONFIGURATION OPTIONS</h3><ul><li><strong>Operating Systems: </strong>EC2 supports a wide range of operating systems, including popular choices like <strong>Amazon Linux</strong>, <strong>Ubuntu, Windows Server, and more</strong>, allowing flexibility in choosing the desired OS.</li><li><strong>Instance Types: </strong>EC2 offers a wide range of instance types with varying <strong>compute, memory, storage, and networking </strong>capabilities to match specific workload requirements.</li><li><strong>Instance Families: </strong>Instances are grouped into families based on their intended use cases, such <strong>as general-purpose, memory-optimized, compute-optimized, storage-optimized</strong>, etc.</li><li><strong>Instance Sizes: </strong>Each instance family includes <strong>multiple size options </strong>with different resource allocations, allowing you to <strong>choose the right balance of CPU, memory, and storage </strong>for your application.</li><li><strong>Pricing Models: </strong>EC2 provides options for <strong>On-Demand Instances </strong>(pay-as-you-go), <strong>Reserved Instances </strong>(upfront payment for long-term usage), and <strong>Spot Instances </strong>(bid-based pricing) to optimize cost efficiency.</li><li><strong>Storage Options: </strong>EC2 instances offer various storage options, including <strong>instance store </strong>(ephemeral storage), <strong>Elastic Block Store (EBS) volumes</strong>, and <strong>Amazon S3 for object storage </strong>needs.</li><li><strong>Networking &amp; Security: </strong>EC2 instances can be deployed within <strong>Virtual Private Cloud </strong>(VPC) environments, enabling customizable <strong>network configurations</strong>, <strong>subnet placement</strong>, <strong>security groups</strong>, and <strong>access control</strong>.</li><li><strong>Auto Scaling</strong>: EC2 Auto Scaling enables <strong>dynamic scaling of instances based on application demand</strong>, ensuring optimal performance and cost-efficiency by <strong>automatically adjusting </strong>the instance count.</li><li><strong>Load Balancing: </strong>Elastic Load Balancing (ELB) <strong>distributes incoming traffic across multiple instances</strong>, improving <strong>availability, scalability, and fault tolerance</strong> for your applications.</li><li><strong>Instance Metadata: </strong>EC2 provides instance <strong>metadata accessible from within the instance</strong>, allowing applications to retrieve valuable information about the instance’s configuration, networking, and attributes.</li></ul><h3>EC2 INSTANCE TYPES</h3><ul><li><strong>EC2 instances </strong>come in <strong>various types </strong>optimized for different use cases.</li><li><strong>AWS follows a naming convention </strong>like <strong>m5.2xlarge</strong> for instance types.</li></ul><blockquote><strong>m5.2xlarge</strong></blockquote><blockquote><strong>m</strong>: <strong>instance class</strong></blockquote><blockquote><strong>5</strong>: <strong>generation </strong>(AWS improves them over time)</blockquote><blockquote><strong>2xlarge</strong>: <strong>size within the instance class</strong></blockquote><ul><li>Each <strong>instance type offers </strong>specific combinations of <strong>compute, memory, and storage resources</strong>.</li><li>Instance types are <strong>regularly improved by AWS </strong>to deliver better performance and capabilities.</li></ul><p><strong>Note: Choosing the right instance type is crucial </strong>for meeting your application’s requirements efficiently</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*FPTumBnOd80mlIIWhvrKKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yzMe6PJyd-BI-hiFNVZupA.png" /></figure><h4><strong>Note: Use t2.micro, which is part of an AWS free tier (up to 750 per month)</strong></h4><h3>INTRODUCTION TO SECURITY GROUPS</h3><ul><li><strong>Security Groups </strong>are <strong>crucial for network security </strong>in AWS.</li><li>They <strong>regulate inbound and outbound traffic </strong>for EC2 instances.</li><li>Security Groups are <strong>rule-based</strong> and do not contain any actual data.</li><li>Rules within Security Groups can <strong>reference IP addresses </strong>or other Security Groups.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qAF064_3v9sIO2qenQc39g.png" /></figure><p><strong>1. Attachment flexibility: </strong>Security Groups can be <strong>attached to multiple instances </strong>for consistent security policies.</p><p><strong>2. Region and VPC-specific: </strong>Security Groups are <strong>restricted to specific regions </strong>and VPC combinations.</p><p><strong>3. External impact: </strong>Security Groups operate outside EC2 instances, <strong>blocking traffic</strong> that the instance won’t see.</p><p><strong>4. Separate SSH security: </strong>It’s advisable to maintain a <strong>separate Security Group </strong>for SSH access.</p><p><strong>5. Troubleshooting clues: </strong>Time-out suggests Security Group issues, while <strong>“connection refused” </strong>points to application errors or launch problems.</p><p><strong>6. Default traffic behaviour: Inbound traffic is blocked by default</strong>, while outbound traffic is authorized by default.</p><h3>UNDERSTANDING CLASSIC PORTS</h3><blockquote>• <strong>Port 22: </strong>SSH (Secure Shell) — Used to log into a Linux instance securely.</blockquote><blockquote>• <strong>Port 21: </strong>FTP (File Transfer Protocol) — Used for uploading files to a file share.</blockquote><blockquote>• <strong>Port 22: </strong>SFTP (Secure File Transfer Protocol) — Used for uploading files using SSH.</blockquote><blockquote>• <strong>Port 80: </strong>HTTP — Used to access unsecured websites.</blockquote><blockquote>• <strong>Port 443: </strong>HTTPS — Used to access secured websites.</blockquote><blockquote>• <strong>Port 3389: </strong>RDP (Remote Desktop Protocol) — Used to log into a Windows instance remotely.</blockquote><h3>USER DATA</h3><ul><li>User Data refers to <strong>user-provided information </strong>that is passed to EC2 instances during their <strong>launch process</strong>.</li><li>It can be in the <strong>form of scripts, configuration files, or plain text-based input</strong>.</li><li>User Data allows <strong>customization and configuration </strong>of instances to meet specific requirements.</li><li>During the instance launch, the provided User Data is <strong>executed automatically.</strong></li><li>User Data scripts can be used to <strong>install software packages</strong>, <strong>configure services, set up custom settings</strong>, or perform any other necessary tasks to prepare the instance.</li><li>User Data is <strong>commonly used for system configuration</strong>, application deployment, and automation of instance setup.</li></ul><blockquote>It is <strong>important to note </strong>that <strong>User Data is executed only once</strong>, during the <strong>initial launch of the instance</strong>. Subsequent changes or configurations typically require other methods such as SSH or remote management tools.</blockquote><h3>PURCHASING OPTIONS FOR EC2 INSTANCE</h3><p><strong>1. On-Demand Instances: </strong>Ideal for <strong>short workloads </strong>with predictable pricing, billed by the second.</p><p><strong>2. Reserved Instances: </strong>Best for long workloads, offering significant cost savings over time with <strong>1-year or 3-year commitments</strong>.</p><p><strong>3. Convertible Reserved Instances: </strong>Similar to Reserved Instances but with the <strong>flexibility to change the instance type later</strong>.</p><p><strong>4. Savings Plans:</strong> Requires a <strong>commitment to a specific amount </strong>of usage, suitable for long workloads, available in <strong>1-year or 3-year </strong>options.</p><p><strong>5. Spot Instances: </strong>Well-suited for <strong>short workloads with low costs</strong>, but instances can be lost if demand exceeds supply (less reliable).</p><p><strong>6. Dedicated Hosts: </strong>Allows <strong>booking an entire physical server</strong>, providing control over instance placement.</p><p><strong>7. Dedicated Instances: </strong>Ensures that <strong>no other customers share </strong>the underlying hardware.</p><p><strong>8. Capacity Reservations: </strong>Enables <strong>reserving capacity in a specific Availability Zone </strong>(AZ) for any desired duration.</p><h3>CONCLUSION</h3><p>We have explored the world of EC2 in-depth, comparing it to traditional processes and highlighting its advantages. We discussed virtualization, EC2 characteristics, AMIs, and the importance of selecting the right instance types and sizing options based on your needs. Additionally, we touched upon pricing configurations to help optimize costs.</p><p>You can also refer to this <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html"><strong>Amazon EC2 Documentation</strong></a></p><p>For a hands-on experience, I recommend referring to the next article, where I provide a step-by-step guide for launching and accessing your first EC2 instance. With this guide, you’ll be able to effortlessly launch your EC2 instance and embark on your cloud computing journey.</p><p>Don’t forget to follow me on LinkedIn, where I cover all my content related to the fundamentals of cloud computing and AWS <a href="https://www.linkedin.com/in/sahdevgrover"><strong>https://www.linkedin.com/in/sahdevgrover</strong></a></p><p>If you have any queries or require assistance, please feel free to reach out. Your feedback is highly appreciated as we continue to explore more things in the world of AWS.</p><p><strong>So stay tuned for the next article!</strong></p><h3>THANK YOU FOR READING MY ARTICLE!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb702b53c9ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>