<?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 Felix Mulei on Medium]]></title>
        <description><![CDATA[Stories by Felix Mulei on Medium]]></description>
        <link>https://medium.com/@muleif?source=rss-bd11f7e09424------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Felix Mulei on Medium</title>
            <link>https://medium.com/@muleif?source=rss-bd11f7e09424------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:29:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muleif/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[Reinventing Data in the Cloud: Key Innovations and Breakthroughs from re: Invent 2025]]></title>
            <link>https://muleif.medium.com/reinventing-data-in-the-cloud-key-innovations-and-breakthroughs-from-re-invent-2025-faf7f93bfd95?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/faf7f93bfd95</guid>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 05:53:13 GMT</pubDate>
            <atom:updated>2026-01-05T05:53:13.458Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*aKXxtNpgn5GpCTqsC5tcog.png" /></figure><p>AWS re: Invent 2025 was one of the most impactful events yet for data professionals. While much of the spotlight focused on AI and autonomous applications, AWS also delivered a suite of data-centric innovations that redefine how we store, process, analyse and integrate data across the cloud stack.</p><p>In this article, we’ll explore the key announcements, real-world customer use cases, practical examples, and modern architecture patterns that highlight AWS’s data strategy going into 2026.</p><h3>1. Reimagining Data Storage: Amazon S3 Vectors</h3><p>One of the most anticipated data announcements was the General Availability of Amazon S3 Vectors, a innnovative feature that brings native vector support directly into Amazon S3, the backbone of AWS storage.</p><h4>What It Is</h4><p>S3 Vectors enables you to store, index, and query vector embeddings natively in S3. Vectors, numerical representations of text, images, and other unstructured data, are essential for generative AI, semantic search, personalisation, and recommendation systems.</p><h4>Key Highlights</h4><ul><li>Support for up to 2 billion vectors per index and 20 trillion vectors per bucket.</li><li>2–3 times faster query performance with up to 90% cost savings compared to standalone vector databases.</li><li>Deep integration with Amazon Bedrock Knowledge Bases and OpenSearch for scalable RAG (Retrieval-Augmented Generation) architectures.</li></ul><h4>Getting Started with s3 Vectors</h4><p>create a vector bucket:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aywl68NNaJp0EiNmh9fYTg.png" /></figure><p>Create a vector index:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vXfMhx9Mzesw3jMBcFDLTg.png" /></figure><pre>import boto3<br>import numpy as np<br><br>s3 = boto3.client(&quot;s3&quot;)<br>vector_index = boto3.client(&quot;s3vectors&quot;)<br># using an already created an S3 bucket<br>bucket = &quot;my-data-vectors&quot;<br>vectors = np.random.rand(1000, 768)  # Sample vector embeddings<br># Example upload<br>for idx, vec in enumerate(vectors):<br>    vector_index.put_vector(<br>        Bucket=bucket,<br>        IndexName=&quot;semantic-search&quot;,<br>        VectorId=str(idx),<br>        Vector=vec.tolist()<br>    )</pre><p>Uploading Embeddings to Amazon S3 Vectors (Python). This snippet showcases how you can start storing vector embeddings in S3, which can then be consumed by RAG pipelines or AI applications.</p><p>This transforms S3 from simple object storage into a data infrastructure layer for AI applications. Instead of managing a separate vector database, teams can leverage a familiar storage tier that scales with existing data workflows.</p><h3>2. Simplifying Big Data Analytics: EMR Serverless Without Local Storage</h3><p>AWS also announced enhancements to Amazon EMR Serverless, which eliminates the need to provision local storage manually for Spark workloads, a common operational burden in big data processing.</p><h4>What’s New</h4><ul><li>Automatic scaling and management of shuffle storage for Spark jobs.</li><li>Reduces setup complexity and improves reliability for data engineering pipelines.</li><li>Can cut data processing costs by up to 20% by optimising storage utilisation.</li></ul><p>This is especially beneficial when running large ETL jobs or streaming analytics without managing underlying storage tiers.</p><h4>Getting started with EMR Serverless Spark Job</h4><pre>Name: SparkETLJob<br>ReleaseLabel: emr-6.13.0<br>ExecutionRoleArn: arn:aws:iam::123456789012:role/EMRServerlessRole<br>JobDriver:<br>  SparkSubmit:<br>    EntryPoint: s3://my-scripts/etl.py<br>    SparkSubmitParameters: &quot;--conf spark.executor.memory=4G --conf spark.executor.cores=2&quot;</pre><p>EMR Serverless Spark Job (YAML). With EMR Serverless, you no longer need to manage local storage sizes manually, the service handles scaling and shuffle storage behind the scenes.</p><h4>Cost Optimisation: Database Savings Plans</h4><p>AWS introduced Database Savings Plans, a long-requested pricing model that reduces database costs by up to 35% with a one-year usage commitment.</p><p>Instead of paying full on-demand pricing, customers commit to a consistent hourly spend and receive automatic discounts across eligible AWS database services. This model benefits both provisioned and serverless databases, supporting flexibility without sacrificing savings.</p><p>Early adopters like SmugMug and Vanguard have already started realising cost reductions with these plans.</p><h3>4. Privacy- First Collaboration: AWS Clean Rooms</h3><p>AWS Clean Rooms launched a privacy-enhancing dataset generation feature that enables teams to build synthetic datasets for ML model training while protecting individual privacy.</p><h4>Use Case:</h4><p>Multiple parties, such as retailers and brands, can collaborate on shared insights without ever exposing raw data, thanks to synthetic data generation and configurable noise mechanisms.</p><h3>5. Real-World Use Cases: AWS Customers Leveraging New Data Services</h3><h4>BMW Group: Semantic Search at Scale</h4><p>BMW uses <strong>S3 Vectors</strong> for semantic search across massive engineering datasets, enabling RAG-driven assistance tools for design and simulation workflows. Early results include faster retrieval and reduced infrastructure costs compared to separate vector databases.</p><h4>Twilio: AI-Powered Customer Experiences</h4><p>Twilio engineers integrated S3 Vectors with Bedrock Knowledge Bases to power conversational AI features, boosting throughput and relevance of responses in real-time messaging applications.</p><h4>Sony: AI at Massive Scale</h4><p>Sony’s enterprise platform processes hundreds of thousands of AI requests per day, tapping into AWS’s storage and generative AI stack to scale content creation and internal workflows. While not purely a data story, it underscores how data foundations like vector stores feed AI demand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIferFBwScNC-rsoptzbFg.png" /><figcaption>re: Invent 2025</figcaption></figure><p>AWS re:Invent 2025 wasn’t just about generative AI or compute horsepower. It was a watershed moment for data infrastructure. By embedding advanced data capabilities like vector storage in S3, simplifying big data workflows with serverless compute, and providing smarter cost and governance tools, AWS is enabling organizations to build scalable, cost-efficient, and future-ready data platforms.</p><p>Thank you!</p><p><a href="https://www.linkedin.com/in/felixmulei/">Let’s connect on LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faf7f93bfd95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding AWS Glue Networking: What AWS Glue Errors Don’t Tell You About RDS Connectivity]]></title>
            <link>https://muleif.medium.com/understanding-aws-glue-networking-what-aws-glue-errors-dont-tell-you-about-rds-connectivity-ef2f3ab38afb?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef2f3ab38afb</guid>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 07:02:14 GMT</pubDate>
            <atom:updated>2026-01-02T07:02:14.126Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*frqaQj7Xhnr3tIUGhtglXQ.jpeg" /></figure><p><em>A practical guide to fixing networking and JDBC failures.</em></p><p>Setting up AWS Glue to read data from Amazon RDS looks simple on paper — create a connection, test it, and start crawling or running jobs. In reality, many engineers hit vague errors that don’t clearly explain what’s wrong.</p><p>In this article, I’ll walk through a real Glue + Rand RDS troubleshooting scenario, including the errors encountered, the reasons behind them, and how I resolved them.</p><h3>Architecture Overview</h3><p>The setup was straightforward:</p><ul><li>AWS Glue as the data integration service</li><li>Amazon RDS (PostgreSQL / MySQL) as the data source</li><li>Glue Connection (JDBC) to allow Glue jobs and crawlers to connect to RDS</li><li>Glue running inside a VPC using private subnets.</li></ul><p>Despite everything looking “correct” in the console, the connection test kept failing.</p><h3>Error #1: Networking Error — Network Failure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*ZDFAE1ENUyHGPTEFacmepQ.png" /></figure><blockquote><strong><em>NetworkingError: Network Failure</em></strong></blockquote><p>This error is frustrating because it doesn’t mention security groups, ports, or routing — it simply tells you <em>something</em> in the network path is broken.</p><h3>Root Cause</h3><p>AWS Glue runs its jobs inside Elastic Network Interfaces (ENIs) that it creates in your selected subnets. These ENIs must be able to:</p><ul><li>Reach the RDS endpoint</li><li>Communicate freely over required ports during connection setup</li></ul><p>In this case, the Glue security group had very restrictive outbound rules, allowing only a small port range. Glue internally uses ephemeral ports when establishing JDBC connections. Blocking these ports can cause silent network failures.</p><h3>The Fix</h3><p>The issue was resolved by updating the Glue security group outbound rules:</p><ul><li>Allowed all outbound traffic: explicitly allowed port range 0–65535</li></ul><p>After opening the full port range, the Networking Error disappeared. AWS Glue does not only use the database port (e.g., 5432 or 3306). It also creates ephemeral ports for:</p><ul><li>TCP handshakes</li><li>Connection retries</li><li>Driver-level communication</li></ul><p>Restricting outbound ports often breaks Glue in non-obvious ways.</p><h3>Error #2: Failed to Test Connection — JDBC FAILED Status</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*zw4P_GbKMOjv87EU2UCpMQ.png" /></figure><blockquote><strong><em>Failed to test connection </em></strong><strong><em>staging-jdbc-connection due to FAILED status</em></strong></blockquote><p>At this point, networking looked fine — but Glue still couldn’t connect.</p><h3>Root Cause</h3><p>This time, the problem was on the RDS side.</p><p>The RDS security group did not allow inbound traffic from the Glue security group. Even though Glue could now send traffic out, RDS was simply rejecting it.</p><p>This is a very common mistake when setting up Glue connections.</p><h3>The Fix</h3><p>On the RDS security group, an inbound rule was added:</p><ul><li>Type: PostgreSQL / MySQL (depending on engine)</li><li>Port: 5432 / 3306</li><li>Source: Glue security group (not CIDR)</li></ul><pre> ingress {<br>    from_port       = 5432<br>    to_port         = 5432<br>    protocol        = &quot;tcp&quot;<br>    security_groups = [&quot;sg-0be43bb93ac474727&quot;]<br>    description     = &quot;Allow PostgreSQL access from sg-0be43bb93ac474727&quot;<br>  }</pre><p>Once RDS explicitly allowed traffic from Glue, the JDBC connection test succeeded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OyfE2e5nULJqJ4Z8gIzDsg.png" /></figure><h4>Best Practice Tip</h4><p>Always reference security groups, not IP ranges, when allowing traffic between AWS services. Glue ENIs use dynamic IPs, so CIDR-based rules will eventually fail.</p><h3>End-to-End Checklist for Glue → RDS Connectivity</h3><p>Before testing a Glue JDBC connection, verify the following:</p><h4>1. VPC &amp; Subnets</h4><ul><li>Glue and RDS are in the same VPC (or connected via peering / TGW)</li><li>Subnets have proper route tables</li></ul><h4>2. Glue Security Group</h4><ul><li>Outbound traffic allowed (preferably 0–65535)</li><li>No overly restrictive egress rules</li></ul><h4>3. RDS Security Group</h4><ul><li>Inbound rule allows traffic from Glue security group</li><li>Correct database port is open</li></ul><h4>4. JDBC Configuration</h4><ul><li>Correct JDBC URL</li><li>Valid username and password</li><li>Database parameter group allows connections</li></ul><p><strong>Why These Errors Are So Common:</strong> AWS Glue abstracts away infrastructure, but networking is still your responsibility. The Glue console error messages don’t always point you directly to: Security group misconfigurations, Port range issues and One-way network access problems</p><p>Understanding how Glue creates ENIs and communicates over JDBC makes troubleshooting much faster.</p><p>Most AWS Glue “mystery failures” aren’t caused by bad JDBC URLs or broken services. They’re caused by invisible networking assumptions.</p><p>Glue runs inside your VPC, creates ENIs on the fly, and behaves like any other distributed compute service. If outbound ports are restricted or security groups aren’t explicitly allowed, Glue fails — often with errors that don’t clearly point to the real issue.</p><p>In this case, two small misconfigurations caused hours of confusion:</p><ul><li>Restrictive outbound port rules on the Glue security group</li><li>Missing inbound rules on the RDS security group</li></ul><p>Once those were fixed, everything else <em>just worked</em>.</p><p>The real lesson here isn’t about Glue — it’s about treating serverless services with the same networking discipline as EC2. When you understand how traffic flows between managed services, troubleshooting stops being guesswork and becomes a repeatable process.</p><p>If you’re building data pipelines on AWS, mastering these fundamentals will save you time, cost, and frustration — long before your first Spark job ever runs.</p><p>Thank you!</p><p><a href="https://www.linkedin.com/in/felixmulei/">Let’s connect on LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef2f3ab38afb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of Secure Data Collaboration: AWS Clean Rooms 2024 Breakthroughs]]></title>
            <link>https://muleif.medium.com/the-future-of-secure-data-collaboration-aws-clean-rooms-2024-breakthroughs-185266146b4c?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/185266146b4c</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-data-engineering]]></category>
            <category><![CDATA[aws-data-analytics]]></category>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 16:41:58 GMT</pubDate>
            <atom:updated>2025-02-21T16:41:58.068Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K99yXjtG9chjHTbW--NieA.jpeg" /></figure><p>Imagine a magical room where you can analyse data from multiple sources without seeing or sharing the raw data. A room where the collaboration of raw data is secure and never revealed. This is the promise of AWS Clean Rooms — a cutting-edge solution enabling secure data collaboration without compromising privacy.</p><h3>Challenges solved by AWS clean rooms</h3><p>Data collaboration is crucial in today’s digital economy. Companies often possess valuable datasets that, when combined with data from other organizations, can unlock transformative insights. However, traditional data-sharing methods pose significant challenges:</p><ul><li><strong>Privacy Risks</strong>: Sharing raw data increases the risk of exposing sensitive information.</li><li><strong>Regulatory Compliance</strong>: Stricter data protection regulations make it harder for companies to share data without breaching legal frameworks.</li><li><strong>Data Governance</strong>: Maintaining control over proprietary information while collaborating is complex.</li></ul><p>AWS Clean Rooms addresses these challenges by allowing organizations to collaborate on datasets without ever exposing or sharing the underlying raw data. For example, Company A and Company B can securely analyze combined data to identify mutual customers or optimize marketing strategies — all while ensuring customer privacy remains intact.</p><p>By leveraging AWS Clean Rooms, businesses can unlock valuable insights while maintaining full control over their sensitive data, opening the door to new opportunities without compromising compliance or security.</p><h3>AWS clean rooms capabilities — re:Invent 2024</h3><p>At AWS re:Invent 2024, several exciting advancements in AWS Clean Rooms were unveiled, enhancing its capabilities and usability:</p><ul><li><strong>Enhanced Query Controls</strong>: Fine-grained query management allows users to define who can query data, what can be queried, and how results are presented, ensuring no sensitive data is revealed.</li><li><strong>Multi-Party Collaboration</strong>: Support for multi-party clean rooms enables up to five organizations to securely collaborate within a single clean room.</li><li><strong>Entity Resolution</strong>: Advanced entity resolution capabilities allow businesses to match and link records across datasets without revealing identifiable information, enhancing collaboration accuracy.</li><li><strong>Cross-Cloud Collaboration</strong>: AWS Clean Rooms now supports secure collaboration on data originating from different cloud providers, allowing organizations to analyze and derive insights without data migration.</li><li><strong>Automated Data Transformation</strong>: Built-in tools to standardize and anonymize datasets before collaboration to further protect data privacy.</li><li><strong>Machine Learning Insights</strong>: Integration with AWS SageMaker enables participants to run advanced analytics and machine learning models without exposing raw data.</li><li><strong>Audit and Compliance Monitoring</strong>: Real-time logging and detailed reports ensure transparency and facilitate compliance with industry regulations.</li></ul><h3>Querying using analysis rules</h3><p>AWS Clean Rooms offers three types of analysis rules for querying data securely:</p><ul><li><strong>Aggregation</strong>: Perform statistical analysis like sum, average, or count without revealing individual data points.</li><li><strong>List</strong>: Retrieve specific lists of identifiers that match agreed-upon criteria while preserving privacy.</li><li><strong>Custom</strong>: Define advanced and tailored query logic to suit unique collaboration needs while adhering to privacy controls.</li></ul><p>These querying rules are essential because they enforce strict privacy controls while enabling valuable insights. They ensure sensitive data remains protected by defining what can be queried and how results are presented. This approach allows organisations to analyse combined datasets while complying with privacy regulations and maintaining control over their proprietary information. By supporting flexible query types, AWS Clean Rooms enables precise, secure, and collaborative data analysis without exposing raw data.</p><h3>Getting started with AWS clean rooms</h3><ol><li>Create a collaboration</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-BG3ot7Y1JsC02HGhOVRw.png" /></figure><p>2. Add members of the collaboration and specify their capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3yG2HusihW9rXhHSawinnQ.png" /></figure><p>3. Define who will pay for running the queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jyFJM6umrwtgqYSfCRrutA.png" /></figure><p>4. Set up the query results destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekrl0au-kRmRhxFCdGTRsQ.png" /></figure><p>5. Review and create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2tQ38zyqI5JBa-cSQ0r4A.png" /></figure><h3>Real-life use cases of AWS clean rooms</h3><p>Organisations across industries are already using AWS Clean Rooms to unlock value from secure data collaboration. Some compelling use cases include.</p><p><strong>Retail and Marketing:</strong> Retailers and advertisers collaborate to analyse purchasing behaviour and optimise marketing campaigns. By leveraging AWS Clean Rooms, they can identify shared customers and deliver personalised experiences without exchanging sensitive data.</p><p><strong>Healthcare and Life Sciences: </strong>Pharmaceutical companies and research institutions can collaborate on clinical trial data while ensuring patient confidentiality. This enables accelerated drug discovery and improved patient outcomes without violating privacy regulations.</p><p><strong>Financial Services:</strong> Banks and financial institutions use clean rooms to detect fraud patterns and assess credit risks by securely combining transaction data without exposing customer identities.</p><p><strong>Media and Entertainment:</strong> Media companies collaborate with advertisers to measure audience engagement and improve ad targeting without sharing raw viewer data.</p><p>AWS Clean Rooms represents a transformative leap in secure data collaboration. By enabling organisations to derive valuable insights while preserving privacy and control, AWS is paving the way for innovations and partnerships across industries. As data collaboration evolves, AWS Clean Rooms will continue to be a cornerstone for companies seeking to unlock the full potential of their data without compromising security or compliance.</p><p>Thank you!</p><p><a href="https://www.linkedin.com/in/felixmulei/">Let’s connect on LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=185266146b4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Querying DynamoDB with Amazon Athena: A Serverless Analytics Workflow]]></title>
            <link>https://awstip.com/querying-dynamodb-with-amazon-athena-a-serverless-analytics-workflow-5e1df087ba67?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e1df087ba67</guid>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Fri, 03 Jan 2025 07:34:46 GMT</pubDate>
            <atom:updated>2025-01-07T17:02:22.863Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zcl6re19QN-5nNj8fqbRQw.png" /><figcaption>Serverless Analytics Architecture</figcaption></figure><p>Amazon Athena is typically seen as the go-to tool for querying data stored in Amazon S3, but what if you could query your DynamoDB data with it as well? While it might seem impossible at first glance, there’s a serverless analytics workflow that makes it happen.</p><h4><strong>The value of using a serverless approach for analytics:</strong></h4><p>Serverless computing removes the complexity of managing infrastructure, allowing you to focus purely on data analysis. With Athena, you don’t need to worry about provisioning servers, managing clusters, or scaling up your resources. You only pay for the queries you run, making it a cost-effective solution for running large-scale analytics workloads without upfront costs or long-term commitments.</p><h3><strong>Architecture Overview</strong></h3><p>To leverage the AWS’s ecosystem in a serverless fashion, we will integrate Athena with:</p><p><strong>AWS DynamoDB</strong></p><p>DynamoDB serves as the source where the data resides. Data could include logs, user activity, transaction details, etc., that are constantly being written and updated. DynamoDB is often chosen for its ability to handle high-velocity data and large-scale applications, but querying the data traditionally can be limiting for analytical needs.</p><p><strong>AWS Glue</strong></p><p>A fully managed ETL (extract, transform, load) service that simplifies data preparation for analytics.</p><p>The <strong>Glue Crawler</strong> is a tool that automatically scans data sources (like DynamoDB) and infers the schema of the data. When you set up a Glue Crawler for DynamoDB, it scans the tables and identifies the data types, attributes, and structure, and then creates a corresponding <strong>Glue Table</strong> in the Glue Data Catalog.</p><p>Glue Data Catalog — Once the schema is discovered by the crawler, it’s stored in the <strong>Glue Data Catalog</strong>. The Glue Data Catalog acts as a central metadata repository where all of the database, table, and column definitions are stored. This metadata is crucial for Athena to understand how to query the data, even though it’s stored in DynamoDB.</p><p><strong>AWS lambda — Athena DynamoDB connector</strong></p><p>Enables the data in DynamoDB to be accessed by Athena — making it easy to process DynamoDB data and pass it through Glue’s catalog, where Athena can then query it. Athena DynamoDB connector runs in a pre-built, serverless AWS lambda Function, you don’t need to write any code.</p><p>This set up is particularly valuable when working with diverse data sources, such as DynamoDB, where the sheer volume of data might overwhelm traditional query methods.</p><h3>Let’s walk through how to set up this serverless analytics workflow step by step:</h3><ol><li><strong>Set up the Athena DynamoDB connector</strong></li></ol><p>On the Athena console, choose Data sources, create data source, select DynamoDB as the data source. Under connection details — create lambda function. Navigate to the SAR (Serverless Application Repository) tab and go to application setting. Set up a spill bucket — to store response data from the lambda function and the AthenaCatlogName the Deploy. Under connection details in the Athena data creation tab refresh and select the lambda function you created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsmTYyIrry_zMLD-Niw03w.png" /></figure><p><strong>2. Create Glue Database</strong></p><p>Navigate to the <strong>Databases</strong> section under <strong>Data Catalog</strong> in the AWS Glue console. Click <strong>Add database</strong> (or edit an existing one). Enter a name for the database, and set the <strong>Location</strong> to the string literal dynamo-db-flag, which indicates the database contains tables for supplemental metadata. Finally, click <strong>Create database</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5E7y6KAbdlwfnQ_u1RCAlg.png" /></figure><p><strong>3. Create the AWS Glue Crawler</strong></p><p>Go to the <strong>Crawlers</strong> section under <strong>Data Catalog</strong> in the AWS Glue console and click <strong>Create crawler</strong>. Enter a name for the crawler and click <strong>Next</strong>. Add a data source, select <strong>DynamoDB</strong> as the source, and specify your DynamoDB table name. Click <strong>Add a DynamoDB data source</strong> and proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gExXIsyRhRiD3tAO1z1Mw.png" /></figure><p>For the IAM role, select <strong>Create new IAM role</strong>, enter a name, and let AWS Glue create it. Select the target database you created earlier, review the details, and click <strong>Create crawler</strong>. Finally, on the crawler page, click <strong>Run crawler</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPFlNjGSqndht43kt7YIeg.png" /></figure><p><strong>4. Test the connector with Athena SQL editor</strong></p><ul><li>Open the Athena query editor.</li><li>If this is your first visit in the current AWS Region, set up a query result location in Amazon S3 by navigating to Settings and choosing Manage.</li><li>Under Data, select the data source and database you created (refresh if needed).</li><li>The tables in the selected database will appear under Tables. Select a table to view its columns and data types.</li><li>Run a <strong>SELECT</strong> query in the editor to test the connector. Use the format &lt;datasource_name&gt;.&lt;database&gt;.&lt;table_name&gt;</li></ul><pre>SELECT * FROM dynamodb_db.example2db;</pre><p>to reference your data. Retrieved records will display below the query editor.</p><h3>Challenges and Considerations</h3><p>While the workflow is powerful, there are some challenges to keep in mind:</p><ul><li><strong>DynamoDB Schema Limitations</strong>: DynamoDB’s schema-less nature can complicate SQL-like querying. Ensure a well-structured Glue Data Catalog schema to mitigate this.</li><li><strong>Lambda Function Timeout</strong>: Large datasets may exceed Lambda’s execution time or memory limits. Use pagination or partitioned queries to handle these constraints.</li><li><strong>Glue Crawler Schema Changes</strong>: Updates in DynamoDB table structures may not automatically reflect in Athena. Regularly rerun the Glue Crawler to refresh the schema.</li></ul><p>This serverless analytics workflow demonstrates how to seamlessly integrate Athena with DynamoDB for scalable, cost-effective data analysis. By leveraging services like Glue and Lambda, you can query DynamoDB data using familiar SQL syntax, unlocking valuable insights without traditional infrastructure complexities.</p><p>Ready to transform your analytics? Explore AWS’s serverless tools today. Check out the <a href="https://docs.aws.amazon.com/athena/latest/ug/connectors-dynamodb.html">AWS DynamoDB Connector documentation</a>, <a href="https://docs.aws.amazon.com/glue/latest/dg/getting-started.html">AWS Glue tutorials</a>, and <a href="https://docs.aws.amazon.com/athena/latest/ug/athena-console.html">Athena Query Editor</a> to get started.</p><p>Thank you!</p><p><a href="https://www.linkedin.com/in/felixmulei/">Let’s connect on LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e1df087ba67" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/querying-dynamodb-with-amazon-athena-a-serverless-analytics-workflow-5e1df087ba67">Querying DynamoDB with Amazon Athena: A Serverless Analytics Workflow</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Iceberg Tables for S3: Real-Time Data Insights]]></title>
            <link>https://awstip.com/iceberg-tables-for-s3-real-time-data-insights-861d73d6dd8e?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/861d73d6dd8e</guid>
            <category><![CDATA[aws-glue]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-data-engineering]]></category>
            <category><![CDATA[aws-data-lake]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Thu, 02 Jan 2025 13:33:13 GMT</pubDate>
            <atom:updated>2025-01-03T17:53:20.952Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z2L5WAmWLSUAvwB9gOIaPw.jpeg" /></figure><p>Managing massive datasets for real-time analytics has always been a challenge for businesses. At AWS re:Invent 2024, AWS unveiled Iceberg Tables for S3, a groundbreaking solution designed to deliver real-time insights while maintaining scalability and flexibility. In this article, we’ll explore how Iceberg Tables integrate with AWS Lake Formation and other services, empowering businesses with next-generation analytics capabilities.</p><h3><strong>What are Iceberg Tables for S3?</strong></h3><p>Iceberg Tables are a new way to organize and query data stored in Amazon S3. Built on the Apache Iceberg open table format, this technology allows for seamless interaction with massive datasets while ensuring high performance and reliability. Unlike traditional methods of querying S3, Iceberg Tables offer features that particularly make them valuable for real-time data processing and analytics. These features include:</p><p><strong>Schema revolution: </strong>Manage changes to the schema without downtime or manual migrations</p><p><strong>ACID Compliance:</strong> Ensure data integrity for concurrent operations</p><p><strong>Partition Pruning: </strong>Optimize queries by only accessing relevant partitions</p><h3>Iceberg Tables for S3: Key features</h3><ol><li><strong>Real-Time analytics : </strong>Iceberg tables ensure real-time analytics by supporting incremental updates. Changes to the dataset such as updates, deletes, are immediately reflected ensuring that analytics workloads always operate on the latest data</li><li><strong>Integration with AWS Lake Formation: </strong>By Integrating with AWS Lake Formation, Iceberg Tables benefit from enhanced security and governance. Lake formation simplifies permission management and ensures fine-grained access control at the column, row, and even cell level. It also grants temporary access to integrated services like Amazon Athena and Amazon EMR. Tracking access and operations is done through CloudTrail.</li><li><strong>Seamless Integration with other AWS services:</strong> Iceberg Tables are fully integrated with AWS analytics and machine learning services, including: Amazon Athena - query iceberg tables directly using SQL, AWS Glue - automate data cataloging and transformations, Amazon EMR - Scale analytics with distributed computing frameworks like Apache Spark.</li></ol><h3><strong>Getting Started:</strong></h3><p><strong>Environment startup:</strong></p><p>1. <strong>Create an S3 bucket for data storage</strong></p><p><strong>2. Enable AWS Glue Data Catalog</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z5Jtv3SGjGX-28TuyKt35w.png" /></figure><p><strong>3. Set up permissions for the necessary AWS services.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9FP3pXJcLDxKYzPuZ2ljkQ.png" /></figure><p><strong>4. Create an Iceberg table</strong></p><p>Create<strong> </strong>your<strong> Iceberg table</strong>, store it in the S3 bucket created earlier and register it in the Glue Data Catalog. You can define and create the Iceberg Table using SQL or API calls</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*siqk93EhvRvkW84aGaZCQA.png" /></figure><p><strong>5. Table Metadata</strong></p><p>Apache Iceberg relies on table metadata to manage features such as schema evolution, partitioning, and table properties. This metadata is stored in a central catalog, enabling consistent management of Iceberg tables.</p><p>In this demo, we are using <strong>AWS Glue Data Catalog</strong> as the metadata store. Athena automatically integrates with Glue for managing Iceberg tables.</p><p>Ensure that:</p><ul><li>Your Iceberg table is registered in the Glue Data Catalog.</li><li>The Glue Data Catalog is selected as the query catalog in Athena.</li></ul><p><strong>6. Query the Iceberg Table using Athena</strong></p><p>Once created, you can query the Iceberg table using SQL or a query engine API. Remember to set up a destination bucket for your query results (should be a different bucket, and in the same current region).</p><p>Example query in Athena:</p><pre>SELECT * FROM exampledb.exampletable1 LIMIT 10;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3zdm6FKh9d8eHne49T2QCA.png" /></figure><p>This basic setup will allow you to create and use an iceberg table on S3 and query it using AWS Athena. You can optimize Iceberg tables using Glue or a Spark job, ensuring better performance in Athena queries.</p><p><strong>Monitor Query Performance:</strong> use the Query history in the Athena console to monitor performance and costs. Optimize Iceberg table partitions if queries are slow or expensive.</p><p><strong>Cost Management:</strong> partition your iceberg table to reduce scan costs, then use Athena query result locations in s3 with a lifecycle policy to clean up old results.</p><h3>Iceberg Tables Use Cases</h3><h4>Real-Time Reporting</h4><p>Organizations can build dashboards that reflect the latest data, empowering decision-makers with up-to-date insights.</p><h4>Machine Learning Pipelines</h4><p>By enabling immediate access to updated datasets, Iceberg Tables streamline training and inference workflows for machine learning models.</p><h4>Event-Driven Architectures</h4><p>Combine Iceberg Tables with AWS Lambda or Amazon Kinesis for real-time event processing and insights.</p><h3>Why Iceberg Tables Matter</h3><p>Traditional data warehouses often struggle with the demands of real-time analytics due to high costs and latency issues. Iceberg Tables for S3 address these challenges by offering:</p><ul><li>Scalability: Handle petabyte-scale datasets with ease.</li><li>Flexibility: Support diverse analytics workloads without rearchitecting your storage.</li><li>Governance: Combine Iceberg’s advanced table format with Lake Formation’s fine-grained permissions.</li><li>Speed: Deliver insights in near real-time without compromising data integrity.</li></ul><p>Iceberg Tables for S3 mark a significant milestone in AWS’s mission to empower businesses with real-time data insights. By combining the scalability of Amazon S3 with the power of the Apache Iceberg format and the governance capabilities of AWS Lake Formation, this innovation opens new doors for analytics, machine learning, and data-driven decision-making.</p><p>Thank You!</p><p><a href="https://www.linkedin.com/in/felixmulei/">Let’s connect on LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=861d73d6dd8e" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/iceberg-tables-for-s3-real-time-data-insights-861d73d6dd8e">Iceberg Tables for S3: Real-Time Data Insights</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create an RDS Database in AWS using CDK for Python]]></title>
            <link>https://muleif.medium.com/how-to-create-an-rds-database-in-aws-using-cdk-for-python-a346d57e3e45?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/a346d57e3e45</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[cdk]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Fri, 10 Nov 2023 19:06:39 GMT</pubDate>
            <atom:updated>2023-11-10T19:06:39.761Z</atom:updated>
            <content:encoded><![CDATA[<p>In the <a href="https://muleif.medium.com/vpc-peering-and-deploying-a-web-server-using-aws-cdk-for-python-767c9a05a831">previous demo</a>, we created a custom VPC and established a vpc peering using AWS CDK for python. Today we will be creating an RDS database and connect it to remotely from the terminal remotely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjuwM_-gucX-xFHg8Byp8g.png" /></figure><p>The first step is to create a directory you will be working from and then initiate the application.</p><pre>cdk init app --language python</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*wMCXRaVYf96CR0huFQKf0A.png" /></figure><p>Now you can create your custom VPC in which you will be creating the database in. (This code is similar to the one in the <a href="https://muleif.medium.com/vpc-peering-and-deploying-a-web-server-using-aws-cdk-for-python-767c9a05a831">previous project</a>.</p><pre>       custom_vpc = ec2.Vpc(<br>            self, &quot;customvpc&quot;,<br>            ip_addresses= ec2.IpAddresses.cidr(Prod_configs[&#39;vpc_config&#39;][&#39;vpc_cidr&#39;]),<br>            max_azs= 2,<br>            subnet_configuration=[<br>                ec2.SubnetConfiguration(<br>                    name=&quot;PublicSubnet&quot;, cidr_mask=Prod_configs[&quot;vpc_config&quot;][&quot;cidr_mask&quot;], subnet_type=ec2.SubnetType.PUBLIC<br>                ),<br>                ec2.SubnetConfiguration(<br>                    name=&quot;PrivateSubnet&quot;, cidr_mask=Prod_configs[&quot;vpc_config&quot;][&quot;cidr_mask&quot;], subnet_type=ec2.SubnetType.PRIVATE_ISOLATED<br>                ),<br>            ])</pre><p>After creating the VPC, now it&#39;s time to create the database. The database engine will be MySQL (but you can use any other engine). Because of testing connection remotely, the database should be in the public subnet (Not the best practice because of security). No multi-az and deletion protection will be disabled in our case (In production should be different). The database password will be auto generated and stored in the secrets manager. Here is the code</p><pre>        #Create an RDS Database<br>        myDB = rds.DatabaseInstance(self, <br>                                    &quot;MyDatabase&quot;,<br>                                    engine= rds.DatabaseInstanceEngine.MYSQL,<br>                                    vpc= custom_vpc,<br>                                    vpc_subnets= ec2.SubnetSelection(<br>                                        subnet_type= ec2.SubnetType.PUBLIC,<br>                                    ),<br>                                    credentials= rds.Credentials.from_generated_secret(&quot;Admin&quot;),<br>                                    instance_type= ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3,<br>                                                                       ec2.InstanceSize.MICRO),<br>                                    port= 3306,<br>                                    allocated_storage= 80,<br>                                    multi_az= False,<br>                                    removal_policy= remove.DESTROY,<br>                                    deletion_protection= False,<br>                                    publicly_accessible= True<br>                                    )</pre><p>To allow remote connectivity, we need to open port 3306. In this demo I&#39;m opening from all ipv addresses.</p><pre>        myDB.connections.allow_from_any_ipv4(<br>            ec2.Port.tcp(3306),<br>            description= &quot;Open port for connection&quot;<br>        )</pre><p>Last, we can request for the database endpoint.</p><pre>        CfnOutput(self, <br>                  &quot;db_endpoint&quot;,<br>                  value= myDB.db_instance_endpoint_address)</pre><p>Now that the code is ready, you can bootstrap the environment.</p><pre>cdk bootstrap</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jshnk3Ek40qWrvWU2yR-Eg.png" /></figure><p>The environment is ready. Next is the deployment</p><pre>cdk deploy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lS_ZA8Hf2upgK40givKYog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEE15XvVSJBDk-6uQ0E0xA.png" /></figure><p>Everything is done. Here is the secrets manager with our credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9f3pZnQVOyWBpvzMGgIx7w.png" /></figure><p>Now we can now test connectivity to the database.</p><pre>mysql -u Admin -h rdsstack-mydatabase1e2517db-gmgf5rgagc7t.cuzfhplb4dbn.eu-west-2.rds.amazonaws.com -p</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uemWgumpz5aPKh5JDzgy8A.png" /></figure><p>Everthing is working well. So, we have managed to create a database using CDK for python and tested the connectivity.</p><p>Thank you.</p><p>Here is the <a href="https://github.com/muleif/cdkpython_rds.git">GITHUB REPO</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a346d57e3e45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VPC peering and Deploying a Web Server using AWS CDK for Python]]></title>
            <link>https://muleif.medium.com/vpc-peering-and-deploying-a-web-server-using-aws-cdk-for-python-767c9a05a831?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/767c9a05a831</guid>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Thu, 26 Oct 2023 19:40:20 GMT</pubDate>
            <atom:updated>2023-10-27T05:34:33.552Z</atom:updated>
            <content:encoded><![CDATA[<p>I will be guiding you through the process of creating a Virtual Private Cloud (VPC), setting up VPC peering connection, and launching a web server within a VPC using AWS CDK for Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKp8UdoUv-U5p7rokm_xdw.png" /></figure><p>To get started will open an empty folder/directly and initialize an app using the following CDK command</p><p>I have attached a GitHub repository link at the bottom of the article for your reference.</p><pre>cdk init app --language python</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*KEQks4OEZTN_-BKOQ8HsBA.png" /></figure><p>Once the files have been downloaded, activate the virtual environment. This is a good practice when working with Python to isolate and manage dependencies for different projects. I’m working on windows thus I will run the following command.</p><pre>./.venv/Scripts/Activate.ps1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*Yo6z4w0YiupTTeABbYu7YA.png" /></figure><p>Now on the folder structure on the left look for the folder that has a similar name as the folder you working in. Expand and open the with the name similar to the folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*2PNy_kobay7tB37_yOnBDg.png" /></figure><p>As you can see we missing some modules and thus we need to install them. Run the following command.</p><pre>pip install -r requirements.txt</pre><p>Once done, now lets start creating our resources. We will be starting with the VPC. For this to happen we need to import the ec2 construct library.</p><pre>from aws_cdk import aws_ec2 as ec2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*XeYxBDagud4jYzVWbnZGfA.png" /></figure><p>Now we can start to use to create our resources. Just heads up, I usually use the cdk.json file to save my parameters to make my work neat and easy to make changes. Additional I use this files to customize my environment when doing multi-environment deployment. Here is a snapshot of what i have added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4dgKqTXV4mfvk96dnHuTgg.png" /></figure><p>Below is the VPC creation code. We will be creating a VPC with 2 public subnets and 2 private subnets. We will not create a NAT gateway as the private subnet doesn’t need access to the internet, We will utilize VPC peering to test access from the default VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F-0ztdunY7WnT42FP6Re5w.png" /></figure><p>Additionally, we will now import the default VPC from our AWS account on the region we working in to our stack for the purpose of VPC peering</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*jOXIg7wZP2b--XGob9hhBQ.png" /></figure><p>After importing the default VPC, now its time to establish a VPC peering connection from the custom VPC to the default VPC and the Modify the Route table to add the peering routes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nL5djZ1MQ6CBmEIz6wcq0g.png" /><figcaption>Peering Connection and modifying of the route tables</figcaption></figure><p>The last step would be to launch two EC2 instance; One in the default VPC Public Subnet and the other in the Private Subnet of the Custom VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xG9DNIl-aoDr6q7BuOr4Gw.png" /><figcaption>Private Instance in the custom VPC</figcaption></figure><p>For the Instance In the Public subnet, we will install a webserver. Here are the commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*ZIp0syMi1xDay2R6Q5qhBQ.png" /><figcaption>User data</figcaption></figure><p>For the instance in the public subnet, we will import the user data and then create the instance. This instance has a key pair as we will need to shh to test connection to the private instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-yV5nWRnuUs5KKcJnrXvg.png" /><figcaption>Public Instance</figcaption></figure><p>Now that we are done creating the instance, we need to open ports 22 and 80 for the public instance and ICMP for the private instance because of ping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*haUv6Sla5qP1Q0uy-Ak_Hg.png" /><figcaption>Allowing Traffic</figcaption></figure><p>Lasty, we will get the private IP address of our private instance and the Public instance when the creation is done using the following block of code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*6csnfaz0xnLUaPwtMWj3Uw.png" /><figcaption>Export the IP addresses of the instance to the console</figcaption></figure><p>Now that we are done, we can check if check if everything is Okay by running</p><pre>cdk ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*shb9kD2_Gvdc1vzpiWu_dA.png" /></figure><p>Everything seems to be working well. Its time to deploy by running</p><pre>cdk deploy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6RGmbrcfIQVqt1evUvSUA.png" /></figure><p>The resource creation is done. Lets test the webserver.</p><p>The web serving is working as expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*f3yM0cTTH-oaZQ9cS5luOg.png" /></figure><p>Shh to the public instance is also working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e-fLqmEOw7-CfzUPT7-JDA.png" /></figure><p>Lastly pinging the private instance from the webserver is also working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8rJbBh8OJ-26o_cwcXTug.png" /></figure><p>Here is the ec2 instance console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GKdhCtd34bFHwsLbHSnovw.png" /></figure><p>Lastly here is the route table of the private subnet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*KBCxxoIGfkiMBJeL4K39xQ.png" /></figure><p>Link to <a href="https://github.com/muleif/vpc-peering"><strong>GitHub repository.</strong></a></p><p>Thank you for your time</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=767c9a05a831" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aws DynamoDB]]></title>
            <link>https://muleif.medium.com/aws-dynamodb-9f4d986394ed?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f4d986394ed</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[dynamodb]]></category>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 14:46:26 GMT</pubDate>
            <atom:updated>2023-07-12T14:46:26.739Z</atom:updated>
            <content:encoded><![CDATA[<p>DynamoDB is a NoSQL, fully managed, key-value store database service provided by Amazon Web Services (AWS). It is designed to provide low-latency, high-throughput access to data stored in a distributed, highly available architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Vo5meC2vWR9-jqCm.png" /></figure><p>DynamoDB stores data in tables, which consist of a collection of items (rows) and attributes (columns). Each item in a table has a unique primary key, which can be either a simple key (e.g., a string or number) or a composite key (e.g., a combination of a partition key and a sort key).</p><p>DynamoDB supports two types of primary keys:</p><ul><li>Partition key (also known as a hash key) — a single attribute that is used to uniquely identify an item in a table.</li><li>Partition key and sort key (also known as a composite key) — two attributes that are used together to uniquely identify an item in a table.</li></ul><p>DynamoDB allows to perform operations such as:</p><ul><li>PutItem — creates a new item or replaces an existing item in a table.</li><li>GetItem — retrieves an item from a table by its primary key.</li><li>UpdateItem — modifies an existing item in a table.</li><li>DeleteItem — deletes an item from a table by its primary key.</li></ul><p>DynamoDB also provides a number of advanced features such as:</p><ul><li>Secondary indexes — allowing you to query data based on non-primary key attributes.</li><li>Streams — allowing you to capture changes to data in a table in real-time.</li><li>Auto Scaling — automatically adjust the provisioned throughput of a table based on the workload.</li></ul><p>DynamoDB is a highly scalable, highly available, and low-latency service that is well suited for use cases such as mobile, web, gaming, ad tech, IoT, and many other applications that require a flexible NoSQL database service.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f4d986394ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install MySQL on Amazon Linux 2023]]></title>
            <link>https://muleif.medium.com/how-to-install-mysql-on-amazon-linux-2023-5d39afa5bf11?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d39afa5bf11</guid>
            <category><![CDATA[mysql-8]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[mysql-server]]></category>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 14:08:16 GMT</pubDate>
            <atom:updated>2023-07-12T14:08:16.965Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SSUEmBr40QB1gjpO.jpg" /></figure><p>Since AWS introduced the new AMI, Amazon Linux 2023, a lot of us have been struggling with some installations including installing MySQL.</p><p>In this tutorial, I’m going to be show you how to go about installing MySQL in Amazon Linux 2023. The new AMI is based on Fedora and thus the commands that were previously executed in Amazon Linux 2 may not work.</p><h3>Prerequisites</h3><p>Before you can install MySQL, you will need to have the following prerequisites:</p><p>An Amazon Linux 2023 instance<br>A terminal window</p><p><strong>Creating an Ec2 Instance.</strong></p><p>On the AWS management console head over to the EC2 dashboard and click on launch instance. Give the required details and make sure on the Amazon Machine Image (AMI) the Amazon Linux 2023 AMI is selected and then click on launch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*VB84Tztfm4GSmtkfGOWi_w.png" /><figcaption>Launching the instance</figcaption></figure><p>After the instance if fully booted grab the public IP address and ssh to the instance.</p><pre>ssh -i &lt;keypair path&gt; ec2-user@&lt;public ip address&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qcY0S9rF85f8F5BsGk4C9A.png" /></figure><p>After connecting we will download the RPM file using this</p><pre>sudo wget https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm </pre><p>You can confirm the file has been downloaded by running</p><pre>ls -lrt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jMHuHIQQj5jscN8yByri6g.png" /></figure><p>After downloading the next step is to install the file then install mysql-community-server using the below commands</p><pre>sudo dnf install mysql80-community-release-el9-1.noarch.rpm -y<br>sudo dnf install mysql-community-server -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5rSF6uYtXWIJquDzkfWUA.png" /></figure><p>Next step is to start mysql</p><pre>sudo systemctl start mysqld</pre><p>By default, we will not be able to connect, thus we need to modify the .cnf file to enable us log in without a password. We will do this by adding a line to the mysqld block</p><pre>sudo vi /etc/my.cnf</pre><pre>skip-grant-tables</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HzeIqKUhC55PASGQoxb6vg.png" /></figure><p>After modifying the file save and restart mysql again by running</p><pre>sudo systemctl restart mysqld</pre><p>Afterwards we should be able to connect by typing mysql</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e8aHgQbl6RfgDoRzStoMTg.png" /></figure><p>Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d39afa5bf11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a web server and an Amazon RDS DB instance]]></title>
            <link>https://muleif.medium.com/creating-a-web-server-and-an-amazon-rds-db-instance-8f2cd28f9424?source=rss-bd11f7e09424------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f2cd28f9424</guid>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Felix Mulei]]></dc:creator>
            <pubDate>Wed, 01 Mar 2023 11:57:24 GMT</pubDate>
            <atom:updated>2023-03-01T11:57:24.900Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial, I will be creating an Amazon EC2 instance that uses a custom VPC, subnets, and security groups. The tutorial will show how to create the DB instance and automatically set up connectivity with the EC2 instance that you created. The tutorial also shows how to install the web server and a database client on the EC2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dg5RjW_SlGpNgDk6nPqgeA.jpeg" /></figure><h3>Create a Custom VPC</h3><p>In this tutorial I will create a custom VPC using the wizard, but the other method would also be the same. When logged to the AWS account I will navigate to the VPC dashboard and select create VPC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVLA1wgkctY-zVNPmyt1PA.jpeg" /></figure><p>In the next interface I will select VPC and more and give you details. I will be using the CIDR block on 10.0.0.0/16 on the VPC.</p><p>I will be creating 4 subnets in two availability zones. Of the 4, 2 subnets will be public and the other 2 will be private. The subnets will be of the CIDR block of 10.0.0.0/24, 10.0.1.0/24, 10.0.2.0/24 and 10.0.3.0/24.</p><p>With the wizard, the route tables for both of my subnets and an internet gateway will be created and attached automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfiOovNIyTbgcKZY1GGkXg.jpeg" /></figure><p>With the wizard, the route tables for both of my subnets and an internet gateway will be created and attached automatically. After verifying the details are right, I will click on create VPC and the VPC will be created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1yP6wShxdqqDG8Dpz3tNQ.jpeg" /></figure><h3>Launch an EC2 instance</h3><p>Next, I will navigate to the EC2 dashboard and select launch an Amazon EC2 instance. The instance will be launched one of the public subnets of the custom VPC. I will be using Amazon Linux 2 Ami, t2.micro free tier instance type and a custom security group that will be allowing ssh and http traffic from all ipv4 Ip addresses.</p><p>Before launching the instance, I will launch the security group. Ensure you select the custom VPC created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N6-rPMFM9ZmW1bxhHIs6Vw.jpeg" /></figure><p>From the EC2 dashboard, click on launch instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZrcR72UL8CKWcAivvZjYDQ.jpeg" /></figure><p>In the new interface, give the server a name, select Amazon Linux 2 for the AMI, select t2.micro for the instance type, select a key pair if you have any (If not you can create a new one). On the network setting, I will click edit to select the custom VPC created and select the public subnets. Also, I will enable auto-assign public Ip and on the security groups choose, select existing security group and in the drop down select the security group I created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*811XxCTRh3ZYVzsRNxHyCA.jpeg" /></figure><p>Then select launch instance and the instance will be launched.</p><h3>Create a Database instance</h3><p>In this step I will be creating a security group for the database that will only allow traffic from the webserver, a subnet group for the database and then the database instance.</p><p>In the EC2 or VPC dashboard, select security groups and click on create.</p><p>Here I will create a new security group, my-db-sg and the inbound rules will be allowing MYSQL/Aurora traffic from the webserver.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2_dPsEBw9HTA2V5QzVJ4w.jpeg" /></figure><p>Click on create to create the security groups</p><p>On the search bar, I will search for RDS and click to go to the Amazon RDS dashboard. On the left, I will click on subnet group and click on create. I will ensure that I select the private subnet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5UQphgwz52gNzbOcjDvNQ.jpeg" /></figure><p>Then click on create.</p><p>On the left again I will click on databases and select create database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJVTUzxLw_26BjyuWxRzCw.jpeg" /></figure><p>In the new interface I will select MYSQL as the database engine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NDE0jbyXT2Qwa9RhAJbNmQ.jpeg" /></figure><p>I will scroll down and select free tier then give my database instance identifier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEKVUy0rqPWlO2naB8zd1g.jpeg" /></figure><p>I will use admin for my master name and then give a password for the username.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5T_ZnhtJu_oDYsr7VxrMCw.jpeg" /></figure><p>On the connectivity I will not connect with an EC2 (But connecting with an EC2 would still work the same), I will then select my VPC and then the subnet group that I created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ju6kVwX-GvByHk9HdgBI0w.jpeg" /></figure><p>On the security group I choose existing and select my DB security group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENF4HhpCJS_H1LiPPRgdQw.jpeg" /></figure><p>I will then scroll down to the additional details expand and give my database initial name as sample. Then untick the check boxes for backup, encryption and upgrades.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84zWDLVGfjj6862a9ydjJg.jpeg" /></figure><p>Then create on create.</p><h3>Installing a web server on the EC2 instance</h3><p>Here I will Install a web server on the EC2 instance that I launched earlier on. The web server will connect to the Amazon RDS DB instance.</p><p>I will start by connecting to the instance though ssh</p><pre>ssh -i &lt;key name&gt; ec2-user@&lt;instance ip&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeA6Hw_MuWrRn5RhF8Lvtw.jpeg" /></figure><p>I will update the instance to the latest bug fixes and security updates by running the following command</p><pre>sudo yum update -y</pre><p>The -y option installs the updates without asking for confirmation.</p><p>Next, I will install PHP and MariaDB software&#39;s using the amazon-linux-extras install command. This command will install multiple software packages and related dependencies at the same time.</p><pre>sudo amazon-linux-extras install php8.0 mariadb10.5</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1asDkXaxOzuOQhfVL3VtZQ.jpeg" /></figure><p>After that I will install the Apache web server and start it. I will configure the web server to start with each system boot using the systemctl command.</p><pre>sudo yum install -y httpd<br>sudo systemctl start httpd<br>sudo systemctl enable httpd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ldjnPAyv2eOiri4kU1W4zQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjEY0mBH2MIeBbd69uAldQ.jpeg" /></figure><h3>Connect the Apache web server to the DB instance</h3><p>Here I will add content to the Apache web server that will connect to your Amazon RDS DB instance.</p><p>While still connected to the EC2 instance, I will change the directory to /var/www and create a new subdirectory named inc. Because I need elevated rights, I will switch to the root user</p><pre>cd /var/www<br>sudo su<br>mkdir inc<br>cd inc</pre><p>I will create a new file in the inc directory named dbinfo.inc, and then edit the file by calling nano</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*c_W6nK1jW_VCZqWfqW7AIA.jpeg" /></figure><pre>touch dbinfo.inc<br>nano dbinfo.inc<br><br></pre><pre>&lt;?php<br><br>define(&#39;DB_SERVER&#39;, &#39;felix-db.cpvs7xtgksmh.us-east-1.rds.amazonaws.com&#39;);<br>define(&#39;DB_USERNAME&#39;, &#39;admin&#39;);<br>define(&#39;DB_PASSWORD&#39;, &#39;demo-password&#39;);<br>define(&#39;DB_DATABASE&#39;, &#39;sample&#39;);<br><br>?&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AXCa-Q3yEH0LQE-Ob0KGGQ.jpeg" /></figure><p>I will save and close the dbinfo.inc file. For nano I will do this by Ctrl+O and Ctrl+X.</p><p>Next I will change the directory to /var/www/html and create a new file in the html directory named SamplePage.php</p><pre>cd /var/www/html<br>nano SamplePage.php</pre><p>I will then add the following contents to the SamplePage.php file:</p><pre><br>&lt;?php include &quot;../inc/dbinfo.inc&quot;; ?&gt;<br>&lt;html&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Sample page&lt;/h1&gt;<br>&lt;?php<br><br>  /* Connect to MySQL and select the database. */<br>  $connection = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD);<br><br>  if (mysqli_connect_errno()) echo &quot;Failed to connect to MySQL: &quot; . mysqli_connect_error();<br><br>  $database = mysqli_select_db($connection, DB_DATABASE);<br><br>  /* Ensure that the EMPLOYEES table exists. */<br>  VerifyEmployeesTable($connection, DB_DATABASE);<br><br>  /* If input fields are populated, add a row to the EMPLOYEES table. */<br>  $employee_name = htmlentities($_POST[&#39;NAME&#39;]);<br>  $employee_address = htmlentities($_POST[&#39;ADDRESS&#39;]);<br><br>  if (strlen($employee_name) || strlen($employee_address)) {<br>    AddEmployee($connection, $employee_name, $employee_address);<br>  }<br>?&gt;<br><br>&lt;!-- Input form --&gt;<br>&lt;form action=&quot;&lt;?PHP echo $_SERVER[&#39;SCRIPT_NAME&#39;] ?&gt;&quot; method=&quot;POST&quot;&gt;<br>  &lt;table border=&quot;0&quot;&gt;<br>    &lt;tr&gt;<br>      &lt;td&gt;NAME&lt;/td&gt;<br>      &lt;td&gt;ADDRESS&lt;/td&gt;<br>    &lt;/tr&gt;<br>    &lt;tr&gt;<br>      &lt;td&gt;<br>        &lt;input type=&quot;text&quot; name=&quot;NAME&quot; maxlength=&quot;45&quot; size=&quot;30&quot; /&gt;<br>      &lt;/td&gt;<br>      &lt;td&gt;<br>        &lt;input type=&quot;text&quot; name=&quot;ADDRESS&quot; maxlength=&quot;90&quot; size=&quot;60&quot; /&gt;<br>      &lt;/td&gt;<br>      &lt;td&gt;<br>        &lt;input type=&quot;submit&quot; value=&quot;Add Data&quot; /&gt;<br>      &lt;/td&gt;<br>    &lt;/tr&gt;<br>  &lt;/table&gt;<br>&lt;/form&gt;<br><br>&lt;!-- Display table data. --&gt;<br>&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot;&gt;<br>  &lt;tr&gt;<br>    &lt;td&gt;ID&lt;/td&gt;<br>    &lt;td&gt;NAME&lt;/td&gt;<br>    &lt;td&gt;ADDRESS&lt;/td&gt;<br>  &lt;/tr&gt;<br><br>&lt;?php<br><br>$result = mysqli_query($connection, &quot;SELECT * FROM EMPLOYEES&quot;);<br><br>while($query_data = mysqli_fetch_row($result)) {<br>  echo &quot;&lt;tr&gt;&quot;;<br>  echo &quot;&lt;td&gt;&quot;,$query_data[0], &quot;&lt;/td&gt;&quot;,<br>       &quot;&lt;td&gt;&quot;,$query_data[1], &quot;&lt;/td&gt;&quot;,<br>       &quot;&lt;td&gt;&quot;,$query_data[2], &quot;&lt;/td&gt;&quot;;<br>  echo &quot;&lt;/tr&gt;&quot;;<br>}<br>?&gt;<br><br>&lt;/table&gt;<br><br>&lt;!-- Clean up. --&gt;<br>&lt;?php<br><br>  mysqli_free_result($result);<br>  mysqli_close($connection);<br><br>?&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;<br><br><br>&lt;?php<br><br>/* Add an employee to the table. */<br>function AddEmployee($connection, $name, $address) {<br>   $n = mysqli_real_escape_string($connection, $name);<br>   $a = mysqli_real_escape_string($connection, $address);<br><br>   $query = &quot;INSERT INTO EMPLOYEES (NAME, ADDRESS) VALUES (&#39;$n&#39;, &#39;$a&#39;);&quot;;<br><br>   if(!mysqli_query($connection, $query)) echo(&quot;&lt;p&gt;Error adding employee data.&lt;/p&gt;&quot;);<br>}<br><br>/* Check whether the table exists and, if not, create it. */<br>function VerifyEmployeesTable($connection, $dbName) {<br>  if(!TableExists(&quot;EMPLOYEES&quot;, $connection, $dbName))<br>  {<br>     $query = &quot;CREATE TABLE EMPLOYEES (<br>         ID int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,<br>         NAME VARCHAR(45),<br>         ADDRESS VARCHAR(90)<br>       )&quot;;<br><br>     if(!mysqli_query($connection, $query)) echo(&quot;&lt;p&gt;Error creating table.&lt;/p&gt;&quot;);<br>  }<br>}<br><br>/* Check for the existence of a table. */<br>function TableExists($tableName, $connection, $dbName) {<br>  $t = mysqli_real_escape_string($connection, $tableName);<br>  $d = mysqli_real_escape_string($connection, $dbName);<br><br>  $checktable = mysqli_query($connection,<br>      &quot;SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_NAME = &#39;$t&#39; AND TABLE_SCHEMA = &#39;$d&#39;&quot;);<br><br>  if(mysqli_num_rows($checktable) &gt; 0) return true;<br><br>  return false;<br>}<br>?&gt;</pre><p>then save and close</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tGJMZhtJLX3vxDoFwZmXMg.jpeg" /></figure><p>Next I will verify that the web server successfully connects to the DB instance by opening a web browser and browsing to <a href="http://ec2/">http://</a><a href="http://ec2/"><em>EC2</em></a><em> instance endpoint</em>/SamplePage.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wVWrGuzifxVlalzHWur_A.jpeg" /></figure><p>The above page should appear, and I can add records</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ch9gbhthDwaERWvqp3RuQA.jpeg" /></figure><p>To see the records in the database I will connect the database:</p><pre>mysql -u admin -h felix-db.cpvs7xtgksmh.us-east-1.rds.amazonaws.com -p</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0UiTJCYkhUcuTOwFO4W-w.jpeg" /></figure><p>then I will check the table records</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zfXaoun4O-tVSb9Woe8aHQ.jpeg" /></figure><p>To make sure that the DB instance is as secure as possible, sources outside of the VPC should not connect to the DB instance.</p><p>Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f2cd28f9424" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>