<?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 Shishir Subedi on Medium]]></title>
        <description><![CDATA[Stories by Shishir Subedi on Medium]]></description>
        <link>https://medium.com/@sissub?source=rss-dc37bdb6bd6b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZVLTjCuDDsQPNRSbjfCO1A.png</url>
            <title>Stories by Shishir Subedi on Medium</title>
            <link>https://medium.com/@sissub?source=rss-dc37bdb6bd6b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:16:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sissub/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[The Smart Bucket: Using AI to Brand Images on AWS]]></title>
            <link>https://towardsaws.com/the-smart-bucket-using-ai-to-brand-images-on-aws-4aa8e1115a28?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4aa8e1115a28</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[amazon-rekognition]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 09:19:23 GMT</pubDate>
            <atom:updated>2026-04-09T09:19:23.700Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTmI5FA9MkG6HBhPkVlhAw.png" /></figure><p>In my previous <a href="https://medium.com/h7w/building-an-automated-image-brander-with-aws-lambda-and-s3-54db1407948e">post</a>, I shared how to build a serverless image branding tool using <strong>AWS Lambda</strong> and <strong>S3</strong>. It was a great exercise in event-driven architecture, but let’s be honest: adding the same “Processed Image” text to every file is a bit… static.</p><p>Today, I’m taking it a step further. I’ve integrated <strong>Amazon Rekognition</strong> to make the branding “smart.” Instead of generic text, the system now “sees” the image and automatically brands it with the objects it identifies.</p><h4>What is Amazon Rekognition?</h4><p><strong>Amazon Rekognition</strong> is a fully managed computer vision service. It is a “Pre-trained AI” service, meaning AWS has already trained the models on billions of images. As developers, we don’t need to build or train our own models; we simply send an image to the Rekognition API, and it identifies objects, people, and scenes for us.</p><h3>The Challenge: Contextual Branding</h3><p>When managing content for my Facebook page, categorizing images manually is time-consuming. I needed a way for my cloud pipeline to:</p><ol><li><strong>Identify</strong> the subject (e.g., “Lion,” “Forest,” “Drone”).</li><li><strong>Label</strong> the image dynamically.</li><li><strong>Process</strong> it all without managing a single server.</li></ol><h3>The Architecture</h3><p>The workflow utilizes the buckets I created in my last project: image-upload-shishir (the trigger) and image-resized-shishir (the output).</p><blockquote>My previous project <a href="https://medium.com/h7w/building-an-automated-image-brander-with-aws-lambda-and-s3-54db1407948e">Here</a>.</blockquote><p><strong>The Workflow:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMlEqOuCk7hUMClizOFLnw.png" /><figcaption>Architecture of the Project</figcaption></figure><ol><li><strong>S3 Upload:</strong> An image is dropped into image-upload-shishir.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SQy0Gb8oBRzom7J4DsEvzQ.png" /><figcaption>Buckets I had created in my previous project</figcaption></figure><ol><li><strong>Lambda Trigger:</strong> The upload triggers a Python 3.12 function.</li><li><strong>AI Inference:</strong> The function sends the image bytes to <strong>Amazon Rekognition</strong> using the detect_labels API.</li><li><strong>Dynamic Watermarking:</strong> Using the <strong>Pillow</strong> library, the top AI-detected labels are “burned” onto the image.</li><li><strong>Storage:</strong> The final “smart-branded” image is saved to image-resized-shishir.</li></ol><h3>Technical Implementation</h3><h4>1. The Filtering Logic</h4><p>A key part of intelligent branding is “filtering.” A raw AI response might include hundreds of labels like “Sky” or “Grass.” Our code specifically filters for animals and wildlife to create a focused branding tag.</p><h4>2. The Code (Python 3.12)</h4><p>We use a semi-transparent black rectangle behind the text to ensure readability regardless of the photo’s background colors.</p><pre>import boto3<br>import io<br>from PIL import Image, ImageDraw<br><br>def lambda_handler(event, context):<br>    &quot;&quot;&quot;<br>    Main Lambda function triggered by S3 upload. <br>    It detects animals in an image and applies a smart branding overlay.<br>    &quot;&quot;&quot;<br>    <br>    # --- STEP 1: INITIALIZE AWS CLIENTS ---<br>    # boto3 is the AWS SDK for Python. We need S3 for files and Rekognition for AI.<br>    s3 = boto3.client(&#39;s3&#39;)<br>    rekognition = boto3.client(&#39;rekognition&#39;)<br>    <br>    # --- STEP 2: EXTRACT METADATA FROM THE TRIGGER EVENT ---<br>    # When a file is uploaded, S3 sends a &#39;JSON event&#39; to Lambda.<br>    # We extract the bucket name and the specific file name (object_key).<br>    source_bucket = event[&#39;Records&#39;][0][&#39;s3&#39;][&#39;bucket&#39;][&#39;name&#39;]<br>    object_key = event[&#39;Records&#39;][0][&#39;s3&#39;][&#39;object&#39;][&#39;key&#39;]<br>    dest_bucket = &quot;your-destination-bucket-name&quot; # Change this to your output bucket<br>    <br>    # --- STEP 3: DOWNLOAD THE IMAGE INTO MEMORY ---<br>    # We fetch the raw image bytes from S3 so we can process them.<br>    file_obj = s3.get_object(Bucket=source_bucket, Key=object_key)<br>    image_content = file_obj[&#39;Body&#39;].read()<br>    <br>    # --- STEP 4: CALL AMAZON REKOGNITION (THE AI BRAIN) ---<br>    # We send the image bytes to the &#39;detect_labels&#39; API.<br>    # MaxLabels=10: We only want the top 10 most relevant things found.<br>    # MinConfidence=75: Ignore anything the AI is less than 75% sure about.<br>    rek_response = rekognition.detect_labels(<br>        Image={&#39;Bytes&#39;: image_content},<br>        MaxLabels=10,<br>        MinConfidence=75<br>    )<br>    <br>    # --- STEP 5: FILTER THE AI RESULTS ---<br>    # Rekognition returns many labels (Sky, Grass, etc.). <br>    # We loop through them and only keep labels that have &#39;Animal&#39; or &#39;Wildlife&#39; as parents.<br>    tags = []<br>    for label in rek_response[&#39;Labels&#39;]:<br>        # &#39;Parents&#39; are the categories the label belongs to.<br>        parent_names = [p[&#39;Name&#39;] for p in label[&#39;Parents&#39;]]<br>        <br>        if &#39;Animal&#39; in parent_names or &#39;Wildlife&#39; in parent_names:<br>            # We filter out generic terms like &quot;Animal&quot; to get specific species like &quot;Elephant&quot;.<br>            if label[&#39;Name&#39;] not in [&#39;Animal&#39;, &#39;Mammal&#39;, &#39;Wildlife&#39;]:<br>                tags.append(label[&#39;Name&#39;])<br>    <br>    # If no animals are found, we use a default fallback text.<br>    branding_text = f&quot;Detected: {&#39;, &#39;.join(tags[:2])}&quot; if tags else &quot;Nature Photography&quot;<br><br>    # --- STEP 6: IMAGE BRANDING WITH PILLOW ---<br>    # We open the image and convert it to RGBA to allow for transparent overlays.<br>    img = Image.open(io.BytesIO(image_content)).convert(&quot;RGBA&quot;)<br>    <br>    # Create a blank &#39;canvas&#39; the same size as our image for the branding layer.<br>    overlay = Image.new(&#39;RGBA&#39;, img.size, (255, 255, 255, 0))<br>    draw = ImageDraw.Draw(overlay)<br>    <br>    # DRAW THE BACKGROUND BAR:<br>    # A semi-transparent black rectangle (Alpha=150) across the top for readability.<br>    # Coordinates: [x0, y0, x1, y1] -&gt; [Start Left, Start Top, End Right, Bar Height].<br>    draw.rectangle([0, 0, img.width, 60], fill=(0, 0, 0, 150)) <br>    <br>    # DRAW THE TEXT:<br>    # Place our AI-detected labels in white text inside the bar.<br>    draw.text((20, 15), branding_text, fill=(255, 255, 255, 255))<br>    <br>    # --- STEP 7: MERGE AND FORMAT ---<br>    # We combine the original image with our branding overlay.<br>    # Convert back to &#39;RGB&#39; because standard JPEG format doesn&#39;t support transparency.<br>    final_img = Image.alpha_composite(img, overlay).convert(&quot;RGB&quot;)<br>    <br>    # Save the final image to a byte buffer instead of a physical disk.<br>    out_buffer = io.BytesIO()<br>    final_img.save(out_buffer, format=&quot;JPEG&quot;)<br>    out_buffer.seek(0)<br>    <br>    # --- STEP 8: UPLOAD TO DESTINATION S3 ---<br>    # We send the newly branded image to our output bucket.<br>    s3.put_object(<br>        Bucket=dest_bucket, <br>        Key=f&quot;smart-branded-{object_key}&quot;, <br>        Body=out_buffer,<br>        ContentType=&quot;image/jpeg&quot;<br>    )<br>    <br>    return {<br>        &quot;status&quot;: &quot;Success&quot;,<br>        &quot;processed_file&quot;: object_key,<br>        &quot;labels_found&quot;: tags<br>    }</pre><h3>Results?</h3><p>To see the true power of the “Smart Branding” logic, let’s look at how the system handles a high-resolution photo of an elephant.</p><h4>The “Before” Image</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TMmPjKDAAA6DqYQxGtd3mg.jpeg" /><figcaption>Image Before [Photo Credit: Photo by <a href="https://unsplash.com/@bepnamanh?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nam Anh</a> on <a href="https://unsplash.com/photos/elephant-walking-during-daytime-QJbyG6O0ick?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>]</figcaption></figure><ul><li><strong>Input:</strong> A raw image of an African elephant in the wild is uploaded to image-upload-shishir.</li><li><strong>AI Analysis:</strong> Behind the scenes, Amazon Rekognition identifies dozens of labels: <em>Elephant, Birds, Mammal, Animal, Wildlife, Grassland, and Sky.</em></li><li><strong>The Filter:</strong> Our Python logic ignores the generic tags like “Sky” or “Grassland” and focuses on the high-confidence animal labels.</li></ul><h4>The “After” Image</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9jkGq9Oc5iPSKc5GCFV4Q.jpeg" /><figcaption>Image After</figcaption></figure><ul><li><strong>Output:</strong> Within seconds, the processed image appears in image-resized-shishir.</li><li><strong>Visual Branding:</strong> The final photo now features a professional, semi-transparent black bar at the top.</li><li><strong>The Tag:</strong> The text clearly reads: <strong>“Species Detetcted Elephant Bird”</strong>.</li></ul><p>By using this approach, the branding is no longer just a “stamp” — it is metadata that has been visually integrated into the content, making it immediately clear what the subject of the photography is without any manual tagging.</p><h3>Benefits</h3><p>By adding this single API call to the workflow, the application moves from basic automation to a context-aware system.</p><ul><li><strong>Scalability:</strong> This setup can process thousands of images simultaneously.</li><li><strong>Cost-Efficiency:</strong> Because it is serverless, you only pay for the seconds the code runs and the number of images Rekognition analyzes.</li><li><strong>Customization:</strong> By adjusting the “filtering” logic in the Python code, you can adapt this tool for any industry from real estate to automotive photography</li></ul><h3>Key Takeaways</h3><p>Building this intelligent pipeline offers several insights into modern cloud architecture:</p><ul><li><strong>Intelligence Without Complexity:</strong> You don’t need to be a Data Scientist to implement Computer Vision. By using <strong>Amazon Rekognition</strong>, you leverage years of Google-scale machine learning via a simple API call.</li><li><strong>The Power of Filtering:</strong> Raw AI data is noisy. The real value of a developer lies in the “Business Logic” the ability to filter specific labels (like Animals) to create a focused, high-quality user experience.</li><li><strong>Cost-Effective Scalability:</strong> Since the entire stack is <strong>Serverless</strong>, the infrastructure costs effectively zero when it isn’t being used. This is the “Pay-as-you-go” philosophy at its best.</li><li><strong>Context is King:</strong> Moving from static watermarks to dynamic, AI-generated labels makes the output significantly more professional and useful for categorization.</li></ul><h3>What’s Next?</h3><p>Next, I’m looking into using <strong>Amazon Translate</strong> to automatically translate these labels into different languages, making the branding truly global.</p><p><strong>Are you using AI in your cloud projects yet? Let me know in the comments!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4aa8e1115a28" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/the-smart-bucket-using-ai-to-brand-images-on-aws-4aa8e1115a28">The Smart Bucket: Using AI to Brand Images on AWS</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your AWS Bill Is High (And How Better Architecture Fixes It)]]></title>
            <link>https://towardsaws.com/why-your-aws-bill-is-high-and-how-better-architecture-fixes-it-ca6a70701aba?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca6a70701aba</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[wellarchitectedframework]]></category>
            <category><![CDATA[billing]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 14:31:27 GMT</pubDate>
            <atom:updated>2026-01-28T08:56:56.898Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*91qO9MpK7bcyUNkATEuRpg.png" /></figure><h3>That Shocking AWS Monthly Bill</h3><p>You open your email, see an AWS invoice notification, and instantly feel that familiar sense of dread. How did the bill jump from $80 to $800 in a single month? Nothing changed, or at least that’s what it feels like.</p><blockquote>This moment usually leads to the same thoughts:<br><em>“AWS is a money pit.”<br>“Cloud is way more expensive than on‑prem.”</em></blockquote><p>But here’s the uncomfortable truth. <strong>AWS is rarely the real problem.</strong> Your bill is simply a mirror that reflects the architectural choices you made.</p><p>A high AWS bill is not a finance issue. It is an <strong>architecture feedback signal</strong>.</p><p>This post is not about chasing discounts or asking finance teams for bigger budgets. It is about building systems that are designed to be efficient from day one.</p><h3>Why Defaulting to EC2 Makes Your AWS Bill Explode</h3><p>One of the most common AWS cost mistakes beginners make is treating AWS like a traditional data center.</p><p>The pattern usually looks like this:</p><ul><li>Spin up a few m5.large EC2 instances</li><li>Run them 24/7</li><li>Actual workload usage is only 10 to 20 percent</li></ul><p>You did not really move to the cloud. You just moved your servers.</p><h4>The Architectural Shift: Always On to On Demand</h4><p>The cloud rewards elasticity, not permanence.</p><p>More cost efficient AWS architecture patterns include:</p><ul><li><strong>AWS Lambda</strong> for event driven or spiky workloads</li><li><strong>AWS Fargate</strong> for running containers without managing servers</li><li><strong>Auto Scaling Groups</strong> for workloads that truly need EC2</li></ul><p>If your application sleeps most of the day, your infrastructure should sleep too. This single shift alone can cut AWS costs dramatically.</p><h3>Hidden AWS Resources That Quietly Increase Your Bill</h3><p>Some of the most expensive AWS resources are not the ones you actively use. They are the ones you forgot about.</p><h4>Common AWS Cost Leaks Beginners Miss</h4><ul><li><strong>Orphaned EBS volumes</strong><br>You terminate an EC2 instance, but the EBS volume stays alive and keeps billing you every month.</li><li><strong>Idle NAT Gateways</strong><br>NAT Gateways are charged hourly, even when there is no traffic going through them.</li><li><strong>Unused Elastic IPs</strong><br>AWS actually charges you for Elastic IPs that are allocated but not attached.</li></ul><h4>The Architecture Fix: Infrastructure with a Clear Lifecycle</h4><p>Manual infrastructure creates leftovers. This is where <strong>Infrastructure as Code</strong>, or IaC, really helps.</p><p>Using tools like <strong>AWS CDK</strong> or <strong>Terraform</strong> allows you to:</p><ul><li>Track every AWS resource</li><li>Destroy environments cleanly</li><li>Avoid zombie infrastructure that never dies</li></ul><p>If a resource does not have a lifecycle, it will eventually outlive its usefulness and quietly drain your budget.</p><h3>S3 Storage Costs: Why Standard Is Not Always the Best Choice</h3><p>Amazon S3 is known for being cheap, which leads to another common habit:</p><blockquote><em>“Just dump everything in S3 Standard and forget about it.”</em></blockquote><p>That works fine, until you are storing terabytes of old logs and backups that nobody ever reads.</p><h4>The Architecture Fix: Tier Your Data</h4><p>Two simple and powerful options:</p><ul><li><strong>S3 Intelligent Tiering</strong>, where AWS automatically moves data based on access patterns</li><li><strong>S3 Lifecycle Policies</strong>, where you decide when data moves to cheaper storage</li></ul><h4>Real World Impact</h4><p>Moving logs from <strong>S3 Standard</strong> to <strong>S3 Glacier</strong> after 30 days can reduce storage costs by up to 90 percent.</p><h4>Example: S3 Lifecycle Policy Using CloudFormation</h4><pre>Resources:<br>  LogBucket:<br>    Type: AWS::S3::Bucket<br>    Properties:<br>      LifecycleConfiguration:<br>        Rules:<br>          - Status: Enabled<br>            Transitions:<br>              - TransitionInDays: 30<br>                StorageClass: GLACIER</pre><p>This is architecture making a cost decision automatically, without human involvement.</p><h3>AWS Data Transfer Costs: The Silent Budget Destroyer</h3><p>Compute and storage get most of the attention, but <strong>AWS data transfer costs</strong> quietly eat budgets.</p><h4>The Common Mistakes</h4><ul><li>Sending traffic across Availability Zones without realizing it is billable</li><li>Moving data across Regions casually</li><li>Using public internet paths when private options exist</li></ul><h4>The Architecture Fix</h4><ul><li>Keep tightly coupled services within the same Availability Zone where possible</li><li>Use <strong>VPC Endpoints (AWS PrivateLink)</strong> to keep traffic private and off the public internet</li></ul><p>In AWS, distance costs money. The farther your data travels, the higher the bill gets.</p><h3>Over Provisioning in AWS: Paying for Traffic That Never Comes</h3><p>Another classic AWS mistake sounds like this:</p><blockquote><em>“Let’s size the database for Black Friday, just in case.”</em></blockquote><p>Now your RDS database is sized for peak traffic on a random Tuesday in July.</p><h4>The Architecture Fix</h4><ul><li><strong>Aurora Serverless v2</strong> for workloads that change over time</li><li><strong>AWS Compute Optimizer</strong> to find over provisioned compute and database resources</li></ul><p>Right sizing is not a one time task.</p><p>Architecture is an iterative process, not something you set once and forget.</p><h3>Conclusion: Becoming a Cost Aware AWS Builder</h3><p>Good AWS architects treat <strong>cost</strong> as a first class metric, right alongside:</p><ul><li>Security</li><li>Reliability</li><li>Performance</li></ul><p>This mindset comes directly from the <strong>AWS Well Architected Framework</strong>, especially the <strong>Cost Optimization Pillar</strong>.</p><p>Instead of obsessing over discounts, reserved instances, or savings plans, start asking better architectural questions:</p><ul><li>Can this workload be event driven?</li><li>Does this service really need to run 24/7?</li><li>Is this data worth keeping in hot storage?</li></ul><h3>Final Thoughts</h3><p>AWS rewards efficiency. If your system is smart, the bill usually follows. If it is not, the bill will remind you every single month.</p><p>Your AWS invoice is already telling you what to fix. You just have to listen.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca6a70701aba" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/why-your-aws-bill-is-high-and-how-better-architecture-fixes-it-ca6a70701aba">Why Your AWS Bill Is High (And How Better Architecture Fixes It)</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Automated Image Brander with AWS Lambda and S3]]></title>
            <link>https://medium.com/h7w/building-an-automated-image-brander-with-aws-lambda-and-s3-54db1407948e?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/54db1407948e</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 09:06:52 GMT</pubDate>
            <atom:updated>2026-01-09T23:29:18.462Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>How I solved the “No IAM” challenge in a Learner Lab using a serverless pipeline</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkIAsCIl33gvK-zuyWILNw.png" /></figure><h3>Introduction: Why I Built This?</h3><p>If you create content, you already know this problem.<br>Uploading images, adding watermark or brand text, saving again, and repeating the same steps again and again. It is slow and honestly boring.</p><p>I wanted something better. Something automatic.<br>I wanted AWS to do the work for me the moment I upload an image.</p><p>That is when I decided to build a <strong>serverless, event-driven image branding system</strong> using AWS Lambda and S3.</p><p>The interesting part is, I built this inside an <strong>AWS Learner Lab</strong>, where IAM permissions are limited. No custom roles and no full access. This made the project feel more real and closer to how things work in professional environments.</p><h3>Architecture Overview: How It Works</h3><p>The flow is simple and clean.</p><p>First, I upload an image to a <strong>source S3 bucket</strong>.<br>As soon as the image is uploaded, S3 sends an event to AWS Lambda.<br>Lambda runs a Python function using the Pillow library and adds a custom text on the image.<br>Finally, Lambda saves the branded image into a <strong>destination S3 bucket</strong>.</p><p>No servers to manage.<br>No manual steps.<br>Just upload and done.</p><h3>Tools and Services Used</h3><p>To build this project, I only needed a few AWS services.</p><h4>Storage</h4><p>Amazon S3 with two buckets. One for input images and one for output images.</p><h4>Compute</h4><p>AWS Lambda running Python 3.12.</p><h4>Permissions</h4><p>LabRole. In learner environments, we cannot create IAM roles, so this pre-existing role must be reused.</p><h4>Dependencies</h4><p>Lambda Layers. I used this to add the Pillow image library since Lambda does not support image processing by default.</p><h3>Step by Step Implementation</h3><h4>Step 1: S3 Bucket Setup</h4><p>I created two S3 buckets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSYon3nnp8zhniRWzKukIA.png" /><figcaption>Two S3 Buckets for this task</figcaption></figure><p>You need two separate buckets to prevent an infinite loop (where the output image triggers the function again).</p><ol><li>Create the <strong>Source Bucket</strong> (e.g., image-upload-shishir).</li><li>Create the <strong>Destination Bucket</strong> (e.g., image-resized-shishir).</li><li>Ensure bucket names are unique globally.</li></ol><h4>Step 2: Create the Lambda Function</h4><p>The Lambda function acts as the “brain” of the operation.</p><ol><li>Go to the Lambda Console and click <strong>Create function</strong>.</li><li><strong>Function Name:</strong> Give it a unique name.</li><li><strong>Runtime:</strong> Select <strong>Python 3.12</strong>.</li><li><strong>Permissions:</strong> Select <strong>Use an existing role</strong> and choose <strong>LabRole</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lXOOpW02ykz98rrKlEuJUA.png" /><figcaption>Steps for creating a Lambda Function</figcaption></figure><h4>Step 3: Add the Secret Ingredient (Lambda Layers)</h4><p>By default, Lambda does not include the <strong>Pillow</strong> library required for image manipulation. We add this using a Layer.</p><ol><li>Scroll to the bottom of your Lambda function page to the <strong>Layers</strong> section.</li><li>Click <strong>Add a layer</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qGDwfusCPy7zhnKzyR0x3A.png" /><figcaption>Click “Add Layer”</figcaption></figure><p>3. Select <strong>Specify an ARN</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzwxnTp4I-YiJT2zzwqsOg.png" /><figcaption>Select “Specify an ARN”</figcaption></figure><p>4. Paste the ARN for your region (Example for us-east-1): arn:aws:lambda:us-east-1:770693421928:layer:Klayers-p312-Pillow:4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*if3MKGlXgr-2AG818s0PWQ.png" /><figcaption>Click “Verify” to verify your ARN</figcaption></figure><p>5. Click <strong>Verify</strong> and then <strong>Add</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O42Pcf8EQAVpKUjADveDIw.png" /><figcaption>Verify the created layers</figcaption></figure><p>This step is very important. Without the layer, the function will fail.</p><h4>Step 4: Code Breakdown (What the Function Actually Does)</h4><p>This is the core part where the image gets processed.</p><p><strong>1. Downloading the Image</strong></p><p>The image is downloaded from S3 into the /tmp/ directory.<br>Lambda only allows temporary storage here.</p><p><strong>2. Initializing the Canvas</strong></p><p>Using ImageDraw.Draw(img), I treated the image like a canvas and drew text on top of it.</p><p><strong>3. Font Choice (The Safe Option)</strong></p><p>I used ImageFont.load_default().</p><p>This font is built into Pillow, so it always works.<br>The downside is that the size cannot be scaled much, but it guarantees reliability. I tried external fonts earlier and faced errors, so this was a safer choice for now.</p><p><strong>4. Text Color and Position</strong></p><p>I used RGB values to define black color.</p><p>fill=(0, 0, 0) means pure black.</p><p>The text position (20, 20) adds padding from the top-left corner, which looks clean and professional.</p><p><strong>5. Saving and Uploading the Image</strong></p><p>After processing, the image is saved locally and then uploaded to the destination S3 bucket with a new name.</p><p><strong>6. The Code</strong></p><pre>import boto3<br>import os<br>import uuid<br>from urllib.parse import unquote_plus<br>from PIL import Image, ImageDraw, ImageFont<br><br>s3_client = boto3.client(&#39;s3&#39;)<br><br>def lambda_handler(event, context):<br>    # 1. Configuration<br>    DEST_BUCKET = &quot;image-resized-shishir&quot; # UPDATE TO YOUR BUCKET NAME<br>    OVERLAY_TEXT = &quot;This is a Processed Image using Lambda Trigger&quot;<br>    <br>    for record in event[&#39;Records&#39;]:<br>        source_bucket = record[&#39;s3&#39;][&#39;bucket&#39;][&#39;name&#39;]<br>        key = unquote_plus(record[&#39;s3&#39;][&#39;object&#39;][&#39;key&#39;])<br>        <br>        # Paths for temporary processing<br>        download_path = f&quot;/tmp/{uuid.uuid4()}{key}&quot;<br>        upload_path = f&quot;/tmp/overlay-{key}&quot;<br>        <br>        # 2. Download from S3<br>        s3_client.download_file(source_bucket, key, download_path)<br>        <br>        # 3. Image Processing (The Canvas)<br>        with Image.open(download_path) as img:<br>            draw = ImageDraw.Draw(img)<br>            font = ImageFont.load_default() # Guaranteed not to fail<br><br>            # 4. Draw Black Text (RGB: 0,0,0)<br>            draw.text((20, 20), OVERLAY_TEXT, fill=(0, 0, 0), font=font)<br>            img.save(upload_path)<br>        <br>        # 5. Upload back to S3<br>        s3_client.upload_file(upload_path, DEST_BUCKET, f&quot;overlay-{key}&quot;)<br>        print(f&quot;Success! Processed {key}&quot;)</pre><h4>Step 5: Configure the S3 Trigger</h4><p>This step connects the Source Bucket to the Lambda function.</p><ol><li>In the Lambda Console, click <strong>Add Trigger</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xPl4jO5JVB8xvXr4kEn2g.png" /><figcaption>Click “Add Trigger”</figcaption></figure><p>2. Select <strong>S3</strong> as the source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bnExGawTPNLK8yrrU8kr6A.png" /><figcaption>Selecting the Source</figcaption></figure><p>3. Select your <strong>Source Bucket</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHIqBaHP1uPH6HxUv4-w8w.png" /><figcaption>Leave everything as default, only select your bucket for upload</figcaption></figure><p>4. Event type: <strong>All object create events</strong>.</p><p>5. Acknowledge the <strong>Recursive Invocation</strong> warning and click <strong>Add</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4WDeTaNTkPNuyn7AZ88PA.png" /><figcaption>Acknowledge this box</figcaption></figure><ul><li>This means Lambda only runs when a new image exists.<br>No uploads, no execution, no cost.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PoPS9IxzuaSfD6gWI37FqQ.png" /><figcaption>S3 set as trigger for Lambda function to run</figcaption></figure><h3>Troubleshooting &amp; Key Learnings</h3><ul><li><strong>Timeout Issues:</strong> Default Lambda timeouts are often 3 seconds. High-resolution images may take longer. <strong>Increase the timeout to 30 seconds</strong> in the Configuration tab.</li><li><strong>IAM Restrictions:</strong> In a Learner Lab, you cannot create roles. Using the LabRole is a realistic way to practice working within existing corporate permission boundaries.</li><li><strong>Font Handling:</strong> ImageFont.load_default() is used here because it is built into Pillow, ensuring the function doesn&#39;t crash looking for missing .ttf files.</li></ul><h3>Testing and Results</h3><p>I uploaded images to the source bucket and watched the magic happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3cDGTPxfHZN0-55I7cfdhQ.png" /><figcaption>Uploading the test image to “Upload Bucket”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xh7sKHozFmoDP8i5SeAidQ.png" /><figcaption>Verifying the Uploaded Image</figcaption></figure><p>The destination bucket had the branded images within seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nnowwes0dg7mTU3YnQTPyw.png" /><figcaption>Destination Bucket with the Overlay text</figcaption></figure><p>CloudWatch logs confirmed the event trigger and successful execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMpykv4TieXpuR-UA_n0Ag.png" /><figcaption>Cloudwatch Logs</figcaption></figure><p>Seeing this work without any manual processing felt very satisfying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aCPKAGZSZ-CedB85X9XMyg.png" /><figcaption>Added overlay at the top left</figcaption></figure><p>Now with this you can feel free to change the overall structure of the printed text and change the size and color of the texts.</p><h3>Conclusion and What’s Next</h3><p>Once configured, simply upload an image to your source bucket. Within seconds, a branded version will appear in your destination bucket. You can verify the execution through <strong>CloudWatch Logs</strong>.</p><p>This project showed me how powerful serverless architecture really is.<br> You only pay when the function runs. No idle servers. No maintenance.</p><p>It also showed me that <strong>limitations do not stop learning</strong>. Even with restricted IAM access, you can still build meaningful cloud projects.</p><p>And yes, always remember to <strong>empty your S3 buckets</strong> after testing. Small costs add up.</p><p>If you are learning AWS and feel stuck, try building something small like this.<br>Upload one image. Let the cloud do the rest.</p><p>That is where confidence starts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54db1407948e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h7w/building-an-automated-image-brander-with-aws-lambda-and-s3-54db1407948e">Building an Automated Image Brander with AWS Lambda and S3</a> was originally published in <a href="https://medium.com/h7w">T3chtsz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Goodbye ClickOps: Deploy Your First S3 Bucket with Terraform in AWS CloudShell]]></title>
            <link>https://towardsaws.com/goodbye-clickops-deploy-your-first-s3-bucket-with-terraform-in-aws-cloudshell-58d0a1dd0a14?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/58d0a1dd0a14</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 04:06:01 GMT</pubDate>
            <atom:updated>2025-12-24T02:53:14.349Z</atom:updated>
            <content:encoded><![CDATA[<p>As an AWS Certified Cloud Practitioner, I spent a lot of time working inside the AWS Management Console. It is an excellent learning tool, but in real-world DevOps environments, manually clicking through services does not scale. Repeating the same setup, fixing small mistakes, or recreating resources becomes slow and error-prone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NwOUWY0ZEzIOKBfD4B6XoQ.png" /></figure><p>This is where <strong>Infrastructure as Code (IaC)</strong> changes everything. Instead of clicking, you define your infrastructure using code that can be versioned, shared, and reused.</p><p>In this tutorial, I will walk through how I used <strong>Terraform inside AWS CloudShell [Learner Labs] </strong>to create an Amazon S3 bucket in seconds using only code. This simple project is often the first step into modern cloud automation and DevOps practices.</p><h3>Why Infrastructure as Code (IaC)?</h3><p>Imagine needing to deploy *50* S3 buckets in three different regions. Doing this manually sounds painful, and honestly it is. You might forget a setting, choose a wrong region, or miss a permission. It also takes a lot of time.</p><p>This is why I started using <strong>Infrastructure as Code</strong>, or IaC.</p><p>With tools like <strong>Terraform</strong>, I write a simple blueprint of my infrastructure instead of clicking around the console. Once the code is ready, AWS creates everything exactly as defined.</p><p>Here is what IaC helped me with:</p><p><strong>Version Control</strong><br>I treat my infrastructure like software code. I can track changes, go back to older versions, and understand who changed what.</p><p><strong>Consistency</strong><br>Every deployment looks the same. No surprises, no missing settings, no guesswork.</p><p><strong>Speed</strong><br>I can create or delete full environments using one command. What used to take hours now takes minutes.</p><p>IaC made me feel more confident working with AWS, and it honestly changed how I think about building things in the cloud.</p><h3>Step 1: Preparing the Environment (AWS CloudShell)</h3><p>I chose to use <strong>AWS CloudShell</strong> for this project. It’s a browser-based shell that is pre-authenticated with your AWS credentials, making it incredibly secure and easy to use.</p><p>Terraform isn’t installed by default in CloudShell, so let’s set it up in our persistent home directory:</p><pre># Create a folder for binaries<br>mkdir -p ~/bin<br><br># Download the Terraform binary (Linux 64-bit)<br>wget https://releases.hashicorp.com/terraform/1.10.0/terraform_1.10.0_linux_amd64.zip<br><br># Unzip and move to your bin folder<br>unzip terraform_1.10.0_linux_amd64.zip<br>mv terraform ~/bin<br><br># Update your PATH to find the command<br>echo &#39;export PATH=$HOME/bin:$PATH&#39; &gt;&gt; ~/.bashrc<br>source ~/.bashrc<br><br># Verify installation<br>terraform -version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FyxGtFqjUAuUUb9o_s0Okw.png" /><figcaption>Installing Terraform in AWS Cloudshell</figcaption></figure><h3>Step 2: Writing the Terraform Code</h3><p>Now, let’s write our blueprint. Create a new directory and a file named main.tf.</p><pre>mkdir my-iac-project &amp;&amp; cd my-iac-project<br>touch main.tf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l-_c45ILMAcjiONm4WWxRA.png" /><figcaption>Creating and Entering the folder</figcaption></figure><p>To open and edit your main.tf file in AWS CloudShell, you have two main options: the <strong>Visual Editor</strong> (easiest) and the <strong>Terminal Editor</strong> (standard for DevOps).</p><p>If you want to stay in the command line and act like a pro DevOps engineer, you can use <strong>Vim</strong>, which is pre-installed in CloudShell.</p><ol><li>In your terminal, navigate to your folder: cd ~/my-iac-project</li><li>Type the command: vim main.tf and press enter.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wL9t_F4VtABNDw6i0TIlMw.png" /><figcaption>Entering the main.tf file</figcaption></figure><p>3. <strong>To start typing:</strong> Press the <strong>i</strong> key on your keyboard (this enters &quot;INSERT&quot; mode).</p><p>4. After opening main.tf ,paste the following code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QHz0j2R-FRSrOyxpjcQ7SA.png" /><figcaption>Creating the Terraform configuration file</figcaption></figure><pre># Define the AWS Provider<br>provider &quot;aws&quot; {<br>  region = &quot;us-east-1&quot;<br>}<br><br># Define the S3 Bucket resource<br>resource &quot;aws_s3_bucket&quot; &quot;my_first_bucket&quot; {<br>  bucket = &quot;my-unique-devops-project-2025&quot; # Ensure this is globally unique!<br><br>  tags = {<br>    Name        = &quot;My Terraform Bucket&quot;<br>    Environment = &quot;Dev&quot;<br>    Project     = &quot;S3Application&quot;<br>  }<br>}</pre><h4>What’s happening here?</h4><ul><li><strong>Provider:</strong> Tells Terraform we are talking to AWS and want to work in the us-east-1 region.</li><li><strong>Resource:</strong> This is the heart of IaC. We define the type of resource (aws_s3_bucket) and give it a local name (my_first_bucket).</li></ul><p>4. <strong>To save and exit:</strong></p><ul><li>Press the <strong>Esc</strong> key.</li><li>Type <strong>:wq</strong> (which stands for Write and Quit).</li><li>Press <strong>Enter</strong>.</li></ul><h3>Step 3: The Terraform Lifecycle</h3><p>This is where the magic happens. There are three core commands you need to know:</p><h4>1. The Initialization</h4><p>Run terraform init. This tells Terraform to scan your code and download the necessary AWS &quot;plugins&quot; to communicate with the cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDzwUCZthkW4pWc0aly2Yg.png" /><figcaption>Initializing the Terraform</figcaption></figure><h4>Troubleshooting: Reclaim Space in AWS CloudShell</h4><p>Because AWS CloudShell has a small <strong>1GB storage limit</strong>, downloading the Terraform installer can often fill up your environment. Once you have unzipped the file, the original .zip is just &quot;dead weight.&quot;</p><p><strong>Run this command to delete the installer and free up ~80MB immediately:</strong></p><pre># Remove the Terraform zip file to free up space<br>rm ~/terraform_*.zip</pre><h4>Why do this?</h4><ul><li><strong>Best Practice:</strong> Always clean up your workspace after an installation.</li><li><strong>Avoid Crashes:</strong> If your home directory hits 100%, terraform init will fail because it cannot download the necessary AWS plugins.</li><li><strong>Hygiene:</strong> It keeps your CloudShell environment fast and organized.</li></ul><h4>2. The Blueprint (Plan)</h4><p>Run terraform plan. This is a <strong>dry run</strong>. It shows you exactly what Terraform will create without actually making any changes yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dIMFwZPiu9PVn8ytGPFx0A.png" /><figcaption>Terraform Plan</figcaption></figure><h4>3. The Execution (Apply)</h4><p>Run terraform apply. When prompted, type yes. In seconds, your bucket is live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WyNLsKt5hPpi6B0_TS-KFw.png" /><figcaption>Terraform Apply</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tyJzPMu3ReoiHOU3vPpERw.png" /><figcaption>Write “yes” to confirm</figcaption></figure><h3>Step 4: Verification and Clean Up</h3><p>I headed over to the <strong>S3 Management Console</strong>, and there it was! A perfectly configured bucket with the exact tags I defined in my code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tKZvIygyyTxKqXBQsazKIA.png" /><figcaption>My Bucket using IaC</figcaption></figure><p><strong>The most important part of being a builder? Cleaning up.</strong> To avoid unnecessary costs or “cloud sprawl,” you can tear down everything you just built with one command:</p><pre>terraform destroy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TF1ZrNEzWrLj1lp6uAsNsg.png" /><figcaption>Cleaning the space</figcaption></figure><h3>Lessons Learned</h3><p>Switching from the AWS console to Terraform felt like unlocking a new way of thinking about cloud. As a cloud enthusiast, this was the moment where things started to really make sense. I was no longer just using AWS, I was building on it with confidence.</p><p>Automation made the cloud feel clean and repeatable. I could see my infrastructure clearly, understand it better, and trust it more. Writing things in code gave me a different level of control, even as a beginner.</p><p>This small Terraform project reminded me that learning cloud is not about doing everything at once. It is about curiosity, small experiments, and building habits that scale later. That is what excites me most about cloud engineering.</p><p><strong>What was your first IaC project?</strong><br>If you are a beginner, what is stopping you from trying Terraform today?<br>Let’s talk in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58d0a1dd0a14" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/goodbye-clickops-deploy-your-first-s3-bucket-with-terraform-in-aws-cloudshell-58d0a1dd0a14">Goodbye ClickOps: Deploy Your First S3 Bucket with Terraform in AWS CloudShell</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Your Cloud: Key AWS Security Services Explained Simply]]></title>
            <link>https://towardsaws.com/securing-your-cloud-key-aws-security-services-explained-simply-ac37a291ba55?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac37a291ba55</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-artifact]]></category>
            <category><![CDATA[aws-security]]></category>
            <category><![CDATA[aws-kms]]></category>
            <category><![CDATA[aws-shield]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 09:52:17 GMT</pubDate>
            <atom:updated>2025-12-24T02:56:31.982Z</atom:updated>
            <content:encoded><![CDATA[<p>When I first started learning AWS, security felt scary. There were so many services and so many new words. Firewalls, encryption, compliance, audits. It honestly felt overwhelming. But once I understood one simple idea, everything started to make sense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pCwsbc8TArFVWw5qscxTNA.png" /></figure><p>AWS security is built in layers.</p><p>Just like a real building, you do not rely on one lock. You have a wall outside, guards at the gate, cameras inside, a safe for valuables, and documents to prove everything is secure. AWS follows the same approach.</p><p>In this post, I will explain the key AWS security services using that layered mindset.</p><h3>1. Edge Protection (The Perimeter)</h3><p>This is the first line of defense. The goal here is to stop attacks before they even reach your servers.</p><h4>AWS Shield</h4><p>AWS Shield protects your applications from DDoS attacks. These attacks try to overwhelm your system with massive traffic so it becomes unavailable.</p><p>There are two types:</p><ul><li><strong>Shield Standard</strong> is free and enabled by default for everyone.</li><li><strong>Shield Advanced</strong> provides extra protection for large-scale attacks and is used by big organizations.</li></ul><p>Think of AWS Shield as a strong wall around your city. Most attacks never get past it.</p><h4>AWS WAF (Web Application Firewall)</h4><p>AWS WAF protects your web applications from common attacks like SQL injection and Cross-Site Scripting.</p><p>You control traffic using rules. For example, you can block specific IP addresses or stop suspicious request patterns.</p><p>I like to think of WAF as a security guard at the gate who checks every visitor before letting them in.</p><h3>2. Intelligent Threat Detection (The Watchman)</h3><p>Even with strong perimeter security, you still need to watch what is happening inside.</p><h4>Amazon GuardDuty</h4><p>GuardDuty continuously monitors your AWS account and workloads. It uses machine learning to detect unusual behavior.</p><p>This could be things like:</p><ul><li>An EC2 instance talking to a known malicious IP</li><li>Strange login attempts</li><li>Unexpected API calls</li></ul><p>GuardDuty does not block traffic. It alerts you. It is like a security camera that records everything and warns you when something looks wrong.</p><h3>3. Data Protection (The Vault)</h3><p>This layer focuses on protecting the actual data stored in your cloud.</p><h4>AWS KMS (Key Management Service)</h4><p>KMS helps you create and manage encryption keys. These keys are used to encrypt data at rest and in transit.</p><p>The best part is that KMS integrates with many AWS services like S3, RDS, and EBS. You do not have to build encryption yourself.</p><p>KMS is like a safe that stores your valuables. Even if someone gets access to the room, they still cannot open the safe without the key.</p><h3>4. Compliance and Auditing (The Paperwork)</h3><p>Security is not only about protection. It is also about proof.</p><h4>AWS Artifact</h4><p>AWS Artifact is where you download official compliance documents. These include ISO certifications, SOC reports, and HIPAA agreements.</p><p>This is especially important for businesses that need to prove compliance to customers or auditors.</p><p>I think of AWS Artifact as certificates on the wall. They show that AWS meets global security standards.</p><h3>Quick Comparison Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dv1HusbKP1OSB_qUWdJm5Q.png" /></figure><h3>Conclusion</h3><p>AWS security is not one service. It is a layered system working together. Edge protection stops attacks early. Threat detection watches for suspicious activity. Encryption protects your data. Compliance tools help you prove everything is secure.</p><p>When I stopped trying to memorize services and instead focused on the security layers, AWS security became much easier to understand.</p><p>If you are preparing for the Cloud Practitioner exam, this layered view will help you answer many security questions with confidence.</p><p>Which AWS security service confused you the most when you first saw it? Share it below and I might cover it in the next post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac37a291ba55" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/securing-your-cloud-key-aws-security-services-explained-simply-ac37a291ba55">Securing Your Cloud: Key AWS Security Services Explained Simply</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Guessing, Start Architecting: A Guide to the AWS Well-Architected Framework]]></title>
            <link>https://towardsaws.com/stop-guessing-start-architecting-a-guide-to-the-aws-well-architected-framework-227b8359c26a?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/227b8359c26a</guid>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[wellarchitectedframework]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Wed, 17 Dec 2025 15:58:41 GMT</pubDate>
            <atom:updated>2025-12-18T04:59:35.523Z</atom:updated>
            <content:encoded><![CDATA[<p>Every cloud problem usually starts the same way. A system goes down during peak traffic. The monthly AWS bill suddenly doubles. A small configuration mistake turns into a security incident. Most of the time, these problems are not caused by bad tools. They are caused by weak architecture decisions made early on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lj4WqISVNxbs7PzUzMd9Q.png" /></figure><p>This is exactly why AWS created the Well-Architected Framework. It exists to help you design cloud systems that are reliable, secure, efficient, and ready to grow with your business.</p><h3>What Is the AWS Well-Architected Framework</h3><p>The AWS Well-Architected Framework is a set of best practices developed by AWS based on years of real-world experience running cloud workloads at massive scale. It helps architects, developers, and cloud beginners evaluate whether their systems are built the right way.</p><p>This framework is not a checklist that you complete once and forget. It is a mindset. It gives you a structured way to think about design decisions so your system stays healthy over time.</p><p>At its core, the framework answers one simple question.</p><p>Is your architecture built to survive failure, scale efficiently, stay secure, and avoid wasting money?</p><h3>The 6 Pillars of the Well-Architected Framework</h3><p>The framework is divided into six pillars. Each pillar focuses on a specific area of cloud excellence.</p><h4>1. Operational Excellence</h4><p><strong>Focus:</strong> Running, monitoring, and improving systems over time.</p><p>Operational Excellence is about how well you understand and operate your workload. This includes monitoring, automation, and learning from failures.</p><p><strong>Key concept:</strong> Perform operations as code and continuously improve.</p><p>Instead of fixing problems manually, you automate operational tasks. When something breaks, you treat it as a learning opportunity, not a failure.</p><h4>2. Security</h4><p><strong>Focus:</strong> Protecting data, systems, and assets.</p><p>Security is built into every layer of your architecture. It starts with identity management and continues with logging, encryption, and monitoring.</p><p><strong>Key concept:</strong> Strong identity foundation and full traceability.</p><p>You should always know who did what and when. Services like IAM, CloudTrail, and CloudWatch help you enforce access control and track activity.</p><h4>3. Reliability</h4><p><strong>Focus:</strong> Making sure your system works consistently and recovers from failure.</p><p>Failures are unavoidable in the cloud. Reliability is about designing systems that expect failure and recover automatically.</p><p><strong>Key concept:</strong> Distributed design and automatic recovery.</p><p>This means using multiple Availability Zones, health checks, and auto scaling so your application keeps running even if one component fails.</p><h4>4. Performance Efficiency</h4><p><strong>Focus:</strong> Using resources efficiently to meet system requirements.</p><p>Performance Efficiency ensures you are not over-provisioning or under-provisioning resources.</p><p><strong>Key concept:</strong> Choose the right resource type and architecture.</p><p>Instead of guessing instance sizes, you measure performance and adjust. Serverless and managed services often improve performance while reducing complexity.</p><h4>5. Cost Optimization</h4><p><strong>Focus:</strong> Avoiding unnecessary spending.</p><p>Cost Optimization is not about being cheap. It is about being smart with your resources.</p><p><strong>Key concept:</strong> Pay only for what you use.</p><p>You remove unused resources, use the right pricing models, and monitor costs continuously. Services like AWS Budgets and Cost Explorer play a key role here.</p><h4>6. Sustainability</h4><p><strong>Focus:</strong> Reducing environmental impact.</p><p>Sustainability is the newest pillar and focuses on minimizing energy consumption and carbon footprint.</p><p><strong>Key concept:</strong> Efficient resource utilization supports sustainability.</p><p>When you right-size resources and use managed services, you reduce waste. AWS handles infrastructure efficiency while you design workloads responsibly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJ_bGSBi_0Qod5rsE40gng.png" /><figcaption>AWS Well Architected Framework</figcaption></figure><h3>The AWS Well-Architected Tool</h3><p>AWS provides a free tool inside the AWS Management Console called the Well-Architected Tool.</p><p>This tool guides you through a series of questions for each pillar. Based on your answers, it identifies high-risk issues and provides clear recommendations to improve your architecture.</p><p>It does not change anything automatically. It gives you visibility and an action plan so you can improve safely.</p><h3>Best Practices for Using the Framework</h3><p><strong>Start small</strong><br>You do not need to fix everything at once. Focus on one pillar that matters most to your workload.</p><p><strong>Review regularly</strong><br>Architecture evolves as applications grow. A design that worked last year may not work today.</p><p><strong>Encourage honesty</strong><br>Well-Architected Reviews work best in a no-blame culture. The goal is improvement, not fault-finding.</p><h3>Final Takeaway</h3><p>The AWS Well-Architected Framework helps you build systems that are predictable, secure, and cost-efficient. It gives you a structured way to think about cloud design instead of relying on guesswork.</p><p>If you understand these six pillars, you are not just preparing for an AWS exam. You are learning how real cloud systems are built and maintained.</p><p>Which pillar do you think is your biggest weakness right now? Or have you ever run a Well-Architected Review before? Share your thoughts below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=227b8359c26a" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/stop-guessing-start-architecting-a-guide-to-the-aws-well-architected-framework-227b8359c26a">Stop Guessing, Start Architecting: A Guide to the AWS Well-Architected Framework</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Computing Explained Simply: The Absolute Basics, Benefits, and the Three Service Models]]></title>
            <link>https://towardsaws.com/cloud-computing-explained-simply-the-absolute-basics-benefits-and-the-three-service-models-a4f2d3d3a84c?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4f2d3d3a84c</guid>
            <category><![CDATA[iaas]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[paas]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Sun, 14 Dec 2025 03:12:16 GMT</pubDate>
            <atom:updated>2025-12-19T06:35:43.386Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are starting your AWS journey, one phrase keeps appearing everywhere: Cloud Computing. It sounds technical, but once you break it down, the idea is surprisingly simple. Cloud Computing is just a way to use computing power without owning any physical hardware. Instead of buying servers, storage, and networking equipment, you rent them over the internet whenever you need them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xrvhPc25Q1W2Nnoo1GRe_w.png" /></figure><p>This post will walk you through what Cloud Computing really means, why companies are moving toward it, and the three service models that form the foundation of all cloud services.</p><h3>1. What Exactly Is Cloud Computing</h3><p>Cloud Computing means accessing computing resources such as servers, databases, storage, and networking through the internet. These resources are provided on demand, which means you can instantly start using them and stop anytime. The key idea is the shift from ownership to usage. You do not buy machines. You borrow them from cloud providers like AWS.</p><p>A simple analogy is electricity. You do not own a power plant. You only pay for the electricity you use. Cloud Computing works the same way. Instead of running your own data center, you pay for the exact amount of computing you consume.</p><h3>2. The Core Benefits of Cloud Computing</h3><h4>A. Scalability</h4><p>Cloud resources grow or shrink based on your demand. If your website suddenly gets thousands of visitors, the cloud can add more servers in seconds. If traffic drops, those resources can be released.</p><h4>B. Cost Savings</h4><p>You avoid the traditional model of buying expensive hardware upfront. With pay-as-you-go pricing, you only pay for what you use.</p><h4>C. Reliability</h4><p>Cloud providers like AWS offer multiple layers of redundancy across many data centers. Even if one data center has an issue, your application can keep running.</p><h4>D. Global Reach</h4><p>You can deploy your application anywhere in the world within minutes. This reduces latency for global users.</p><h4>E. Security</h4><p>A cloud provider invests millions into security features, monitoring, and infrastructure protection. They handle the heavy lifting while you configure access control.</p><h3>3. The Three Cloud Service Models</h3><p>All cloud services fall under one of these three models. Think of them as different levels of control and responsibility.</p><h4>1. Infrastructure as a Service (IaaS)</h4><p>This is the most flexible model. You rent virtual machines, storage, and networks. You manage the operating system and the software installed inside it.</p><p>Example services: Amazon EC2, Amazon VPC, Amazon EBS</p><p>Analogy: You rent an empty apartment. You choose the furniture, paint the walls, and decide how to use the space.</p><h4>2. Platform as a Service (PaaS)</h4><p>You focus on your application. The cloud provider manages the operating system, patching, scaling, and infrastructure.</p><p>Example services: AWS Elastic Beanstalk, AWS Lambda</p><p>Analogy: You rent a fully furnished apartment. You move in and start living. No need to worry about maintenance.</p><h4>3. Software as a Service (SaaS)</h4><p>You use a complete, ready to use application that runs entirely on the cloud.</p><p>Example services: Gmail, Zoom, Slack</p><p>Analogy: You book a hotel room. Everything is already set up, and you simply use it.</p><h3>4. Why Cloud Matters for Beginners and Developers</h3><p>Cloud Computing changes how people build and deploy applications. Developers no longer need to wait for hardware to be purchased. They can instantly create servers, databases, or storage. Businesses can launch applications globally without huge investments.</p><p>For beginners studying for the AWS Cloud Practitioner exam, understanding these basics is essential. These service models form the backbone of almost every AWS question.</p><h3>Final Takeaway</h3><p>Cloud Computing is simple once you understand the core idea. Instead of buying and maintaining hardware, you access computing through the internet as you need it. The three service models (IaaS, PaaS, SaaS) determine how much control you want and how much responsibility the cloud provider takes from you.</p><p>If you understand these building blocks, every AWS concept that comes later becomes easier to understand.</p><p>What part of cloud computing is still confusing for you? Ask below and I might turn it into the next post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4f2d3d3a84c" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/cloud-computing-explained-simply-the-absolute-basics-benefits-and-the-three-service-models-a4f2d3d3a84c">Cloud Computing Explained Simply: The Absolute Basics, Benefits, and the Three Service Models</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Global Infrastructure Explained: Regions, Availability Zones, and Edge Locations]]></title>
            <link>https://towardsaws.com/aws-global-infrastructure-explained-regions-availability-zones-and-edge-locations-29902f8e76de?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/29902f8e76de</guid>
            <category><![CDATA[high-availability]]></category>
            <category><![CDATA[availability-zone]]></category>
            <category><![CDATA[aws-region]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-edge-location]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 12:22:14 GMT</pubDate>
            <atom:updated>2025-12-15T03:49:09.392Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding how AWS is structured across the world is one of the most important parts of cloud architecture. Everything you build in AWS lives inside this global network, so knowing the purpose of Regions, Availability Zones, and Edge Locations helps you design applications that are fast, reliable, and disaster resistant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q6h4ZBiVQPocfwsXzEoTfA.png" /></figure><p>This guide explains each component in a simple way and shows why they are essential for cloud computing.</p><h3>1. AWS Regions</h3><p>A Region is a physical location in the world where AWS places clusters of data centers. Each Region is completely independent so customers can choose where their data and applications live.</p><h4>Why Regions Matter</h4><ul><li><strong>Isolation and fault tolerance</strong><br>Every Region is isolated from every other Region. If a failure happens in one Region, it will not affect another. This separation is important for disaster recovery.</li><li><strong>Compliance and latency</strong><br>Some countries have strict rules about where data must be stored. AWS Regions help meet these laws. You can also choose the Region closest to your customers so applications load faster.</li><li><strong>Naming convention</strong><br>AWS uses simple names for Regions. For example, us east 1 represents North Virginia and ap southeast 2 represents Sydney.</li></ul><h3>2. Availability Zones (AZs)</h3><p>Availability Zones are the building blocks of high availability. An AZ is made up of one or more data centers inside a Region.</p><h4>Why AZs Matter</h4><ul><li><strong>Isolation inside a Region</strong><br>AZs are physically separated by many kilometers so a natural disaster or power failure in one AZ does not impact another. At the same time, they are close enough to communicate with very low latency.</li><li><strong>High availability and fault tolerance</strong><br>Each AZ has separate power, cooling, and network systems. If one AZ goes offline, workloads running in other AZs keep working without interruption.</li><li><strong>Best practice</strong><br>Always deploy applications across at least two AZs. This is one of the most important AWS architecture principles.</li></ul><h3>3. Edge Locations</h3><p>Edge Locations are different from Regions and AZs. These are global sites used to deliver content to users as quickly as possible.</p><h4>Why Edge Locations Matter</h4><ul><li><strong>Used by CloudFront</strong><br>CloudFront stores cached copies of your content in Edge Locations. When a user requests that content, it is delivered from the nearest location. This reduces the distance data needs to travel and improves performance.</li><li><strong>Faster content delivery</strong><br>Since users receive content from the closest Edge Location, websites, images, and videos load much faster.</li><li><strong>Global scale</strong><br>AWS has hundreds of Edge Locations around the world, giving customers a truly global content delivery network.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47roVV0HHyhHSIer8N8dlQ.png" /></figure><h3>Key Takeaway</h3><p>The structure of AWS Global Infrastructure helps achieve three major cloud benefits:</p><ul><li><strong>High availability</strong><br>Achieved by deploying resources across multiple AZs in the same Region.</li><li><strong>Disaster recovery</strong><br>Achieved by replicating data and systems across different Regions.</li><li><strong>Low latency content delivery</strong><br>Achieved by caching content at Edge Locations through CloudFront.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29902f8e76de" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/aws-global-infrastructure-explained-regions-availability-zones-and-edge-locations-29902f8e76de">AWS Global Infrastructure Explained: Regions, Availability Zones, and Edge Locations</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hosting a Static S3 Site in AWS]]></title>
            <link>https://towardsaws.com/hosting-a-static-s3-site-in-aws-026eb3de8a59?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/026eb3de8a59</guid>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[static-site]]></category>
            <category><![CDATA[aws-s3-bucket-policy]]></category>
            <category><![CDATA[cloud-hosting]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 12:02:13 GMT</pubDate>
            <atom:updated>2025-12-12T09:49:57.361Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is S3?</h3><p>Amazon S3 is a cloud storage service from AWS that lets you store almost any type of file, such as photos, videos, backups or static website files. It organizes data as objects, each with its own content, name and metadata. S3 is built to be extremely reliable because it stores data across multiple Availability Zones. It is widely used in cloud applications and data lakes because it is scalable, durable and cost friendly, and it works smoothly with many other AWS services.</p><p>An S3 bucket is like a main folder where your files are stored in S3. Every file you upload must be placed inside a bucket, and each bucket name must be unique across all AWS accounts. Buckets let you organize and manage your data by choosing storage classes, setting permissions, creating policies and configuring features such as versioning or static website hosting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqEfCg9M0YouMWq76nLirw.png" /></figure><p>Now, let’s move along with creating our very first S3 bucket and hosting a static website.</p><h3>How to Host a Static Website in S3?</h3><p>For this tutorial I assume you already have a AWS Console account, if not i highly suggest you to ask your institution for an AWS Academy account or buying the AWS Console packages.</p><p>For this tutorial I am using the AWS Academy’s Learners Lab course that has been provided to us by our institution.</p><h4>Step 1: Create the S3 Bucket and Upload Files</h4><p>The S3 bucket will serve as the storage container for all your website’s files (HTML, CSS, images).</p><ol><li><strong>Create a Bucket:</strong> Navigate to the S3 console and click <strong>“Create bucket.”</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZpTSklCvpbTKFmBSEyfbLA.png" /><figcaption>Search “S3” in the Search Bar</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3L_7Yc6XxvYEJc4m9hAANA.png" /><figcaption>Click “Create Bucket”</figcaption></figure><ul><li><strong>Bucket Name:</strong> Choose a globally unique name (e.g., my-first-cloud-site-xyz123).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3dNSIxl5dKZSX3toQo1Dg.png" /><figcaption>Write an unique name for your bucket</figcaption></figure><ul><li><strong>Region:</strong> Select an AWS Region closest to you or your target audience.<br>- In my case I have used the default region because I am using Learners Lab for this tutorial.</li></ul><p><strong>2. Disable Block Public Access:</strong> Under the “Block Public Access settings for this bucket” section, you must <strong>uncheck</strong> the box that says <strong>“Block all public access.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HswTxja-9gtCLTos268pnA.png" /><figcaption>Un-Check “Block all public access” &amp; Check “I acknowledge ..”</figcaption></figure><ul><li><strong>Acknowledge:</strong> Check the acknowledgment box to confirm you understand that public access is required for a website.</li></ul><p><strong>3. </strong>Now click<strong> “Create Bucket”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJXtWtXuQFiIGppmHn_23Q.png" /><figcaption>Click “Create Bucket”</figcaption></figure><p>Ensure you only made changes to the settings that has been guided, leave all other settings to their default.</p><p><strong>4. </strong>Choose your<strong> Bucket</strong></p><p>After creating the bucket you will see all of the buckets you have created. Click into the bucket you just created. In my case it is “aws-shishir-tutorial-bucket”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*roUPi15wcw3JC77J6Dc7Uw.png" /><figcaption>Choose your recently created Bucket</figcaption></figure><p><strong>5. Upload Content:</strong> Click on your new bucket, then click <strong>“Upload.”</strong> Add all your static website files (e.g., index.html, error.html, CSS, images).</p><p>After selecting the bucket you just created, you will see an option for uploading the “Objects”. Donot worry this is just another name for the files of your website.</p><p>Click “Upload” and select the files for your static website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EkAzDwepfI1DftywUlHkhA.png" /></figure><ul><li>Select your files at the beginning.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cp9zJsyHKsWRG3ePQgkYsg.png" /><figcaption>Select the files for your website</figcaption></figure><ul><li>Now select folders if you have any.</li><li>Then click upload at the bottom.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZmaC8l86K8dHGXQMz3wbmw.png" /></figure><ul><li>After your upload is successful, you will see this pop up.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZIovbtZnxnRx8yy6J5oPg.png" /></figure><h4>Step 2: Enable Static Website Hosting</h4><p>This tells S3 to serve the content using a web server protocol, rather than just treating the bucket as file storage.</p><ol><li><strong>Go to Properties:</strong> Select the <strong>Properties</strong> tab of your S3 bucket.</li></ol><p><strong>2. Enable Hosting:</strong> Scroll down to the <strong>“Static website hosting”</strong> section and click <strong>“Edit.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxPe43rmLJtK7kTUIUY4fg.png" /><figcaption>Enable this Static Web Hosting</figcaption></figure><ul><li>Select <strong>“Enable”</strong> for Static website hosting.</li><li>For the <strong>Index document</strong>, enter your main HTML file (e.g., index.html).</li><li>For the <strong>Error document</strong> (optional but recommended), enter your custom error page (e.g., error.html).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8i6aC5ejYaeYNsrGncwRQ.png" /><figcaption>Enable static web hosting and name your main file</figcaption></figure><p><strong>3. Save Changes:</strong> Click <strong>“Save changes.”</strong></p><p><strong>4. Note the Endpoint:</strong> After saving, the “Static website hosting” section will now display a <strong>Bucket website endpoint URL</strong>. This is the public URL you will use to access your website (it will look like: http://&lt;bucket-name&gt;.s3-website-&lt;region&gt;.amazonaws.com/).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pElBlI8Dh8LWEcz9aVkWmw.png" /><figcaption>At the bottom I can find my endpoint</figcaption></figure><h4>Step 3: Configure the Bucket Policy for Public Access</h4><p>Even after disabling the “Block Public Access” setting, you must explicitly grant <strong>public read permission</strong> via a Bucket Policy.</p><ol><li><strong>Go to Permissions:</strong> Select the <strong>Permissions</strong> tab of your S3 bucket.</li><li><strong>Edit Bucket Policy:</strong> Scroll down to the <strong>Bucket policy</strong> section and click <strong>“Edit.”</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ml439Z_sJpjp-OGJ73D1lQ.png" /></figure><p><strong>3. Paste the Policy:</strong> Paste the following JSON policy, making sure to <strong>replace </strong><strong>YOUR-BUCKET-NAME</strong> with the exact name of your S3 bucket.</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;PublicReadGetObject&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:s3:::YOUR-BUCKET-NAME/*&quot;<br>    }<br>  ]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZ9MPm5ahMr--D6Qx3vPtA.png" /><figcaption>Change “YOUR-BUCKET-NAME” to your bucket name</figcaption></figure><ul><li>This policy grants the anonymous user (&quot;Principal&quot;: &quot;*&quot;) permission to perform the s3:GetObject action (read/download files) on all objects (/*) within your specified bucket.</li></ul><p><strong>4. Save Changes:</strong> Click <strong>“Save changes.”</strong> The bucket access should now show <strong>“Objects can be public.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6MwCAbl30e8TRE6xPI4jew.png" /><figcaption>After saving the changes your policy should look like this</figcaption></figure><h4>Step 4: Test Your Website</h4><ol><li><strong>Access the URL:</strong> Copy the <strong>Bucket website endpoint URL</strong> from <strong>Step 2</strong> and paste it into your web browser.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7BovLqiqtCyjMUxcqm0HIA.png" /><figcaption>Our website loaded into the public web from Amazon S3</figcaption></figure><ul><li>With the endpoint from the <strong>Step 2</strong> pasted into the browser, our static website should now load easily.</li></ul><ol><li><strong>Verify:</strong> Your index.html file should load correctly, and your static website is now live!</li></ol><p>This setup demonstrates your understanding of <strong>S3 as Object Storage</strong>, <strong>Public Access Management</strong>, and <strong>Bucket Policies </strong>for you to practice.</p><p>What do you want me to create next?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=026eb3de8a59" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/hosting-a-static-s3-site-in-aws-026eb3de8a59">Hosting a Static S3 Site in AWS</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CloudWatch vs CloudTrail: Your Guide to Tracking AWS Performance and Activity]]></title>
            <link>https://aws.plainenglish.io/cloudwatch-vs-cloudtrail-your-guide-to-tracking-aws-performance-and-activity-ab50412ec4e4?source=rss-dc37bdb6bd6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab50412ec4e4</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-cloudtrail]]></category>
            <category><![CDATA[aws-cloudwatch]]></category>
            <dc:creator><![CDATA[Shishir Subedi]]></dc:creator>
            <pubDate>Sun, 07 Dec 2025 17:12:12 GMT</pubDate>
            <atom:updated>2025-12-18T06:55:46.964Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are just getting started with AWS, two services often feel more confusing than they should. Their names look almost identical, they both deal with monitoring, and both sound important. Yet they do completely different jobs. Many beginners struggle to understand which one tracks performance and which one tracks user activities.</p><p>To make it simple, imagine two tools you use in daily life.<br><strong>CloudWatch</strong> is like the dashboard of your car. It shows your fuel level, engine temperature, and speed. It tells you how your car is performing right now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUR0mcfAzn_-RrPI0Onltw.png" /></figure><p><strong>CloudTrail</strong> is like a security camera or a black box. It keeps a record of everything that happened, who unlocked the door, and who made changes.</p><p>In this post, we will clearly separate these two services so you know what they monitor, when to use them, and how they help you maintain performance and compliance in AWS.</p><h3>CloudWatch (The Performance Monitor)</h3><h4>A. What is CloudWatch</h4><p>CloudWatch is a monitoring and observability service that gives you real time insight into how your AWS resources and applications are performing. It helps you track system health and optimize your resource usage.<br>Its key focus is simple. It answers the question: <strong>How is my system doing right now?</strong></p><h4>Core Components</h4><p><strong>Metrics</strong><br>These are the raw performance numbers. CPU usage, memory, disk I O, and network activity are common examples.</p><p><strong>Alarms</strong><br>These create notifications when a metric crosses a threshold. For example, if the CPU stays above 80 percent for five minutes, CloudWatch can send an SNS alert. Many companies use this for high availability.</p><p><strong>Logs</strong><br>CloudWatch collects and stores logs from EC2, Lambda, and many other AWS services. You can search, filter, and troubleshoot issues from here.</p><h3>B. CloudWatch Use Cases</h3><ul><li>Automatically scaling EC2 instances when CPU usage increases.</li><li>Troubleshooting performance issues when an application slows down.</li><li>Setting billing alarms to avoid unexpected AWS charges.</li></ul><h3>CloudTrail (The Auditor and Security Camera)</h3><h4>A. What is CloudTrail</h4><p>CloudTrail records all API calls and events made by users, IAM roles, or AWS services. It stores these records in an S3 bucket so administrators can review them for auditing and compliance.</p><p>Its key focus is simple. It answers the question: <strong>Who did what, and when did it happen?</strong></p><h4>Core Components</h4><p><strong>Events</strong><br>These logs capture every action. They show who performed the action, what resource was affected, and the exact time.</p><p><strong>Trails</strong><br>These settings tell CloudTrail which events to record and where to store them, usually in S3.</p><p><strong>Insights</strong><br>CloudTrail Insights analyzes unusual activity automatically. It helps detect abnormal API behavior.</p><h4>B. CloudTrail Use Cases</h4><ul><li>Investigating suspicious activity such as someone deleting an S3 bucket.</li><li>Meeting compliance requirements where a full activity history is mandatory.</li><li>Tracking configuration changes like updated security group rules.</li></ul><h3>CloudWatch vs CloudTrail: A Direct Comparison</h3><p>Here is a simple table that separates their roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o1YdlzNoScdvu9GvuvLLjw.png" /><figcaption>Comparison Table for CloudWatch and CloudTrail</figcaption></figure><h3>Conclusion and Final Takeaway</h3><p>CloudWatch and CloudTrail work together, not against each other. CloudWatch shows you what your system is doing and when a problem starts. CloudTrail helps you understand who might have caused that problem by analyzing every action in your AWS account.</p><p>If you manage an AWS environment, you should always enable CloudTrail in all regions for complete auditing. You should also set up at least one billing alarm in CloudWatch to avoid unnecessary expenses.</p><p>If you have ever used CloudTrail to investigate an issue, feel free to share your experience. Your story could help someone learning AWS today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab50412ec4e4" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/cloudwatch-vs-cloudtrail-your-guide-to-tracking-aws-performance-and-activity-ab50412ec4e4">CloudWatch vs CloudTrail: Your Guide to Tracking AWS Performance and Activity</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>