<?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 Anish Ummenthala on Medium]]></title>
        <description><![CDATA[Stories by Anish Ummenthala on Medium]]></description>
        <link>https://medium.com/@ummenthala.anish?source=rss-e3fb030936d8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KSnetsBSYclFFUHuqtjhfw.png</url>
            <title>Stories by Anish Ummenthala on Medium</title>
            <link>https://medium.com/@ummenthala.anish?source=rss-e3fb030936d8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:09:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ummenthala.anish/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[When “Same Value” Isn’t Equal: A Java Equality Trap I Hit on LeetCode]]></title>
            <link>https://medium.com/@ummenthala.anish/when-same-value-isnt-equal-a-java-equality-trap-i-hit-on-leetcode-216d5634a1bb?source=rss-e3fb030936d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/216d5634a1bb</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Anish Ummenthala]]></dc:creator>
            <pubDate>Thu, 08 Jan 2026 23:35:45 GMT</pubDate>
            <atom:updated>2026-01-08T23:35:45.367Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrAkc1012Gq5xERkQ58AnQ.png" /></figure><p>While solving <strong>LeetCode 872 (Leaf-Similar Trees)</strong>, I ran into one of those bugs that makes you stare at your screen and whisper:</p><blockquote>“But… they’re the same.”</blockquote><p>I was collecting leaf values from two binary trees and comparing them to each other. Both lists printed as:</p><pre>[200, 1]<br>[200, 1]</pre><p>Same size. Same values. Same order. And yet… my solution returned <strong>false</strong>.</p><h3>The Code That Looked Perfect (But Wasn’t)</h3><pre>for (int i = 0; i &lt; leaves1.size(); i++) {<br>  if (leaves1.get(i) != leaves2.get(i))<br>    return false;<br>}</pre><p>At first glance, this feels completely reasonable. Compare element by element. If anything differs, return false.</p><p>And here’s the kicker:</p><ul><li>It worked for most test cases.</li><li>It failed only for specific values, such as <strong>200</strong>.</li></ul><p>That inconsistency was the clue.</p><h3>The Real Problem: != Doesn’t Mean What You Think</h3><p>In Java, != (and 1 ==) behave very differently depending on what you’re comparing.</p><ul><li>For <strong>primitives</strong> (int, char, boolean) → compares <strong>values</strong></li><li>For <strong>objects</strong> ( Integer, String, custom classes) → compares <strong>references</strong></li></ul><p>And List&lt;Integer&gt; stores <strong>objects</strong>, not primitives.</p><p>So the line</p><pre>leaves1.get(i) != leaves2.get(i)</pre><p>is not asking:</p><blockquote>“Do these numbers have the same value?”</blockquote><p>It’s asking:</p><blockquote>“Are these two objects the exact same object in memory?”</blockquote><h3>Why Did It Work Sometimes?</h3><p>This is where Java gets sneaky.</p><p>Java <strong>caches</strong> Integer objects for a small range (typically <strong>-128</strong> to <strong>127</strong>).<br>So values inside that range may actually point to the same object.</p><p>That means:</p><pre>Integer a = 1;<br>Integer b = 1;<br>a == b   // true (cached)</pre><p>But for values outside the cache:</p><pre><br>Integer a = 200;<br>Integer b = 200;<br>a == b   // false (different objects)</pre><p>Same value. Different references.</p><p>That’s exactly why [1, 2] passed… but [200, 1] failed.</p><p>This is what I like to <strong>call accidental correctness: </strong>your code works, but only by coincidence.</p><h3>The Fix (And the Rule)</h3><p>The correct comparison is:</p><pre>if (!leaves1.get(i).equals(leaves2.get(i)))<br>  return false;</pre><h4>Golden Rule</h4><ul><li>Use == / != → <strong>primitives &amp; enums</strong></li><li>Use .equals() → <strong>objects</strong></li><li>Use Objects.equals(a, b) → <strong>null-safe object comparison</strong></li></ul><h3>The Bigger Lesson (Not Just an Integer)</h3><p>This trap shows up everywhere:</p><p><strong>Strings</strong></p><pre>&quot;hello&quot; == &quot;hello&quot;               // true (interned)<br>new String(&quot;hello&quot;) == &quot;hello&quot;   // false</pre><p><strong>Arrays</strong></p><pre>int[] a = {1,2};<br>int[] b = {1,2};<br>a == b                // false<br>Arrays.equals(a, b)   // true</pre><p><strong>Custom Objects</strong></p><p>If you don’t override equals() and hashCode(), collections like HashSet and HashMap will betray you.</p><p><strong>Collections</strong></p><ul><li>List.equals() → checks values</li><li>Set.equals() → checks values</li><li>Map.equals() → checks keys and values</li></ul><p>But only if the elements themselves implement equality correctly.</p><p>One 200 turned a “<strong>working</strong>” solution into a great reminder:<br><strong>Java doesn’t care what looks equal, only what is.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=216d5634a1bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Amazon Inspector Reports with AWS Lambda, S3, and SES]]></title>
            <link>https://aws.plainenglish.io/automating-amazon-inspector-reports-with-aws-lambda-s3-and-ses-c817650c13d1?source=rss-e3fb030936d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c817650c13d1</guid>
            <category><![CDATA[aws-step-functions]]></category>
            <category><![CDATA[amazon-inspector]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[aws-simple-email-service]]></category>
            <dc:creator><![CDATA[Anish Ummenthala]]></dc:creator>
            <pubDate>Wed, 12 Nov 2025 00:47:57 GMT</pubDate>
            <atom:updated>2025-11-12T04:38:03.292Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>Automating Amazon Inspector Reports with AWS StepFunction, Lambda, S3, and SES</h3><figure><img alt="Automating Amazon Inspector Reports with AWS Lambda, S3, and SES" src="https://cdn-images-1.medium.com/max/1024/1*OIrzboFUeg4VzWRGGRFHdQ.png" /></figure><blockquote>Security is not a one-time setup, it’s a continuous process. Automating vulnerability reporting ensures your teams stay informed, compliant, and ahead of threats.</blockquote><p>If you are working on a security team like I do, you know the drill. <strong>Amazon Inspector</strong> keeps spitting out findings, and every month, someone has to jump in, grab the CSV, drop it into a cloud folder, and maybe send it over email to respective teams.</p><p>Sounds simple, right? Until you are doing it for <strong>multiple AWS accounts</strong>. It’s repetitive, boring, and honestly way too easy to miss.</p><p>That’s why I built an <strong>event-driven reporting workflow</strong> to take care of it automatically. No more clicking “Export Findings”. No more late-night report requests from auditors.</p><h4>TL;DR</h4><p>This blog post walks through a <strong>serverless reporting architecture</strong> that</p><ul><li>Runs on a monthly schedule with <strong>EventBridge</strong></li><li>Exports Inspector findings of each account to <strong>S3</strong> (that are KMS-encrypted)</li><li>Sends them out to teams via <strong>SES</strong> (as an attachment or link to download the file)</li><li>Works across <strong>multiple accounts</strong></li><li>It is fully <strong>configurable through environment variables</strong></li></ul><p>No more manual downloads. No more “Oops, we forgot last month’s report.”</p><h4>What is the Problem?</h4><p>Let&#39;s be honest, Amazon Inspector does a solid job of scanning workloads. But here’s what it doesn’t do:</p><ul><li>It doesn’t schedule monthly or quarterly reports.</li><li>It doesn’t send emails to the compliance team.</li><li>And it certainly doesn’t know which stakeholders in your org want those CSVs.</li></ul><p>Sure, you can go into the <strong>Inspector console → Export findings</strong> screen. From there, you select the filters, provide S3 URI &amp; KMS Key, and then hit export. Then the Inspector writes the report to S3.</p><p>That works…. but only if someone remembers to do it. And if you need reports monthly across multiple accounts? That becomes <strong>painful and error-prone</strong>.</p><p>This approach makes your team look reactive instead of proactive. We want a <strong>hands-off system</strong> that just runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LNgNz-Hv1i9FRqUvVekiUg.png" /><figcaption>Amazon Inspector console’s <strong>Export Findings</strong> screen</figcaption></figure><h4><strong>What is Amazon Inspector?</strong></h4><p>For some context, Amazon Inspector2 is an AWS-managed vulnerability management service that continuously scans AWS workloads for security risks. It supports:</p><ul><li>Continuously scans <strong>EC2 instances</strong> for OS-level vulnerabilities</li><li>Checks <strong>ECR container images</strong> for known CVEs</li><li>Monitors <strong>Lambda functions</strong> for outdated or risky dependencies</li></ul><p>and the findings are categorized by severity: CRITICAL, HIGH, MEDIUM, LOW, and INFORMATIONAL.</p><p>But again, the findings are stuck in the console or API. Unless you automate, there’s no way to say:</p><blockquote>“Every month, grab CRITICAL/HIGH findings, export them to S3, and email the reports to my team.”</blockquote><h4>Building the Automation</h4><p>So how do we even fix this problem once and for all?</p><p>We use what AWS already gives us - “<strong>serverless building blocks</strong>” that can talk to each other natively.</p><p>Here’s the architecture I built:</p><ul><li><strong>Amazon EventBridge</strong> triggers the workflow on a schedule.</li><li><strong>AWS Step Functions</strong> orchestrates the workflow, it loops over all the accounts, making sure only one report runs at a time (Inspector API limitation).</li><li>A <strong>Lambda function</strong> kicks off the <strong>Inspector CreateFindingsReport API</strong>, which exports the findings to an S3 bucket object.</li><li>When the report lands in S3, another <strong>Lambda function</strong> (Notifier) wakes up the waiting Step Function.</li><li>Meanwhile, a separate <strong>Email Lambda</strong> picks up the same S3 event and uses Amazon SES to email the reports.</li></ul><p>Everything runs asynchronously, event-driven, and hands-off. Here’s what it looks like visually:</p><figure><img alt="aws inspector report automation architecture" src="https://cdn-images-1.medium.com/max/1024/1*XSJLSW7zuAq_CZEmJqRtmQ.gif" /><figcaption>AWS Inspector Report Automation Architecture</figcaption></figure><h4>How the Workflow Actually Works (Step by Step)</h4><p>Let’s try to break it down like a story:</p><p><strong>1. EventBridge starts the process</strong></p><p>On the first of every month, <strong>EventBridge</strong> fires an event that kicks off the <strong>Step Functions</strong> state machine. It passes the list of AWS account IDs and configuration details like region, bucket name, report severity filters, etc.</p><p><strong>2. Step Functions Maps Over Accounts</strong></p><p>The state machine runs a <strong>map state</strong> with a max concurrency of <strong>1</strong> (ensuring that we don’t try exporting multiple reports at once).</p><p>For each account:</p><ul><li>Step functions generate a <strong>task token</strong>, which is a unique callback handle.</li><li>It invokes the <strong>Create Report Lambda </strong>with the token and account details.</li></ul><p><strong>3. Create Report Lambda Starts the Export</strong></p><p>The Lambda does two things:</p><ul><li>Stores the task token in a <strong>DynamoDB table</strong> keyed as accountId#Month-Year.</li><li>Calls the <strong>Inspector2.CreateFindingsReport API</strong> with your S3 bucket and KMS key.</li></ul><p>Then it exits, the step function pauses waiting for that token to be returned later.</p><p><strong>4. Inspector Writes the Report to S3</strong></p><p>Amazon Inspector exports the CSV file to your specified S3 location, encrypted with the KMS key you specified.</p><p><strong>5. S3 Event Triggers the Notifier and Email Lambdas</strong></p><p>When the report lands in S3, an EventBridge rule for ObjectCreated fires.</p><ul><li><strong>Notifier Lambda:</strong><br>Looks up the matching task token in DynamoDB, calls SendTaskSuccess back to Step Functions, and deletes the token.</li><li><strong>Email Lambda:</strong><br>Uses SES to email the CSV to your team. If the file is small, it’s attached directly. If it’s big, the email includes a presigned URL that expires in 24 hours.</li></ul><p><strong>6. Step Functions Resumes and Moves to Next Account</strong></p><p>Once the callback succeeds, the Step Function resumes and automatically moves on to the next account sequentially.</p><h4>Why Step Functions Make This Elegant</h4><p>I could have just written a single Lambda function with a for loop that calls the <strong>Inspector CreateFindingsReport API</strong> for each account, waits, polls, and then moves on. That’s the most straightforward way, right?</p><p>Here’s the reality:</p><ul><li><strong>Inspector is single-flight.</strong><br>You can only have one report in progress per account. If you accidentally trigger two exports in parallel, you’ll get a ConflictException.</li><li><strong>Long-running loops are fragile.</strong><br>To wait for each report to land in S3, you’d need to either poll or keep the Lambda open for more than 15 minutes, which is expensive and prone to timeouts.</li><li><strong>Error handling gets messy.</strong><br>Once you start adding retries, backoff logic, and conditional branching, that innocent-looking loop turns into spaghetti.</li></ul><p>That’s where Step Functions shine.</p><ul><li>It runs reports sequentially with MaxConcurrency: 1.</li><li>It waits natively using the waitForTaskToken callback, no polling, no sleeping Lambdas.</li><li>It gives you built-in retries, error handling, and clear visibility into each account’s run.</li></ul><p>So, instead of a fragile “while loop” with timers and error counters, Step Functions provides a <strong>self-documenting</strong>, <strong>auditable</strong>, and <strong>failure-resilient</strong> workflow.</p><h4>What You Need to Set It Up</h4><p>Here’s the minimal set of resources:</p><ul><li>S3 Bucket for storing reports (with SSE-KMS enabled)</li><li>KMS Key allowing inspector2.amazonaws.com to use it</li><li>DynamoDB Table (pk + TTL) for storing task tokens</li><li>Three Lambda functions:<br>- create-inspector-report<br>- inspector-s3-notifier<br>- email-findings-report</li><li>Step Functions state machine using the waitForTaskToken callback pattern</li><li>EventBridge rules<br>- One for the monthly schedule<br>- One for S3 ObjectCreated events</li><li>SES identity verified and ready to send emails</li></ul><p>If you want to see the complete code, clone it, tweak it, or poke around, I’ve uploaded everything to Gist: <a href="https://bit.ly/3JELZI1">https://bit.ly/3JELZI1</a></p><h4>Wrapping Up</h4><p>The goal of this automation isn’t to replace formal security reviews; it’s to unblock them. This pattern can scale to dozens of AWS accounts, all with minimal ops overhead and zero manual clicks.</p><p>So the next time someone asks for “last quarter’s Inspector report,” you can just smile and say: “Already sent.”</p><p>One last thing, <strong><em>don’t forget to destroy</em> </strong>your AWS resources when you’re done testing.</p><blockquote><strong>“Always clean up unless your hobby is funding Jeff Bezos’ next rocket launch.”</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c817650c13d1" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/automating-amazon-inspector-reports-with-aws-lambda-s3-and-ses-c817650c13d1">Automating Amazon Inspector Reports with AWS Lambda, S3, and SES</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>
        <item>
            <title><![CDATA[IAM Role Mystery to Clarity: Auto-Summarize Every Role with Amazon Bedrock]]></title>
            <link>https://aws.plainenglish.io/iam-role-mystery-to-clarity-auto-summarize-every-role-with-amazon-bedrock-77179cc35648?source=rss-e3fb030936d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/77179cc35648</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-bedrock]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Anish Ummenthala]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 17:58:31 GMT</pubDate>
            <atom:updated>2025-10-15T17:59:45.327Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>From IAM Role Mystery to Clarity: Auto-Summarize Every Role with Amazon Bedrock</h3><figure><img alt="From IAM Role Mystery to Clarity: Auto-Summarize Every Role with Amazon Bedrock" src="https://cdn-images-1.medium.com/max/1024/0*bOJZdbN9mAfgTO2v" /></figure><blockquote>The scariest permissions are the ones nobody remembers granting. In AWS IAM, a role without a story becomes a security liability.</blockquote><p>I’ve lost count of how many times I’ve opened the IAM console, stared at a sea of roles like <strong><em>app-prod-worker</em></strong> and <strong><em>data-pipeline-something</em></strong>, and thought: <strong><em>“What on earth do these do?”</em></strong></p><p>This weekend, I finally scratched that itch. I built a scheduled Lambda that inventories every IAM role in the account, sends the policies to Claude 3 Sonnet on Amazon Bedrock for a concise human summary, then writes a clean CSV to S3. It’s all codified with Terraform, so you can spin it up, schedule it, and forget it.</p><p>If you’re tired of copy-pasting policy JSON into headspace, this one’s for you.</p><h3>TL;DR</h3><ul><li><strong><em>What</em></strong>: A scheduled <strong><em>AWS Lambda</em></strong> lists all IAM roles, collects trust + identity policies, sends them to Amazon Bedrock for a concise summary, and writes a dated CSV to Amazon S3.</li><li><strong><em>Why</em></strong>: Replace tribal knowledge with a <strong><em>repeatable report</em></strong> that helps audits, handovers, and cleanup.</li><li><strong><em>How</em></strong>: <strong><em>Terraform</em></strong> provisions one S3 bucket, one EventBridge schedule, and one analyzer Lambda (your Python file stays in the repo).</li><li><strong><em>Output</em></strong>: CSV columns are Role Name, Role ARN, Role Type, Role Type, Summary, Services (The service list is capped to keep it readable.)</li><li><strong><em>Deploy</em></strong>: terraform apply -var=”results_bucket_name=&lt;YOUR_BUCKET_NAME&gt;” -var=”region=&lt;YOUR_REGION&gt;” and you’re live.</li><li><strong><em>Scale &amp; Cost</em></strong>: Micro-batch roles (5–10 per Bedrock call). Costs are mainly Bedrock tokens; S3/Lambda/EventBridge are minimal.</li></ul><h3>What are IAM roles and why do they matter?</h3><p><strong><em>AWS IAM roles</em></strong> are identities with a set of permissions that <strong><em>any trusted principal</em></strong> (a service, user, or another role) can <strong><em>assume</em></strong>. They’re the backbone of least-privilege in AWS:</p><ul><li><strong><em>Trust policy</em></strong><em>: </em>Who can assume the role (e.g., Lambda, EC2, a specific AWS account).</li><li><strong><em>Identity policies</em></strong><em>:</em> What the role can do once assumed (inline or attached managed policies).</li></ul><p>Over time, as teams change and services evolve, roles pile up. Some drift from their original purpose; some keep wildcard permissions “temporarily”; some are service-linked and safe to ignore — but it’s hard to tell at a glance. That’s why a <strong><em>human-readable summary</em></strong> of every role is so useful.</p><h3>What is Amazon Bedrock?</h3><p><strong><em>Amazon Bedrock</em></strong> is a fully managed service that gives you access to <strong><em>foundation models</em></strong> (including Anthropic’s Claude family) via a unified API, with AWS security and controls. For this task, we use <strong><em>Claude 3 Sonnet v1</em></strong> — a good balance of capability, speed, and cost for generating short, precise descriptions from structured data. We keep prompts strict (JSON out, no fluff) and set the temperature to 0 for consistent output.</p><h3>Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnLKoNlXXCKcBTqM-Q3jkg.gif" /></figure><ol><li><strong><em>Amazon EventBridge</em></strong> invokes the analyzer Lambda on the configured cron.</li><li><strong><em>Lambda</em></strong> enumerates IAM roles and fetches trust + identity policies (for custom roles).</li><li><strong><em>Amazon Bedrock (Claude 3 Sonnet)</em></strong> summarizes each role in micro-batches.</li><li><strong><em>Lambda</em></strong> writes a dated CSV to <strong><em>Amazon S3</em></strong><em>.</em></li></ol><h3>How the Lambda works (the interesting bits)</h3><p><strong>1) Inventory roles safely</strong></p><ul><li>Only fetch identity policies for <strong>custom</strong> roles (service-linked roles are included, but don’t need identity policy fetches).</li><li>Tag each role with a simple type: Custom or ServiceLinked.</li></ul><pre>roles.append({<br>  &quot;name&quot;: role_name,<br>  &quot;type&quot;: &quot;ServiceLinked&quot; if service_linked else &quot;Custom&quot;,<br>  &quot;arn&quot;: role[&quot;Arn&quot;],<br>  &quot;trust&quot;: trust_doc,<br>  &quot;inline_policies&quot;: inline_docs,       # custom roles<br>  &quot;attached_policies&quot;: attached_docs,   # custom roles<br>})</pre><p><strong>2) Summarize with Bedrock (micro-batches)</strong></p><p>We send roles in chunks (CHUNK_SIZE = 5–10) with a strict <strong>system prompt</strong>:</p><ul><li>Return JSON array <strong><em>in the same order</em></strong> as input.</li><li>For each role, output {roleName, roleType, summary, services}.</li><li><strong><em>Summary</em></strong>: 4–6 sentences from trust + identity policies only.</li><li><strong><em>Services</em></strong>: unique service prefixes derived from Action (cap at 5 + “and many more”).</li></ul><pre>body = json.dumps({<br>  &quot;anthropic_version&quot;: &quot;bedrock-2023-05-31&quot;,<br>  &quot;system&quot;: SYSTEM_PROMPT,<br>  &quot;max_tokens&quot;: 2000,<br>  &quot;temperature&quot;: 0,<br>  &quot;messages&quot;: [<br>    {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: [{&quot;type&quot;: &quot;text&quot;, &quot;text&quot;: user_payload}]}<br>  ]<br>})<br>resp  = bedrock.invoke_model(modelId=MODEL_ID, body=body)<br>text  = json.loads(resp[&quot;body&quot;].read())[&quot;content&quot;][0][&quot;text&quot;]<br>roles = json.loads(text)  # if parse fails, we fall back to a minimal summary</pre><p>We parse the model’s output and <strong><em>fall back</em></strong> to a minimal object if parsing fails, so <strong><em>every role</em></strong> gets a row.</p><p><strong>3) Generate the CSV</strong></p><ul><li>Columns: Role Name, Role ARN, Role Type, Summary, Services.</li><li>Summary lines are normalized (no stray newlines) so spreadsheets render cleanly.</li><li>Object key is <strong><em>today’s date</em></strong> (UTC), e.g., 14-Oct-2025.csv.</li></ul><pre>fields = [&quot;Role Name&quot;, &quot;Role ARN&quot;, &quot;Role Type&quot;, &quot;Summary&quot;, &quot;Services&quot;]<br>s3.put_object(Bucket=REPORT_BUCKET, Key=CSV_KEY, Body=buf.getvalue(), ContentType=&quot;text/csv&quot;)</pre><h3>Complete Project on GitHub!</h3><p>If you want to see the complete code, clone it, tweak it, or poke around, I’ve uploaded everything to GitHub:</p><p><a href="https://github.com/anish-u/iam-roles-analyzer">GitHub - anish-u/iam-roles-analyzer: Build a scheduled IAM inventory that summarizes every IAM role in your AWS account</a></p><p>Feel free to fork it, star it, or open issues if you run into anything or want to suggest improvements.</p><h3>Wrapping Up</h3><p>The goal isn’t to replace formal security reviews; it’s to unblock them. When every role has a short, readable description, deciding what to keep, fix, or delete becomes a normal conversation instead of detective work.</p><p>One last thing, <strong><em>don’t forget to destroy</em> </strong>your AWS resources when you’re done testing.</p><blockquote><strong>“Always clean up unless your hobby is funding Jeff Bezos’ next rocket launch.”</strong></blockquote><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77179cc35648" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/iam-role-mystery-to-clarity-auto-summarize-every-role-with-amazon-bedrock-77179cc35648">IAM Role Mystery to Clarity: Auto-Summarize Every Role with Amazon Bedrock</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>
        <item>
            <title><![CDATA[AWS Account Setup 101: Best Practices for Beginners]]></title>
            <link>https://aws.plainenglish.io/aws-account-setup-101-best-practices-for-beginners-1ae31e64a4ac?source=rss-e3fb030936d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ae31e64a4ac</guid>
            <category><![CDATA[aws-budgets]]></category>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-security]]></category>
            <category><![CDATA[aws-best-practices]]></category>
            <dc:creator><![CDATA[Anish Ummenthala]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 05:55:04 GMT</pubDate>
            <atom:updated>2025-10-15T15:27:22.945Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="AWS Account Setup 101: Best Practices for Beginners" src="https://cdn-images-1.medium.com/max/1024/0*UE9q9p16r1c3lgVX" /></figure><blockquote><strong>“Your AWS cloud journey begins not with servers, but with security.”</strong></blockquote><h3>Essential Steps for Setting Up Your AWS Account</h3><h4>Step 1: Protect Your Root Account</h4><p>Your root account gives full access to your AWS resources, so keeping it safe is critical:</p><ul><li>Only use the root account for initial setup.</li><li>Activate Multi-Factor Authentication (MFA) for extra security.</li><li>Never share your root credentials.</li></ul><h4>Step 2: Create Individual IAM Users</h4><p>IAM (Identity and Access Management) lets you securely manage who can access your AWS account:</p><ul><li>Set up separate IAM accounts for daily activities.</li><li>Assign explicit, clear, and specific permissions to each user.</li><li>Group users by their roles (admins, developers, or read-only).</li></ul><h4>Step 3: Set Your Budget</h4><p>AWS offers many useful resources, but costs can easily grow if you’re not careful:</p><ul><li>Visit your AWS Billing Dashboard.</li><li>Set up a monthly budget to monitor expenses.</li><li>Enable notifications to stay informed about spending.</li></ul><h4>Step 4: Configure Billing Alarms</h4><p>Stay alert by creating billing alarms:</p><ul><li>Open Amazon CloudWatch.</li><li>Create alarms that trigger if you approach your spending limits.</li><li>Set up email or SMS notifications for quick alerts.</li></ul><h4>Step 5: Turn On AWS CloudTrail</h4><p>CloudTrail helps you track activity in your AWS account:</p><ul><li>Activate CloudTrail to log and review account activity.</li><li>Regularly check these logs to spot any unusual actions quickly.</li></ul><h4>Step 6: Keep Your Account Secure</h4><p>Stay safe by following these simple security practices:</p><ul><li>Frequently update your passwords and access keys.</li><li>Regularly rotate your security credentials.</li><li>Perform routine audits to ensure proper user permissions.</li></ul><h4>Step 7: Start Small and Grow</h4><p>AWS provides numerous services. Begin with the basics such as EC2 (virtual servers), S3 (storage), and IAM (security). Once you’re comfortable, explore other services relevant to your needs.</p><h3>Wrapping Up</h3><p>By following these clear, straightforward steps, you’ll be well-equipped for a safe, secure, and successful start with AWS. Good habits from day one make your AWS journey smoother and more enjoyable.</p><p>One last thing, <strong><em>don’t forget to destroy</em> </strong>your AWS resources when you’re done testing.</p><blockquote><strong>“Always clean up unless your hobby is funding Jeff Bezos’ next rocket launch.”</strong></blockquote><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ae31e64a4ac" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/aws-account-setup-101-best-practices-for-beginners-1ae31e64a4ac">AWS Account Setup 101: Best Practices for Beginners</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>
        <item>
            <title><![CDATA[Stop Copy-Pasting Logging Code — Use a Lambda Layer Instead]]></title>
            <link>https://aws.plainenglish.io/stop-copy-pasting-logging-code-use-a-lambda-layer-instead-319b1049df87?source=rss-e3fb030936d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/319b1049df87</guid>
            <category><![CDATA[aws-cdk]]></category>
            <category><![CDATA[logging-and-monitoring]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[lambda-layer]]></category>
            <category><![CDATA[lambda]]></category>
            <dc:creator><![CDATA[Anish Ummenthala]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 12:20:04 GMT</pubDate>
            <atom:updated>2025-11-09T23:44:50.876Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>Stop Copy-Pasting Logging Code - Use a <strong>Lambda Layer</strong> Instead</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uz-T87XDYVNZdTTQFv4apw.png" /></figure><blockquote><strong>“Duplication is the root of all evil in software.” — </strong>DRY Principle in a nutshell</blockquote><p>If you are building a serverless application with AWS Lambda, you have probably written the same logging logic repeatedly — set up a logger, add request IDs, try/catch your handler, log the error… and repeat. It gets messy fast.</p><p>In this post, I&#39;ll show you a better way: how to <strong><em>build a reusable logging layer using AWS Lambda Layers</em></strong>, <strong><em>TypeScript</em></strong>, and <strong><em>AWS CDK</em></strong>. Let&#39;s clean up those Lambdas.</p><h3>TL;DR</h3><p>Tired of duplicating the same logging and error-handling logic in every Lambda function?</p><p>This post walks you through how I built a reusable logging system using Lambda Layers, TypeScript, and CDK. It includes:</p><ul><li>A shared Lambda Layer with logger utility and withLogging() wrapper.</li><li>Sample REST endpoints to demonstrate usage.</li><li>A full deployment setup using AWS CDK.</li></ul><p>Only interested in the actual project. Here is the GitHub repo!</p><p><a href="https://github.com/anish-u/aws-lambda-layer-logger">GitHub - anish-u/aws-lambda-layer-logger: Learn how to build a reusable logging system for AWS Lambda using Layers, TypeScript, and CDK. DRY your code and improve serverless observability.</a></p><h3>What Are Lambda Layers?</h3><p>Lambda Layers are a distribution mechanism for libraries, custom runtimes, and other dependencies that you want to share across multiple Lambda functions.</p><p>Think of a Layer as a <strong><em>modular building block </em></strong>that<strong><em> </em></strong>separates common logic (like logging or monitoring) from your application code, packages it into a Layer, and attaches it to any function that needs it.</p><h4>Why use Lambda Layers?</h4><ul><li><strong><em>DRY (Don&#39;t Repeat Yourself)</em>:</strong> Keep your function code clean and focused on business logic.</li><li><strong>Centralized Updates</strong>: Fix a bug or add a feature once in the Layer; every function using it benefits.</li><li><strong>Faster Deploys</strong>: Smaller Lambda zip files, because shared code lives in the Layer.</li><li><strong>Better Testing</strong>: Your utilities can be tested in isolation. Separate concerns = better testing and maintenance.</li></ul><h3>Why Logging Is a Perfect Layer Use Case?</h3><p>Observability is a shared concern across almost every Lambda. But copying and pasting the logger setup, correlation ID logic, and error tracking into every single handler? That&#39;s a maintenance nightmare, which leads to</p><ul><li>Inconsistent logs</li><li>Copy-paste bugs</li><li>Difficulty debugging across services</li></ul><p>Instead, I moved all of this into a shared Lambda Layer, which provides:</p><ul><li>A <strong><em>typed logger</em></strong> using a lightweight utility.</li><li>A <strong><em>handler wrapper</em></strong> that automatically injects context like requestId, functionNameand structured error handling.</li><li>Support for <strong><em>correlation IDs</em></strong> to track requests across microservices.</li></ul><h3>Other Use Cases for AWS Lambda Layers</h3><h4><strong><em>Shared Code Libraries</em></strong>:</h4><p>Move common utilities like input validation, error formatting, UUID generation, or authentication helpers into a layer. This keeps your Lambda functions focused and DRY.</p><h4>Third-Party Dependencies:</h4><p>Heavy or commonly used packages (e.g., axios, lodash, uuid) can be bundled into a layer instead of every individual Lambda package.</p><h4>Configuration Files</h4><p>Centralize environment configs, feature flags, or metadata (e.g., stage-based secrets) to ensure consistent behavior across multiple functions.</p><h4>Security Libraries</h4><p>Add encryption/decryption helpers, JWT validators, or custom authorization logic to enforce security standards across your Lambdas.</p><h3>Project Walkthrough</h3><p>This project will demonstrate how to build a <strong><em>reusable</em></strong>, <strong><em>centralized</em></strong> <strong><em>logging</em></strong> <strong><em>solution</em></strong> for AWS Lambda using Lambda Layers, TypeScript, and AWS CDK. Let&#39;s break it down.</p><h4>Project Structure</h4><pre>├── src/lambdas/          # Application logic (handlers)<br>├── src/layers/logger/    # Reusable logging utilities<br>├── stacks/               # CDK infrastructure code<br>├── bin/                  # CDK entrypoint</pre><h4>The Logging Layer: DRY Observability</h4><p>The Layer is defined in src/layers/logger/ and contains:</p><p><strong><em>logger.ts</em></strong></p><p>A minimal structure logger using the console.log</p><pre>logger.info(&quot;message&quot;, { meta });<br>logger.error(&quot;message&quot;, { error });</pre><p><strong><em>withLogger.ts</em></strong></p><p>A high-order function that wraps your Lambda and logs request context (path, method, request ID) and success or failure with status code.</p><pre>export const withLogging = (handler) =&gt; async (event, context) =&gt; {<br>  logger.info(&quot;Lambda Invoked&quot;, { path: event.path, method: event.httpMethod });<br>  try {<br>    const result = await handler(event, context);<br>    logger.info(&quot;Lambda Succeeded&quot;, { statusCode: result.statusCode });<br>    return result;<br>  } catch (error) {<br>    logger.error(&quot;Lambda Failed&quot;, { error });<br>    throw error;<br>  }<br>};</pre><h4>Example Lambda: createBlog</h4><p>This function receives a JSON payload, validates it, and returns a success response. <strong><em>&quot;Key logic wrapped with logging&quot;</em></strong>.</p><pre>export const handler = withLogging(async (event: APIGatewayProxyEvent): Promise&lt;APIGatewayProxyResult&gt; =&gt; {<br>  let body;<br><br>  try {<br>    body = JSON.parse(event.body || &quot;{}&quot;);<br>  } catch {<br>    return { statusCode: 400, body: JSON.stringify({ message: &quot;Invalid JSON body.&quot; }) };<br>  }<br><br>  const { title, content } = body;<br>  if (!title || !content) {<br>    return { statusCode: 400, body: JSON.stringify({ message: &quot;Title and content are required.&quot; }) };<br>  }<br><br>  return {<br>    statusCode: 201,<br>    body: JSON.stringify({<br>      message: &quot;Blog created successfully&quot;,<br>      data: { id: Date.now(), title, content },<br>    }),<br>  };<br>});</pre><h4>CDK Stack: Wiring It All Together</h4><pre>// Logging Layer Definition<br>const loggingLayer = new lambda.LayerVersion(this, &quot;LoggingLayer&quot;, {<br>  code: lambda.Code.fromAsset(&quot;src/layers/logger/dist&quot;),<br>  compatibleRuntimes: [lambda.Runtime.NODEJS_20_X],<br>});<br><br>// NodeJS Function with the Logging Layer<br>const createBlogFunction = new NodejsFunction(this, &quot;CreateBlogFunction&quot;, {<br>  entry: &quot;src/lambdas/createBlog.ts&quot;,<br>  runtime: lambda.Runtime.NODEJS_20_X,<br>  layers: [loggingLayer],<br>});<br><br>// API Gateway Integration<br>const blogRoute = api.root.addResource(&quot;blog&quot;);<br>blogRoute.addMethod(&quot;POST&quot;, new apigateway.LambdaIntegration(createBlogFunction));</pre><h4>Logs in CloudWatch</h4><p>Thanks towithLogger.ts, your logs look like this:</p><pre>{<br>  &quot;level&quot;: &quot;info&quot;,<br>  &quot;msg&quot;: &quot;Lambda Invoked&quot;,<br>  &quot;path&quot;: &quot;/blog&quot;,<br>  &quot;httpMethod&quot;: &quot;POST&quot;<br>}<br><br>{<br>  &quot;level&quot;: &quot;error&quot;,<br>  &quot;msg&quot;: &quot;Lambda Failed&quot;,<br>  &quot;statusCode&quot;: 500,<br>  &quot;error&quot;: &quot;Something went wrong&quot;<br>}</pre><h3>Complete Project on GitHub!</h3><p>If you want to see the complete code, clone it, tweak it, or poke around, I&#39;ve uploaded everything to GitHub:</p><p><a href="https://github.com/anish-u/aws-lambda-layer-logger">GitHub - anish-u/aws-lambda-layer-logger: Learn how to build a reusable logging system for AWS Lambda using Layers, TypeScript, and CDK. DRY your code and improve serverless observability.</a></p><p>Feel free to fork it, star it, or open issues if you run into anything or want to suggest improvements.</p><h3>Wrapping Up</h3><p>This project greatly impacted how I build and manage serverless functions. Now I write fewer utility codes in lambdas.</p><p>If you are still copy-pasting the same boilerplate code across Lambdas, try abstracting it into a Layer, and you will thank yourself later.</p><p>One last thing, <strong>don&#39;t forget to destroy </strong>your AWS resources when you&#39;re done testing.</p><blockquote><strong>“Always clean up unless your hobby is funding Jeff Bezos’ next rocket launch.”</strong></blockquote><h3>References</h3><ul><li><a href="https://docs.aws.amazon.com/lambda/latest/dg/nodejs-layers.html">Working with layers for Node.js Lambda functions</a></li><li><a href="https://shawntorsitano.com/blog/cdk-lambda-layers/">Creating Lambda Layers with TypeScript and CDK — The Right Way</a></li><li><a href="https://www.qloudx.com/how-to-split-typescript-based-lambda-functions-into-lambda-layers/">How to Split TypeScript-Based Lambda Functions into Lambda Layers</a></li><li><a href="https://www.youtube.com/watch?v=WcBuGiLbHSc">How to Deploy Lambda Layers Using the AWS CDK</a></li><li><a href="https://conermurphy.com/blog/maximizing-aws-lambda-function-potential-layers-aws-cdk/">Maximizing Your AWS Lambda Function’s Potential with Layers and the AWS CDK</a></li><li><a href="https://dev.to/wallacefreitas/how-to-work-with-aws-lambda-layers-using-aws-cdk-with-typescript-2jo7">How to Work with AWS Lambda Layers Using AWS CDK with TypeScript</a></li></ul><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/@InPlainEnglish"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a> | <a href="https://twitch.tv/inplainenglish"><strong>Twitch</strong></a></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=319b1049df87" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/stop-copy-pasting-logging-code-use-a-lambda-layer-instead-319b1049df87">Stop Copy-Pasting Logging Code — Use a Lambda Layer Instead</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>
        <item>
            <title><![CDATA[Building a Scalable Fan Out Architecture on AWS with SNS and SQS]]></title>
            <link>https://aws.plainenglish.io/building-a-scalable-fan-out-architecture-on-aws-with-sns-and-sqs-8e2550a462d3?source=rss-e3fb030936d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e2550a462d3</guid>
            <category><![CDATA[fanout]]></category>
            <category><![CDATA[sns]]></category>
            <category><![CDATA[sqs-lambda]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[aws-cdk]]></category>
            <dc:creator><![CDATA[Anish Ummenthala]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 06:45:04 GMT</pubDate>
            <atom:updated>2025-07-01T01:19:29.543Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RKx4yxUqDiWIfy4u9AHyEw.png" /></figure><blockquote>In distributed systems, decoupling your components is the first step to achieving scalability and resilience.</blockquote><p>If you have ever built a system where <strong><em>one thing needs to trigger a bunch of other things</em></strong>, you must have already stumbled upon the idea of fan-out architecture.</p><p>In this post, I’ll explain what fan-out architecture is, why it’s powerful, and how we can build it using <strong><em>AWS SNS and SQS</em></strong>. I’ll also share a <strong><em>simple</em></strong><em> </em><strong><em>CDK project</em></strong> I made that implements this architecture (a notification system that sends email, SMS, and push notifications all in parallel).</p><h3>TL;DR</h3><p>Fan-out Architecture is a design pattern where a single message is sent to multiple downstream systems in parallel. Using AWS SNS + SQS, we can build a fully decoupled, scalable, and fault-tolerant system.</p><p>In this blog:</p><ul><li>We break down what fan-out architecture is.</li><li>Show how to implement it with AWS SNS (publisher)+ SQS (subscribers).</li><li>Walk through a real example: a notification system that sends email, SMS, and push notifications all in parallel.</li></ul><h3>What Is Fan Out Architecture?</h3><p>Fan-out architecture is just a fancy way of saying:</p><blockquote><strong>“Hey, everyone who cares about this message — go do your thing!”</strong></blockquote><p>We aren’t doing everything in one place. We take one big task, break it into smaller tasks, and run them at the same time (in parallel).</p><p>In tech terms, it’s a messaging pattern where a single message is sent to multiple destinations at the same time. Each destination can process it in parallel and in total isolation from other destinations.</p><p>This architecture is super useful when we want things to be <strong><em>fast, reliable,</em> </strong>and<strong> <em>decoupled</em></strong> (services that don&#39;t need to know about each other to get the job done).</p><h3>Pub/Sub Model?</h3><p>The easiest way to implement this pattern is with the good old <strong><em>Publish-Subscribe</em></strong> (aka Pub/Sub) model.</p><ul><li>We have a <strong><em>Topic</em></strong> (acts like a group chat).</li><li>A <strong><em>Publisher</em></strong> sends a message to that topic.</li><li>All the <strong><em>Subscribers</em></strong> get that message instantly and go do their work.</li></ul><figure><img alt="One message, multiple destinations. Classic fan-out pattern" src="https://cdn-images-1.medium.com/max/1024/1*Tl_N32c7GCE_2QkTY-Az0g.png" /><figcaption><em>Fan-out is basically “send this to everyone who cares.”</em></figcaption></figure><p><strong>Why is this awesome?</strong></p><ul><li>The publisher doesn&#39;t need to know <strong><em>who is listening</em></strong>.</li><li>The subscriber doesn&#39;t care <strong><em>who sent the message</em></strong>.</li><li>Everyone does their job independently, and our system becomes more <strong><em>flexible, maintainable, </em></strong>and<strong><em> resilient</em></strong>.</li></ul><h3>Why Bother with Fan Out?</h3><p>So, what do we actually get out of this architecture?</p><ul><li><strong><em>Parallel Processing</em></strong> — Multiple tasks run at the same time (= faster).</li><li><strong><em>Failure Isolation </em></strong>—<strong><em> </em></strong>One service crashing won’t take the others down.</li><li><strong><em>Decoupling</em></strong> — Easier to maintain, test, and deploy our services.</li></ul><h3>My Example: Notification System with CDK</h3><p>I built a simple notification system using <strong><em>AWS CDK</em></strong> (in TypeScript). Here’s what it includes:</p><ul><li>An SNS topic (<strong><em>NotificationTopic</em></strong>)</li><li>Three SQS queues are subscribed to this topic (<strong><em>EmailQueue</em></strong>, <strong><em>PushQueue</em></strong>, <strong><em>SMSQueue</em></strong>)</li><li>Three Lambda functions to handle each queue</li><li>Infra to wire them all together</li></ul><figure><img alt="SNS fans out messages to multiple SQS queues, each triggering a separate Lambda." src="https://cdn-images-1.medium.com/max/1024/1*5V22ube9NosnH3Lrpp1kyA.png" /><figcaption>SNS fans out messages to multiple SQS queues, each triggering a separate Lambda.</figcaption></figure><p>A real-world example would be when a user signs up for your platform, your backend sends a single message to the <strong><em>NotificationTopic.</em></strong></p><p>That message fans out to:</p><ul><li>EmailQueue → triggers Email Lambda → sends welcome email</li><li>PushQueue → triggers Push Lambda → sends push notification to the device</li><li>SMSQueue → triggers SMS Lambda → sends text message to user</li></ul><p>Each Lambda gets messages <strong><em>in batches</em></strong> from its queue and does its thing, completely unaware of the others.</p><p>Time to get into the good stuff: <strong><em>the code</em></strong></p><h4><strong>1. Defining the SNS Topic</strong></h4><pre>export const createNotificationTopic = (scope: Construct) =&gt; {<br>  return new Topic(scope, &#39;NotificationTopic&#39;, {<br>    displayName: &#39;FanoutNotificationTopic&#39;,<br>  });<br>};</pre><p>This is the central piece of our fan-out system. Any message published here will be broadcast to all the subscribers.</p><h4>2. Creating the SQS Queues</h4><p>Here we have defined a reusable function that creates named SQS queues:</p><pre>export const createNotificationQueue = (scope: Construct, name: string) =&gt; {<br>  return new Queue(scope, `${name}Queue`, {<br>    queueName: `${name.toLowerCase()}-notification-queue`,<br>    visibilityTimeout: Duration.seconds(30),<br>  });<br>};</pre><p>We use this function to spin up <strong><em>EmailQueue</em></strong>, <strong><em>PushQueue</em></strong>, and <strong><em>SMSQueue</em></strong> in our stack.</p><h4>3. Creating Lambda Consumers</h4><p>Here we have defined a function that creates Lambda consumers for each SQS queue:</p><pre>export const createNotificationConsumer = (<br>  scope: Construct,<br>  handlerPath: string,<br>  queue: Queue,<br>  name: string<br>) =&gt; {<br>  const lambdaFn = new NodejsFunction(scope, `${name}ConsumerFn`, {<br>    entry: handlerPath,<br>    runtime: Runtime.NODEJS_18_X,<br>    handler: &#39;handler&#39;,<br>    timeout: Duration.seconds(10),<br>  });<br><br>  queue.grantConsumeMessages(lambdaFn);<br>  lambdaFn.addEventSource(new SqsEventSource(queue, { batchSize: 5 }));<br><br>  return lambdaFn;<br>};</pre><p>Each Lambda uses a separate handler file (<strong><em>emailHandler.ts</em></strong>, <strong><em>pushHandler.ts</em></strong>, <strong><em>smsHandler.ts</em></strong>) and consumes messages in batches from its corresponding queue.</p><h4>4. Hooking Everything Together</h4><p>Now, in the main stack, we wire all the resources together:</p><pre>const topic = createNotificationTopic(this);<br><br>const emailQueue = createNotificationQueue(this, &#39;Email&#39;);<br>const pushQueue = createNotificationQueue(this, &#39;Push&#39;);<br>const smsQueue = createNotificationQueue(this, &#39;SMS&#39;);<br><br>// Subscribe queues to the topic<br>topic.addSubscription(new SqsSubscription(emailQueue));<br>topic.addSubscription(new SqsSubscription(pushQueue));<br>topic.addSubscription(new SqsSubscription(smsQueue));<br><br>// Hook up Lambdas<br>createNotificationConsumer(this, &#39;./src/lambda/emailHandler.ts&#39;, emailQueue, &#39;Email&#39;);<br>createNotificationConsumer(this, &#39;./src/lambda/pushHandler.ts&#39;, pushQueue, &#39;Push&#39;);<br>createNotificationConsumer(this, &#39;./src/lambda/smsHandler.ts&#39;, smsQueue, &#39;SMS&#39;);</pre><p>Now, publishing a message to the topic will send it to all three queues, and each queue will invoke its Lambda to handle the message.</p><h3>Full Project on GitHub!</h3><p>If you want to see the full code, clone it, tweak it, or just poke around, I’ve uploaded everything to GitHub:</p><p><a href="https://github.com/anish-u/aws-fanout-notification-system">GitHub - anish-u/aws-fanout-notification-system: A fan-out architecture using SNS, SQS, and Lambda to deliver notifications with filter-based routing.</a></p><p>The repo includes:</p><ul><li>Full CDK setup (SNS + SQS + Lambda)</li><li>Queue + consumer definitions</li><li>Sample handler code</li><li>Clean folder structure</li></ul><p>Feel free to fork it, star it, or open issues if you run into anything or want to suggest improvements.</p><h3>Wrapping Up</h3><p>Fan-out architecture is a solid pattern for building event-driven, decoupled systems that scale. With <strong><em>AWS SNS and SQS</em></strong>, it’s super easy to implement, and with CDK, it’s even easier to define in code.</p><p>This system is a great base for building things like:</p><ul><li>Notification systems</li><li>Audit/event logs</li><li>Data processing pipelines</li><li>Multi-tenant service triggers</li></ul><p>One last thing, <strong>don’t forget to destroy </strong>your AWS resources when you’re done testing.</p><blockquote><strong>“Always clean up unless your hobby is funding Jeff Bezos’ next rocket launch<em>.”</em></strong></blockquote><h3>References</h3><ul><li><a href="https://youtu.be/CEj0yyubNgQ?si=q3TtVtciJKdP0xJr">AWS: Building Fan-Out Serverless Architectures Using SNS, SQS, and Lambda</a></li><li><a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sqs-as-subscriber.html">SQS as a subscriber to SNS</a></li><li><a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html">AWS Lambda with SQS</a></li><li><a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html">SNS message filtering</a></li><li><a href="https://aws.amazon.com/blogs/compute/messaging-fanout-pattern-for-serverless-architectures-using-amazon-sns/">Fanout-pattern use case</a></li></ul><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/@InPlainEnglish"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a> | <a href="https://twitch.tv/inplainenglish"><strong>Twitch</strong></a></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e2550a462d3" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/building-a-scalable-fan-out-architecture-on-aws-with-sns-and-sqs-8e2550a462d3">Building a Scalable Fan Out Architecture on AWS with SNS and SQS</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>
        <item>
            <title><![CDATA[Redacting Sensitive Data On-the-Fly with S3 Object Lambda]]></title>
            <link>https://aws.plainenglish.io/redacting-sensitive-data-on-the-fly-with-s3-object-lambda-76107d6210a7?source=rss-e3fb030936d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/76107d6210a7</guid>
            <category><![CDATA[data-redaction]]></category>
            <category><![CDATA[s3-access-point]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[aws-cdk]]></category>
            <category><![CDATA[s3-object-lambda]]></category>
            <dc:creator><![CDATA[Anish Ummenthala]]></dc:creator>
            <pubDate>Mon, 16 Jun 2025 08:45:22 GMT</pubDate>
            <atom:updated>2025-07-01T01:19:33.929Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOIgUBK-M6SLdWPeNuPzKw.png" /><figcaption>on-the-fly pii redaction with s3 object lambda</figcaption></figure><blockquote>“Mask what you must, without touching the source.”</blockquote><p>Most modern applications often store user data in <strong>Amazon S3</strong>, including potentially sensitive details like names, emails, or contact information. But what if you could automatically hide the private data only when it&#39;s accessed, without ever touching the original file?</p><p>That&#39;s where <strong>Amazon S3 Object Lambda</strong> comes in.</p><p>In this post, I&#39;ll show you how to build a simple <strong>PII </strong>(Personal Identifiable Information) masker using the <strong>AWS CDK, S3 Access Points </strong>&amp;<strong> Lambda Function</strong> that redacts email addresses from .txt files in real time.</p><h3>Why On-the-Fly Transformation?</h3><p>Traditionally, redacting sensitive information in S3 means:</p><ul><li>Modifying the original file to sanitize information</li><li>Storing the sanitized copies</li><li>Managing multiple versions of the same data</li></ul><p>But this approach can be clunky and error-prone sometimes.</p><p>With <strong>S3 Object Lambda</strong>, you can intercept the S3 GET requests and transform data on the fly without duplicating the source files. It is a serverless middleware for S3 objects.</p><h3>What is an S3 Access Point?</h3><p>An <strong>S3 Access Point</strong> is like a custom entry point to your S3 bucket. Instead of relying on one big, complicated bucket policy, you can create several of these entry points, each with its own name and set of rules. This lets you control who gets in and what they can access more easily.</p><p>For example, you might have:</p><ul><li>One access point for your internal team,</li><li>Another one that allows the public only to read files,</li><li>And a third one that&#39;s mainly for use only by a Lambda function.</li></ul><h3>What is an S3 Object Lambda?</h3><p>An <strong>S3 Object Lambda </strong>lets you customize or transform data on the fly as retrieved from S3. It sits between the user/client and the original object, invoking a <strong>Lambda function</strong> to tweak the data (masking sensitive info, reformatting content, or filtering fields) before it&#39;s returned.</p><p>It&#39;s an <strong>intelligent filter</strong> that processes the file just before it reaches the user. Some common ways it&#39;s used include:</p><ul><li><strong>Removing sensitive information</strong> like credit card numbers, email addresses, or personal information.</li><li><strong>Creating content on the fly</strong>, such as resizing images or adding watermarks right before download.</li><li><strong>Changing file formats</strong> as needed, for example, converting a CSV file into JSON without storing both versions.</li></ul><h3>Hands-On: On-the-Fly PII Redactor</h3><p>Let&#39;s get our hands dirty and build something real: a <strong>PII redactor</strong> that automatically masks email addresses from text files stored in S3 without changing the original files.</p><p>You can follow along or clone the complete working code from my GitHub repo: <a href="https://github.com/anish-u/pii-redaction-with-object-lambda"><strong><em>https://github.com/anish-u/pii-redaction-with-object-lambda</em></strong></a></p><figure><img alt="Architecture diagram showing the flow of data redaction using AWS services" src="https://cdn-images-1.medium.com/max/1024/1*4ZbunUvBL5654mjsZRuAlA.png" /><figcaption>Architecture diagram showing the flow of data redaction using AWS services</figcaption></figure><p>We&#39;ll use <strong>AWS CDK</strong> to provision the entire setup:</p><ul><li>S3 bucket to store raw sensitive data</li><li>Standard S3 Access Point</li><li>Lambda function that performs redaction</li><li>Object Lambda Access Point that triggers the Lambda on reads</li></ul><p><strong>1. Creating the Raw Data Bucket</strong></p><p>We create an S3 bucket configured with <strong><em>autoDeleteObjects: true</em></strong> and <strong><em>removalPolicy: DESTROY</em></strong>, meaning the bucket and its contents will be automatically removed when the stack is destroyed, ideal for dev or test environments.</p><pre>const bucket = new Bucket(this, &quot;RawDataBucket&quot;, {<br>  bucketName: &quot;raw-bucket-with-sensitive-data&quot;,<br>  removalPolicy: RemovalPolicy.DESTROY,<br>  autoDeleteObjects: true,<br>});</pre><p><strong>2. Creating a Standard S3 Access Point</strong></p><p>We create an access point that provides a secure and controlled interface for Lambda to read files from the raw data bucket. The ARN created here will be used later to indirectly connect the Object Lambda Access Point to the bucket.</p><pre>const accessPoint = new CfnS3AccessPoint(this, &quot;S3AccessPoint&quot;, {<br>  bucket: &quot;raw-bucket-with-sensitive-data&quot;,<br>  name: &quot;bucket-access-point&quot;,<br>});<br><br>const s3AccessPointArn = `arn:aws:s3:${this.region}:${this.account}:accesspoint/bucket-access-point`;</pre><p><strong>3. Creating the Lambda Function</strong></p><p>We create a function invoked by Object Lambda to mask/redact data. The lambda code will be written in <strong><em>Python</em></strong> and handler is <strong><em>index.lambda_handler</em></strong></p><pre>const lambdaFn = new Function(this, &quot;PiiMaskerLambda&quot;, {<br>  runtime: Runtime.PYTHON_3_9,<br>  functionName: &quot;maskerLambdaFunction&quot;,<br>  code: Code.fromAsset(&quot;lambda&quot;),<br>  handler: &quot;index.lambda_handler&quot;,<br>  environment: {<br>    RAW_BUCKET_NAME: &quot;raw-bucket-with-sensitive-data&quot;,<br>  },<br>  logRetention: RetentionDays.ONE_WEEK,<br>});</pre><p><strong>4. Granting Access Permissions</strong></p><p>Lambda permission to:</p><ul><li>Grant <strong><em>s3:GetObject </em></strong>access only via the Access Point, not the entire bucket</li><li>Ensures Lambda can retrieve data without exposing raw bucket permissions</li></ul><pre>lambdaFn.addToRolePolicy(<br>  new PolicyStatement({<br>    actions: [&quot;s3:GetObject&quot;],<br>    resources: [`${s3AccessPointArn}/object/*`],<br>  })<br>);<br><br>bucket.grantRead(lambdaFn);</pre><p><strong>5. Creating the Object Lambda Access Point</strong></p><p>We then configure an Object Lambda Access Point, which invokes the Lambda during object retrieval, transforming the output. This is the <strong>gateway</strong> that clients will call instead of the bucket. It&#39;s linked to:</p><ul><li>The regular S3 Access Point</li><li>The Lambda function (for transformation)</li></ul><pre>const objectLambdaAccessPoint = new CfnS3ObjectLambdaAccessPoint(<br>  this,<br>  &quot;S3ObjectLambdaAccessPoint&quot;,<br>  {<br>    name: &quot;object-lambda-access-point&quot;,<br>    objectLambdaConfiguration: {<br>      supportingAccessPoint: s3AccessPointArn,<br>      transformationConfigurations: [<br>        {<br>          actions: [&quot;GetObject&quot;],<br>          contentTransformation: {<br>            AwsLambda: {<br>              FunctionArn: lambdaFn.functionArn,<br>            },<br>          },<br>        },<br>      ],<br>    },<br>  }<br>);</pre><p><strong>6. Allowing Object Lambda to Use Lambda</strong></p><p>We explicitly allow the S3 Object Lambda service to:</p><ul><li>Invoke our redaction Lambda</li><li>Write transformed responses using <strong><em>s3-object-lambda:WriteGetObjectResponse</em></strong></li></ul><pre>/**<br> * Allow the S3 Object Lambda service to invoke the Lambda function<br> */<br>lambdaFn.addPermission(&quot;AllowObjectLambdaInvoke&quot;, {<br>  principal: new ServicePrincipal(&quot;s3-object-lambda.amazonaws.com&quot;),<br>  sourceArn: objectLambdaAccessPointArn,<br>});<br><br>/**<br> * Allow Lambda to return a transformed version of the object<br> */<br>lambdaFn.addToRolePolicy(<br>  new PolicyStatement({<br>    actions: [&quot;s3-object-lambda:WriteGetObjectResponse&quot;],<br>    resources: [objectLambdaAccessPointArn],<br>  })<br>);</pre><p><strong>7. Lambda Handler (Python)</strong></p><p>Below is the Python code to redact the sensitive email addresses from the text files.</p><pre>import os<br>import re<br>import boto3<br>from urllib.parse import urlparse<br><br>s3 = boto3.client(&quot;s3&quot;)<br><br># Regex to match emails<br>EMAIL_PATTERN = re.compile(r&quot;[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+&quot;)<br><br>def lambda_handler(event, context):<br>    # Determine the requested key<br>    requested_url = event[&quot;userRequest&quot;][&quot;url&quot;]<br>    key = urlparse(requested_url).path.lstrip(&quot;/&quot;)<br><br>    # Fetch the raw object<br>    bucket = os.environ[&quot;RAW_BUCKET_NAME&quot;]<br>    resp = s3.get_object(Bucket=bucket, Key=key)<br>    body = resp[&quot;Body&quot;].read()<br><br>    # Only redact emails in .txt files<br>    if key.lower().endswith(&quot;.txt&quot;):<br>        try:<br>            text = body.decode(&quot;utf-8&quot;)<br>            redacted = EMAIL_PATTERN.sub(&quot;[REDACTED_EMAIL]&quot;, text)<br>            output = redacted.encode(&quot;utf-8&quot;)<br>            print(f&quot;Redacted emails in {key}&quot;)<br>        except Exception:<br>            output = body<br>    else:<br>        output = body<br><br>    # Return to the caller<br>    s3.write_get_object_response(<br>        Body=output,<br>        RequestRoute=event[&quot;getObjectContext&quot;][&quot;outputRoute&quot;],<br>        RequestToken=event[&quot;getObjectContext&quot;][&quot;outputToken&quot;],<br>    )<br>    return {&quot;status_code&quot;: 200}</pre><p><strong>Testing via AWS CLI</strong></p><ul><li>Upload a .txt file containing emails to your S3 bucket.</li></ul><pre>aws s3 cp s3://raw-bucket-with-sensitive-data/test.txt &lt;path_to_local_txt_file&gt;</pre><ul><li>Get Object via Object Lambda Access Point</li></ul><pre>aws s3api get-object \<br>  --bucket arn:aws:s3-object-lambda:&lt;region&gt;:&lt;account&gt;:accesspoint/object-lambda-access-point \<br>  --key test.txt redacted-output.txt</pre><ul><li>Replace <em>&lt;region&gt;</em> and <em>&lt;account&gt;</em> with your AWS values.</li></ul><p><strong>Output</strong>: The emails will be replaced with <strong><em>[REDACTED_EMAIL]</em></strong>.</p><figure><img alt="A side-by-side comparison of a text file before and after email redaction." src="https://cdn-images-1.medium.com/max/1024/1*KiCkf_dEgpHEnGrxCfdGkg.png" /><figcaption>Side-by-side comparison of a text file before and after email redaction</figcaption></figure><h3>Don&#39;t Forget to Clean Up! 🚨</h3><p>Once you&#39;ve finished testing the redaction flow, delete the resources you provisioned to <strong>avoid incurring charges</strong>. You can destroy everything with a single command:</p><pre>cdk destroy</pre><p>This removes:</p><ul><li>The S3 bucket and objects (if autoDeleteObjects: true)</li><li>Lambda function and associated roles</li><li>S3 Access Point</li><li>S3 Object Lambda Access Point</li><li>IAM policies</li></ul><blockquote>⚠️ Note: Since we are using CDK and logRetention, the log events inside CloudWatch log groups will expire automatically after the retention period (7 days). However, the log groups themselves are not deleted by default. To clean them up completely, you can use AWS CLI / AWS Console to delete all log groups with specific project tag.</blockquote><h3>References</h3><ul><li>Full source code available on GitHub: <a href="https://github.com/anish-u/pii-redaction-with-object-lambda">https://github.com/anish-u/pii-redaction-with-object-lambda</a></li><li><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html?source=post_page-----3f01133d9d18---------------------------------------">https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html?source=post_page-----3f01133d9d18---------------------------------------</a></li><li><a href="https://medium.com/@nirmalmaheshs/transforming-data-on-the-fly-with-s3-object-lambda-access-points-5551117501c0">https://medium.com/@nirmalmaheshs/transforming-data-on-the-fly-with-s3-object-lambda-access-points-5551117501c0</a></li><li><a href="https://platform.qa.com/lab/transforming-objects-with-s3-object-lambda/">https://platform.qa.com/lab/transforming-objects-with-s3-object-lambda/</a></li><li><a href="https://aws.plainenglish.io/151-what-is-s3-object-lambda-access-point-aa341c841a7e">https://aws.plainenglish.io/151-what-is-s3-object-lambda-access-point-aa341c841a7e</a></li><li><a href="https://www.bitslovers.com/object-lambda-access-point/">https://www.bitslovers.com/object-lambda-access-point/</a></li></ul><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/@InPlainEnglish"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a> | <a href="https://twitch.tv/inplainenglish"><strong>Twitch</strong></a></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76107d6210a7" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/redacting-sensitive-data-on-the-fly-with-s3-object-lambda-76107d6210a7">Redacting Sensitive Data On-the-Fly with S3 Object Lambda</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>