<?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 Michael Chidiogo Okoli on Medium]]></title>
        <description><![CDATA[Stories by Michael Chidiogo Okoli on Medium]]></description>
        <link>https://medium.com/@MicDiogo?source=rss-d88241774e50------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9EVTf9TrCAQ0FQXVwv9HVg.jpeg</url>
            <title>Stories by Michael Chidiogo Okoli on Medium</title>
            <link>https://medium.com/@MicDiogo?source=rss-d88241774e50------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:48:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MicDiogo/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[I used to think Database replication was magic.]]></title>
            <link>https://towardsaws.com/i-used-to-think-database-replication-was-magic-ff158a872a28?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff158a872a28</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[replication]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 15:45:45 GMT</pubDate>
            <atom:updated>2026-06-28T15:45:45.221Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7En2OHFJrnqSs4cKkYh5Gw.png" /><figcaption>Enabling Binlog in Parameter Configuration</figcaption></figure><p>A primary database gets a write. Somehow, a replica on the other side of the world has the same data seconds later. Then I learned about Binary Logging and the magic made sense.</p><p><em>Get in let’s talk.</em></p><p>Here’s the thing about MySQL:</p><p>Every time you INSERT, UPDATE, or DELETE a row, MySQL doesn’t just write to your table. It first writes a record of that event to a file the Binary Log (binlog).</p><p><strong>It captures:</strong></p><p>What changed</p><p>The exact before/after state of each row (in ROW format)</p><p>When it happened</p><p>In what order</p><p>This happens BEFORE data hits the disk. That ordering guarantee is everything.</p><p>So why does that matter?</p><p>Because a replica is just a machine that reads your binlog and replays every event in order.</p><p>The replica doesn’t “sync” it time-travels. It processes your database’s entire history of changes and arrives at the same state.</p><p>This same mechanism powers:</p><p>Read Replicas (RDS MySQL)</p><p>Point-in-Time Recovery, replay the binlog on top of any snapshot</p><p>CDC pipelines via AWS DMS, Kafka Connect</p><p>Live migrations with near-zero downtime</p><p><strong>But here’s where it gets interesting.</strong></p><p>If binary logging is how MySQL replicas stay in sync, how do Aurora MySQL reader instances stay in sync with the writer even when binary logging is disabled by default in the cluster parameter group?</p><p>The answer is Aurora’s shared storage architecture and it’s a fundamentally different model. Traditional MySQL replication ships data changes between machines. Aurora doesn’t replicate between instances at all, instead, every instance in the cluster writer and all readers is reading from and writing to the SAME underlying storage volume.</p><p><strong>Here’s how it actually works:</strong></p><p><strong>SHARED STORAGE LAYER</strong></p><p>All Aurora instances share one distributed storage volume. Writer writes. Readers read. No data movement between nodes.</p><p><strong>REDO LOG STREAMING (not binlog)</strong></p><p>Aurora ships redo log records to the storage layer not data pages. The storage layer applies them across all 6 copies (3 AZs) automatically.</p><p><strong>READER CONSISTENCY</strong></p><p>Readers don’t wait to “catch up.” They read from shared storage and apply redo log records to maintain cache. Near-real-time. No lag.</p><p><strong><em>So when DO you still need binary logs on Aurora MySQL?</em></strong></p><p>Cross-region replication (different Aurora clusters)</p><p>Replicating to an external MySQL database</p><p>Migration scenarios (e.g. RDS MySQL → Aurora)</p><p>Compliance or audit trail requirements</p><p>AWS DMS CDC tasks targeting Aurora as a source</p><p>If you want to setup binlog for Aurora MySQL you wil have to create a Parameter Group first for your cluster.</p><p>Set the format to ROW which is the right choice</p><p>Set binlog_retention_hours to match your replica lag SLA</p><blockquote>Binary logging is one of those concepts that feels low-level until you realise it’s holding up your entire replication strategy, your DR plan, and your data pipelines.</blockquote><p>To learn more tune in to my podcast where I explained that of PostgreSQL</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fopen.spotify.com%2Fembed%2Fepisode%2F3z5MHAkVMvlMnrqyy1rRic%3Futm_source%3Doembed&amp;display_name=Spotify&amp;url=https%3A%2F%2Fopen.spotify.com%2Fepisode%2F3z5MHAkVMvlMnrqyy1rRic&amp;image=https%3A%2F%2Fimage-cdn-fa.spotifycdn.com%2Fimage%2Fab67656300005f1f4f1b96e6074145a28860443d&amp;type=text%2Fhtml&amp;schema=spotify" width="456" height="152" frameborder="0" scrolling="no"><a href="https://medium.com/media/778e6d6ce7c86458562dc3fa84e3db29/href">https://medium.com/media/778e6d6ce7c86458562dc3fa84e3db29/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff158a872a28" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/i-used-to-think-database-replication-was-magic-ff158a872a28">I used to think Database replication was magic.</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Daily Cost Breakdown Automation]]></title>
            <link>https://towardsaws.com/aws-daily-cost-breakdown-automation-65eab55f0815?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/65eab55f0815</guid>
            <category><![CDATA[cloud-cost-optimization]]></category>
            <category><![CDATA[cloud-engineering]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Sat, 03 Jan 2026 21:19:38 GMT</pubDate>
            <atom:updated>2026-01-04T11:14:57.156Z</atom:updated>
            <content:encoded><![CDATA[<p>“If cost isn’t visible, it will explode.”<br>Think about this for a moment.</p><p>There are two houses:</p><p>🏠 House A has the prepaid electricity meter locked away in the basement.<br>No one sees it. No one checks it. Power just “works”… until it suddenly goes off.</p><p>🏠 House B has the prepaid meter right at the front of the building.<br>Every tenant walking in can see it is it low? Is it healthy? Do we need to top up?</p><p>Guess which house manages power better?</p><p>Visibility changes behavior. The same thing happens in the cloud. Engineers shouldn’t have to open AWS Cost Explorer once a month to discover: A service quietly burning money, A region scaling unexpectedly, A small change with a big cost impact.</p><p>Cost awareness should be daily, not reactive. It should be automated. That’s why I built this AWS Daily Cost Breakdown Automation.</p><p>What it does:</p><p>Runs daily via EventBridge<br>Pulls previous-day spend from AWS Cost Explorer<br>Breaks costs down by service and region<br>Sends a clean, professional HTML report via SES</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GSBh2z1iM2c_3-kymbkfdQ.png" /><figcaption>Automation Architecture</figcaption></figure><p>Tools used:</p><ul><li>Lambda Function: Fetches cost data from AWS Cost Explorer API and formats it into an email</li><li>EventBridge Scheduler: Triggers the Lambda function daily at 07:00 UTC</li><li>Amazon SES: Sends the formatted cost breakdown email</li><li>CloudWatch Logs: Stores Lambda execution logs with configurable retention</li><li>IAM Roles: Provides necessary permissions for Cost Explorer and SES access</li><li>Multi-Region Support: Monitor costs across multiple AWS regions</li></ul><h3>Features</h3><ul><li>Multi-Region Cost Analysis: Monitor costs across multiple AWS regions</li><li>Daily Cost Breakdown: Shows costs by AWS service for the previous day</li><li>Regional Breakdown: Displays cost distribution across your target regions</li><li>Rich Email Format: Both HTML and text versions with formatted tables</li><li>Cost Analysis: Includes blended costs, unblended costs, usage quantities, and percentages</li><li>Morning Delivery: Receive yesterday’s costs at 7 AM UTC for actionable insights</li><li>Error Handling: Comprehensive error handling and logging</li><li>Security: Least-privilege IAM policies with optional VPC and KMS encryption</li><li>Flexible Configuration: Customizable regions, schedule, and retention settings</li></ul><h3>Prerequisites Required</h3><ol><li>AWS Account with appropriate permissions</li><li>AWS CLI installed and configured</li><li>SES Email Verification: Your email address must be verified in Amazon SES</li><li>Cost Explorer Enabled: Must be enabled in your AWS account</li></ol><h3>Deployment Methods</h3><p>This solution can be deployed using either CloudFormation Console or AWS CLI:</p><h3>CloudFormation</h3><h4>Prerequisites for CloudFormation</h4><ul><li>AWS CLI installed and configured</li><li>Appropriate IAM permissions for CloudFormation, Lambda, SES, EventBridge, and Cost Explorer</li></ul><h4>Quick Deployment</h4><ol><li>Verify Your Email in SES:</li></ol><pre>aws ses verify-email-identity --email-address your-email@example.com</pre><h4>Manual CloudFormation Deployment</h4><p>Via AWS Console:</p><p>Go to <a href="https://console.aws.amazon.com/cloudformation/">CloudFormation Console</a></p><p>Click “Create stack” → “With new resources”</p><p>Upload the cloudformation-template.yaml file from this <a href="https://github.com/DiogoMic/AWS-Daily-Cost-Breakdown-Notification.git">github repo</a></p><p>Fill in parameters:</p><ul><li>EmailAddress: Your verified email address</li><li>TargetRegions: us-east-1,us-west-2,eu-west-1 (or your preferred regions)</li><li>ScheduleExpression: cron(0 7 * * ? *) (7 AM UTC daily)</li></ul><p>Acknowledge IAM resource creation</p><p>Click “Create stack”</p><p>Via AWS CLI:</p><pre>aws cloudformation create-stack \<br>  --stack-name aws-cost-breakdown \<br>  --template-body file://cloudformation-template.yaml \<br>  --parameters \<br>    ParameterKey=EmailAddress,ParameterValue=your-email@example.com \<br>    ParameterKey=TargetRegions,ParameterValue=&quot;us-east-1,us-west-2,eu-west-1&quot; \<br>  --capabilities CAPABILITY_NAMED_IAM</pre><h4>Advanced CloudFormation Options</h4><p>With KMS Encryption:</p><pre>./deploy-cloudformation.sh \<br>  -e your-email@example.com \<br>  --kms-key-id &quot;arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012&quot;</pre><p>Custom Schedule (e.g., 8 AM UTC):</p><pre>./deploy-cloudformation.sh \<br>  -e your-email@example.com \<br>  -s &quot;cron(0 8 * * ? *)&quot;</pre><h3>Required Parameters</h3><ul><li>EmailAddress: Your verified email address for receiving cost reports</li><li>TargetRegions: Comma-separated list of AWS regions to monitor</li></ul><h3>Optional Parameters</h3><ul><li>ScheduleExpression: Cron expression for timing (default: cron(0 7 * * ? *))</li><li>LogRetentionDays: CloudWatch log retention period (default: 7 days)</li><li>VpcSecurityGroupIds: Security Group IDs for VPC deployment (optional)</li><li>VpcSubnetIds: Subnet IDs for VPC deployment (optional)</li><li>KmsKeyId: KMS Key ARN for log encryption (optional)</li></ul><h3>Environment Variables (Set Automatically)</h3><ul><li>EMAIL_ADDRESS: Your verified email address</li><li>TARGET_REGIONS: Comma-separated list of regions</li><li>LOG_LEVEL: Logging level (INFO)</li></ul><h3>Schedule Configuration</h3><p>The default schedule runs daily at 07:00 UTC to deliver the previous day’s costs in the morning. Common schedule options:</p><pre># 6 AM UTC<br>cron(0 6 * * ? *)<br># 7 AM UTC (default)<br>cron(0 7 * * ? *)</pre><pre># 8 AM UTC<br>cron(0 8 * * ? *)</pre><pre># 9 AM UTC<br>cron(0 9 * * ? *)</pre><p>Time Zone Examples for 7 AM UTC:</p><ul><li>EST/EDT: 2 AM / 3 AM (East Coast US)</li><li>PST/PDT: 11 PM / 12 AM (West Coast US)</li><li>CET/CEST: 8 AM / 9 AM (Central Europe)</li><li>GMT: 7 AM (UK)</li></ul><h3>Email Format</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G228q_iW-zRYHcjBCAASWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G6byzjH7_4WDKIwem8psuQ.png" /><figcaption>Email message containing cost breakdown.</figcaption></figure><p>Why it matters:<br>Engineers see cost impact the next day, small issues are caught before they explode. Cost becomes part of everyday engineering decisions, no dashboards to remember, no manual checks, finance and engineering finally speak the same language.</p><p>If cost isn’t visible, it will explode. Put the meter where everyone can see it.</p><blockquote>Want to learn more? Check out <a href="https://creators.spotify.com/pod/profile/diogo546/">The Cloud Engineer’s Playbook</a> a podcast by Michael Diogo for insights on cloud engineering, automation, and digital transformation.</blockquote><p>👏 Don’t forget to clap, thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65eab55f0815" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/aws-daily-cost-breakdown-automation-65eab55f0815">AWS Daily Cost Breakdown Automation</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Observability in the Cloud: Going Beyond Monitoring]]></title>
            <link>https://towardsaws.com/observability-in-the-cloud-going-beyond-monitoring-f1bb07c52cc6?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1bb07c52cc6</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Sat, 16 Aug 2025 05:48:54 GMT</pubDate>
            <atom:updated>2025-08-16T17:02:01.325Z</atom:updated>
            <content:encoded><![CDATA[<p>When something goes wrong with an application, customers and businesses feel the impact immediately. IT teams need to not only identify and resolve issues quickly but also prevent them from happening in the first place. That’s where <strong>monitoring</strong> and <strong>observability</strong> come in.</p><p>While the two terms are related, they are not the same. Monitoring can tell you that something is wrong. Observability can tell you <strong>what’s happening, why it’s happening, and how to fix it</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3C4y0OSKkDEES_rQHdDfHQ.png" /><figcaption>Visual representation of the difference between Monitoring and Observability</figcaption></figure><p><strong>What is Observability?</strong></p><p>Observability is the ability to monitor, measure, and understand the internal state of a system or application by analyzing its external outputs, such as logs, metrics, and performance data. The concept originates from control theory, where it describes the ability to infer the internal condition of a system based solely on its outputs.</p><p>In IT, observability gives teams deep visibility into modern, distributed tech stacks, enabling real-time problem identification and resolution without additional testing or code changes. The more observable a system, the faster and more accurately teams can move from identifying a performance issue to pinpointing its root cause.</p><p><strong>What is Telemetry?</strong></p><p>You can’t talk about observability without talking about <strong>telemetry</strong>. It is the process of collecting and transmitting data from systems for monitoring and analysis.</p><p>Telemetry answers the question:</p><p><strong><em>“Are your IT systems performing the way they should and how do you know?”</em></strong></p><p>By providing rich, real-time insights, telemetry enables IT teams to:</p><ul><li>Maintain optimal system performance</li><li>Identify new growth opportunities</li><li>Enhance user experiences</li><li>Enable automated, self-healing infrastructures</li></ul><p><strong>What is Monitoring?</strong></p><p>Monitoring is the process of collecting data and generating reports on different metrics i.e (CPU Usage, Memory, Disk Space) that define system health, this process, collects data about a system to check if the system is operating as expected. If a process isn’t working as expected it will trigger an alert. so monitoring is a critical core component of observability</p><p><strong>Observability vs. Monitoring</strong></p><p><strong>Monitoring</strong></p><ul><li>Detects <strong>known issues</strong></li><li>Helps discover <strong>unknown issues</strong></li><li>Focuses on individual components</li></ul><p><strong>Observability</strong></p><ul><li>Looks at the system as a whole</li><li>Tells you <em>that</em> something is wrong</li><li>Tells you <em>why</em> it’s wrong and <em>how</em> to fix it</li><li>Primarily reactive</li><li>Enables proactive prevention</li></ul><p><strong>Monitoring</strong> is essential, but it’s limited to predefined conditions. <strong>Observability</strong> goes further helping teams ask new questions about system behaviour without predefining every possible failure scenario.</p><p><strong>Cloud-Native Observability</strong></p><p>As organizations adopt cloud-native architectures microservices, containers, and serverless computing traditional monitoring often falls short. <strong>Cloud-native observability</strong> is designed for these environments, enabling visibility into highly dynamic, distributed systems.</p><p>The four main pillars are:</p><ol><li><strong>Metrics</strong>: Quantitative data such as CPU usage, memory consumption, network traffic, and request latency. <em>Examples: AWS CloudWatch Metrics, Datadog Metrics, Grafana Mimir.</em></li><li><strong>Logs</strong>: Detailed records of application and infrastructure events for troubleshooting and security analysis. <em>Examples: AWS CloudWatch Logs, Grafana Loki, Datadog Log Management.</em></li><li><strong>Traces</strong>: End-to-end tracking of requests and transactions across services to diagnose bottlenecks and errors. <em>Examples: AWS X-Ray, Grafana Tempo.</em></li><li><strong>Events</strong> Notifications of significant occurrences such as deployments, scaling actions, or errors. <em>Examples: AWS EventBridge</em></li></ol><p><strong>AWS CloudWatch: A Key Observability Tool</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/166/1*YIbdwxSwC4cyb06dtCTkow.png" /><figcaption>Amazon CloudWatch</figcaption></figure><p>Amazon CloudWatch provides comprehensive visibility into AWS resources and applications, whether they run in the cloud, on-premises, in hybrid environments, or across multiple clouds. It does the following.</p><ul><li><strong>Collect:</strong> Gather metrics, logs, and events from AWS resources and beyond.</li><li><strong>Monitor:</strong> Use CloudWatch Dashboards to visualize performance data in real time.</li><li><strong>Act:</strong> Automate responses to operational changes with EventBridge, AWS Lambda, Systems Manager, and Application Auto Scaling.</li></ul><blockquote><strong>Tip:</strong> Avoid “alarm fatigue.” Too many alerts can cause teams to ignore critical warnings. Configure alarms thoughtfully.</blockquote><p><strong>Benefits of Observability</strong></p><ul><li><strong>Discover and address unknown issues</strong>: Detect problems you didn’t know to look for.</li><li><strong>Identify issues early in development</strong>: Catch bugs in pre-production before they impact customers.</li><li><strong>Improve user experience</strong>: Gain deep insights into user behaviour for performance optimization.</li><li><strong>Enable auto-scaling</strong>: Automatically collect telemetry from workloads as they start and stop.</li><li><strong>Support automated remediation</strong>: Combine observability with AI/ML for self-healing infrastructure.</li></ul><p><strong>Real-World Use Cases</strong></p><ol><li><strong>Real-time system monitoring</strong>: Continuous health and performance tracking.</li><li><strong>Cloud migration support</strong>: Maintain visibility during complex transitions.</li><li><strong>Business performance optimization</strong>: Fix issues faster, focus more on growth.</li><li><strong>Enhanced DevSecOps</strong>: Build secure, resilient applications with continuous feedback loops.</li><li><strong>AI-driven optimization</strong>: Predict and prevent problems before they affect users.</li></ol><p><strong>Conclusion: In the Cloud Era</strong></p><p>In today’s dynamic cloud environments:</p><ul><li><strong>Monitoring</strong> tells you something is wrong.</li><li><strong>Observability</strong> tells you why and how to fix it.</li></ul><p>By combining metrics, logs, traces, and events, IT teams can proactively maintain system health, improve user experience, and respond to issues before they impact customers.</p><blockquote>Want to learn more? Check out <a href="https://creators.spotify.com/pod/profile/diogo546/"><strong><em>The Cloud Engineer’s Playbook</em></strong></a> a podcast by Michael Diogo for insights on cloud engineering, automation, and digital transformation.</blockquote><p>📩 Need a team to migrate workloads to the cloud, secure your infrastructure, automate processes, and train your staff? Email: <strong>contact@diogomic.me</strong></p><p>Let’s make your operations <strong>faster, more secure, and more reliable</strong>.</p><p>👏 Don’t forget to clap, thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1bb07c52cc6" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/observability-in-the-cloud-going-beyond-monitoring-f1bb07c52cc6">Observability in the Cloud: Going Beyond Monitoring</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Choosing the Right Data Pipeline Strategy: ETL vs ELT vs Zero-ETL]]></title>
            <link>https://towardsaws.com/choosing-the-right-data-pipeline-strategy-etl-vs-elt-vs-zero-etl-74dd1a35b459?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/74dd1a35b459</guid>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Sat, 17 May 2025 12:16:42 GMT</pubDate>
            <atom:updated>2025-05-18T07:29:30.765Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xAnwq-nlU-DTdGu38AM2w.png" /></figure><p>In today’s data-driven world, organizations gather vast amounts of information from a multitude of sources, ranging from customer transactions and social media feedback to sensor data and internal HR systems. Making sense of this diverse and often disparate data is crucial for gaining meaningful insights, improving business intelligence, and powering analytics and machine learning workloads. This is where data integration methods like Extract, Transform, and Load (ETL), Extract, load, and transform (ELT) and the newer concept of Zero-ETL come into play, but firstly lets dive deep into what ETL is and how it works.</p><h3><strong>What is Extract, Transform, and Load (ETL)?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RTiEaS2kvHiGptAZ1ONzDA.png" /><figcaption>Traditional ETL flow</figcaption></figure><p><strong>Extract, Transform, and Load (ETL) is a foundational process for combining data from multiple sources into a large, central repository, typically a data warehouse</strong>. Its core purpose is to use a set of business rules to <strong>clean, organize, and prepare raw data for storage and subsequent analysis</strong>. By applying ETL, individual raw datasets can be formatted and structured in a way that makes them more consumable for analytics, leading to more meaningful insights.</p><p>ETL improves business intelligence and analytics by making the process more reliable, accurate, detailed, and efficient. It provides <strong>deep historical context</strong> by combining legacy data with data from new platforms. It offers a <strong>consolidated view of data</strong> from various sources into a single, unified view, saving time and improving data quality. ETL enables <strong>more accurate data analysis</strong> by integrating with data quality tools for profiling, auditing, and cleaning data. Furthermore, ETL <strong>automates repeatable data processing tasks</strong>, freeing data engineers to focus on innovation.</p><p>The ETL process works in three distinct steps, moving data from source systems to a destination system at periodic intervals.</p><p><strong>Extract:</strong> In this initial step, ETL tools <strong>extract or copy raw data from multiple sources</strong>. This raw data is temporarily stored in a <strong>staging area (or landing zone)</strong>, an intermediate storage area. Staging areas are often transient, with contents erased after the process is complete, but may retain an archive for troubleshooting. The frequency of extraction depends on the change data capture mechanism:</p><ul><li><strong>Update notification:</strong> The source system alerts when a record changes, triggering extraction for just that change. Most databases and web applications support this.</li><li><strong>Incremental extraction:</strong> For sources that can identify changes over a period but lack notifications, the system checks for modified data periodically (e.g., weekly, monthly), extracting only what has changed.</li><li><strong>Full extraction:</strong> If changes cannot be identified or notifications sent, all data is reloaded. This requires keeping a copy of the last extract to identify new records and is recommended only for small tables due to high data volume.</li></ul><p><strong>Transform:</strong> Raw data from the staging area is transformed and consolidated using ETL tools to prepare it for the target data warehouse. This involves applying business rules and can include various types of data changes:</p><ul><li><strong>Basic transformations</strong> improve data quality through cleansing, deduplication, and format revision. Data cleansing removes errors and maps data to a target format. Deduplication identifies and removes duplicate records. Format revision converts data like character sets, units, and date/time to a consistent format.</li><li><strong>Advanced transformations</strong> use business rules for easier analysis, including derivation (calculating new values), joining (linking data from different sources), splitting (dividing a column into multiple), summarization (reducing data volume), and encryption (protecting sensitive data).</li></ul><p><strong>Load:</strong> The transformed data is moved from the staging area into the target data warehouse. This process is often automated and batch-driven. Loading can occur via two methods:</p><ul><li><strong>Full load:</strong> The entire dataset is moved to the data warehouse, typically the first time data is loaded from a source.</li><li><strong>Incremental load:</strong> The ETL tool loads only the delta (difference) between source and target at regular intervals. This can be streaming (continual changes for small volumes, potentially using event stream processing for high speeds) or batch (collecting changes over a period for large volumes).</li></ul><p>ETL originated with relational databases and has evolved with the increase in data types, sources, and cloud technology, enabling it to work with modern data sinks like data warehouses and data lakes.</p><h3><strong>What is </strong>Extract, Load, and Transform (ELT)<strong>?</strong></h3><p>Extract, Load, and Transform (ELT) is a modern variation of the traditional ETL (Extract, Transform, Load) process, where the sequence is reversed. In ELT, data is first loaded directly into the target system before any transformation takes place. This eliminates the need for a staging area, as modern data warehouses have built-in capabilities to handle data transformation. ELT has gained popularity with the rise of cloud-based platforms, which offer the computational power necessary for in-warehouse data processing.</p><p><strong>ETL vs. ELT</strong></p><p>ELT is particularly effective for managing large-scale, unstructured data that needs to be ingested frequently. It’s well-suited for big data environments, where analytics can be planned after the data has been extracted and stored. In this approach, transformations are typically deferred until the analysis phase, allowing raw data to be quickly and efficiently loaded into the warehouse.</p><p>In contrast, ETL demands a more structured approach upfront. It requires early involvement from analytics teams to define data types, structures, and relationships before loading. ETL is commonly used for migrating data from legacy systems, whereas ELT has become the standard approach in today’s cloud-driven data landscapes.</p><h4>Here are some AWS Tools for ETL and ELT processes:</h4><p>AWS Glue</p><p>AWS S3</p><p>AWS EMR</p><p>Amazon Athena</p><p>Amazon Quicksight</p><h3><strong>Zero-ETL: Minimizing the Pipeline</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*IkefmR1U5Ox9iym3c8jroA.png" /><figcaption>Zero ETL Architecture flow</figcaption></figure><p><strong>Zero-ETL is introduced as a set of integrations designed to minimize the need to build explicit ETL data pipelines</strong>. Traditional ETL processes are described as time-consuming, complex to develop, maintain, and scale. Zero-ETL integrations, instead, facilitate <strong>point-to-point data movement</strong> or enable <strong>querying across data silos without the need for data movement</strong>.</p><p>Zero-ETL architecture may sound like it has no components or that all components are unified, but that’s not the case different elements and services are integrated together depending on the needs of your target analytics and resources.</p><p>Zero-ETL aims to solve key challenges associated with traditional ETL pipelines:</p><ul><li><strong>Increased system complexity:</strong> ETL pipelines add layers of complexity due to data mapping, handling inconsistencies, error handling, and security.</li><li><strong>Additional costs:</strong> ETL pipelines can be expensive to build and scale, with potential costs for duplicate data storage, infrastructure upgrades, and ongoing maintenance.</li><li><strong>Delayed time to analytics, AI, and ML:</strong> Building and modifying custom ETL code and managing infrastructure can take weeks, making data unfit for near-real-time use cases and delaying insights for analytics, AI, and ML.</li></ul><p>By addressing these challenges, Zero-ETL offers several benefits to an organization’s data strategy:</p><ul><li><strong>Increased agility:</strong> It simplifies data architecture, reduces engineering effort, and allows inclusion of new data sources without extensive reprocessing.</li><li><strong>Cost efficiency:</strong> Utilizing cloud-native, scalable technologies, Zero-ETL helps optimize costs by reducing infrastructure, development, and maintenance overheads.</li><li><strong>Faster time to insights:</strong> Providing real-time or near-real-time data access ensures fresher data for analytics, AI/ML, and reporting, leading to more accurate and timely insights for critical use cases.</li></ul><h4>AWS Tools for Zero ETL Processes:</h4><p>Amazon SageMaker LakeHouse</p><p>Amazon Redshift</p><p>Amazon DynamoDB</p><p>Amazon OpenSearch Service</p><p>Key use cases for Zero-ETL include rapid data ingestion and streaming ingestion using tools . A particularly relevant use case in the context of ETL is <strong>Instant Replication</strong>. Traditionally, moving data from operational/transactional databases to data warehouses/lakehouses like <strong>AWS S3</strong> required complex ETL. Zero-ETL acts as a data replication tool, <strong>instantly duplicating data</strong> from operational/transactional databases and applications to data warehouses/lakehouses. This duplication often uses <strong>change data capture (CDC) techniques</strong> and may be built into the destination system. The process is often invisible to users, who can seamlessly query data from the warehouse while applications write to the transactional database. This capability fundamentally minimizes or removes the explicit, separate “Extract” step seen in traditional batch ETL pipelines.</p><p>In essence, while ETL and ELT provides the traditional framework for processing data into a central repository for analysis, Zero-ETL represents an evolution focused on minimizing or eliminating the need for explicit pipelines, often relying on techniques like instant replication via CDC to provide faster, more agile access to data for analytics and ML workloads.</p><p>As data integration continues to evolve from traditional ETL to ELT and now Zero-ETL architectures, the landscape for data-driven decisions is transforming rapidly. Understanding these paradigms isn’t just a technical advantage — it’s a strategic one.</p><blockquote>🎙️ Want to dive deeper into the future of cloud, data, and modern architectures?</blockquote><p>🎧 Tune in now on Spotify and Apple Podcasts</p><p><a href="https://creators.spotify.com/pod/profile/diogo546">The Cloud Engineer&#39;s Playbook - A Podcast by Michael Diogo * A podcast on Spotify for Creators</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74dd1a35b459" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/choosing-the-right-data-pipeline-strategy-etl-vs-elt-vs-zero-etl-74dd1a35b459">Choosing the Right Data Pipeline Strategy: ETL vs ELT vs Zero-ETL</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding AWS Lambda]]></title>
            <link>https://towardsaws.com/understanding-aws-lambda-81caf0b26243?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/81caf0b26243</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Wed, 22 Jan 2025 13:26:26 GMT</pubDate>
            <atom:updated>2025-01-23T10:45:14.815Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OpXVT-xeZoaxbgLB" /></figure><p>Whether you’re building a scalable web application, processing data streams, or automating routine tasks, <strong>AWS Lambda</strong> empowers you to focus on writing and optimising code while handling the underlying infrastructure. This introduction explores the foundational concepts of <strong>AWS Lambda</strong>, its key features, and how it transforms the way we think about application development.</p><p>In this article, we’ll break down the fundamentals of <strong>AWS Lambda</strong>, explore how it works, and highlight why it’s an essential tool in modern application development.</p><p><strong>AWS Lambda</strong> is an event-driven, serverless compute service that lets you run code without provisioning or setting up servers.</p><p>This serverless approach to development reduces overhead and lets you focus, experiment and innovate faster.</p><p>Here are some features of the AWS function:</p><ul><li>Bring your code</li><li>Integrate with and extend other AWS services</li><li>Flexible resource and concurrency model</li><li>Flexible permission model</li><li>Available and fault tolerance are built-in</li><li>Pay for value</li></ul><blockquote><em>“The code you run on AWS Lambda is called a Function, and they are status”</em></blockquote><p><strong>HOW DOES AWS LAMDBA WORK?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CZgo373QLRk84Pnk" /></figure><p>To understand how AWS Lambda works, you must first understand event-driven architectures.</p><p>Event-driven architecture (EDA) is a software architecture that focuses on producing, detecting, and consuming events. An event is a significant change in state. For example, uploading an item to an S3 bucket, shutting down an EC2 instance or adding an item to a shopping cart are all events.</p><p>Event sources can trigger a Lambda function in three general patterns; these patterns are called invocation models. Each invocation model is unique and addresses a different application and developer needs, often depending on the event source you are using.</p><ul><li><strong>Synchronous Invocation</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZQr2s3sXhB7j_T7V" /></figure><p>In this pattern, the lambda function runs and waits for a response. When it completes, lambda returns the response from the function code with additional data, such as the function’s version and log ID. In synchronous invocation, Events expect immediate response, and there are no built-in retries.</p><ul><li><strong>Asynchronous Invocation</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AIdgY2MdTuP28oRS" /></figure><p>In this invocation pattern, events are queued, and the requestor doesn’t wait for the function to complete. This pattern is appropriate when the client doesn’t need an immediate response. In an asynchronous pattern, you make use of a destination.</p><p>A destination can send records of asynchronous invocation to other services; you can also configure separate destinations for events that fail to process and for events that were processed successfully.</p><ul><li><strong>Polling invocation</strong></li></ul><p>This pattern is designed to integrate with AWS streaming and queuing-based services with no code or server management.</p><p><strong>Understanding AWS Lambda Error Behaviors</strong></p><p>When building serverless applications using AWS Lambda, handling errors effectively is crucial to ensure reliability and resilience. AWS Lambda functions can fail for various reasons, such as invalid input, timeout, or runtime exceptions. However, how Lambda manages these failures depends on the invocation pattern used to trigger the function.</p><p>The table below shows each invocation pattern’s error behaviour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CfAaHH2xJwzLRgMn" /></figure><p><strong>Lambda execution environment lifecycle</strong></p><p>Lambda invokes your function in an execution environment, which provides a secure and isolated runtime environment. The execution environment manages the resources required to run your function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C-eyCodrE0NiC_O6" /></figure><p>AWS Lambda function permissions</p><p>In a lambda function, two sides define the necessary scope of permissions:</p><ol><li>Permission to invoke the function.</li><li>Permission of lambda function itself to act upon the other service.</li></ol><p>Here is a diagram that illustrates the flow process:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jflKQh0czLp3sdDu" /></figure><p>Now that we understand the basics of the lambda functions, there are three ways to build and deploy your lambda functions.</p><ul><li>Lambda Console Editor</li><li>Deployment Package: container images and zip file</li><li>Automation tools</li></ul><p>When building and testing a function, you must specify three primary configuration settings;</p><ol><li>Memory: up to 10 GB</li><li>Timeout: up to 15 minutes</li><li>Concurrency: Unreserved, Reserved, Provisioned.</li></ol><blockquote><em>Are you looking to get hands-on experience on AWS Lambda?</em></blockquote><p>Check out this blog post below on Medium:</p><p><a href="https://awstip.com/ec2-auto-shutdown-with-lambda-1558f456f615">EC2 Auto-shutdown with Lambda</a></p><p><em>If you found this article helpful, don’t forget to like, share, and follow for more insightful content on AWS, serverless computing, and cloud development.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81caf0b26243" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/understanding-aws-lambda-81caf0b26243">Understanding AWS Lambda</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud computing vocabulary you should know about and thier meaning.]]></title>
            <link>https://towardsaws.com/cloud-computing-vocabulary-you-should-know-about-and-thier-meaning-5f46ba9f2566?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f46ba9f2566</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Fri, 27 Sep 2024 19:39:48 GMT</pubDate>
            <atom:updated>2024-09-29T15:25:22.195Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cloud computing vocabulary you should know about and their meaning.</h3><p>If you’re just starting your career as a cloud engineer, you wil likely come across the words.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/0*udgUBvAIK5rG8tBr.jpg" /><figcaption><a href="https://www.pinterest.com/pin/428545720810485995/">https://www.pinterest.com/pin/428545720810485995/</a></figcaption></figure><p>In any profession been able to speak and understand the vernacular goes a long way toward feeling comfortable in your role and working effectively with colleagues. If you are starting your journey in cloud engineering here are some terms you will likely hear.</p><p><strong>Virtualisation</strong></p><p>In cloud engineering, virtualization refers to the technology that allows the creation of virtual versions of physical resources such as servers, storage, networks, and even entire operating systems. These virtual resources are abstracted from the underlying hardware and run in isolated environments on a single physical machine.</p><p><strong>Availability</strong></p><p>The amount of time that a service is “live” and functional. This is often expressed in percentage terms. For example, the S3 Standard storage class is designed for 99.99% availability, that means it will be unavailable for only 52.56 minutes in an entire year.</p><p><strong>Durability</strong></p><p>Durability refers to the ability of a cloud service or system to ensure that data is stored safely and protected against loss or corruption over a long time. For example, <strong>AWS S3 Standard</strong> offers <strong>99.999999999% (11 nines) durability</strong>, meaning that the likelihood of losing data is extremely low. Meaning, if you store 10 million objects in S3, on average, you can expect to lose a single object once every 10,000 years.</p><p><strong>Elasticity</strong></p><p>One of the main characteristic of cloud is <em>elasticity;</em> which refers to dynamically matching infrastructure with the demands being placed on an application at any given time. Elasticity offers advantages in both directions. During periods of high traffic, you may require additional resources, while at other times, fewer resources might suffice. Since the cost of resources is tied to the amount you provision, elasticity helps align your expenses more closely with the actual demand on your system.</p><p><strong>Scalability</strong></p><p>Scalability is closely related to elasticity, but while elasticity involves adjusting resources up or down dynamically, scalability focuses on how resources are expanded. There are two main types of scalability: horizontal and vertical scaling. Horizontal scaling involves adding multiple machines in parallel to handle increasing demand, whereas vertical scaling adds resources, like RAM, to a single machine. Each approach has its own pros and cons, and the best option depends on the system’s architecture and the specific needs of the application.</p><p><strong>Serverless</strong></p><p>Like the name implies this technology lets you run application workloads without managing the underlying infrastructure. Sometimes this capability is refer to as <em>Fuction as Service (FaaS). </em>Many cloud providers offer their own versions of serverless computing, which come with the advantages of high availability and elasticity, as mentioned earlier. Before the advent of serverless technologies, deploying software required managing and maintaining servers, as well as ensuring they were available and scalable to handle traffic demands. With serverless environments, the need to manage servers is eliminated, allowing you to focus more on your application code. However, this approach does come with certain trade-offs.</p><p><strong>Fully Managed</strong></p><p>In the early days of cloud computing, we primarily dealt with basic resources like servers, data stores, and databases made available in the cloud. Although this brought many benefits, software engineers were still responsible for managing and maintaining the underlying hardware, much like in traditional on-premises datacenters. Fully managed resources, however, are offered at a higher level of abstraction, with the cloud provider taking over some of the management duties. While this reduces the burden on engineers, it often comes with higher costs and may impose certain limitations compared to working directly with more basic resources.</p><p><em>As you start your cloud journey, you will see how all this terminologies work together to help you archieve your goals in the cloud.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f46ba9f2566" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/cloud-computing-vocabulary-you-should-know-about-and-thier-meaning-5f46ba9f2566">Cloud computing vocabulary you should know about and thier meaning.</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power Up Your DevOps Workflow: List All EC2 Instances Across Regions In Your Accounts.]]></title>
            <link>https://towardsaws.com/power-up-your-devops-workflow-list-all-ec2-instances-across-regions-in-your-accounts-34c02f13fe90?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/34c02f13fe90</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Tue, 28 May 2024 13:38:10 GMT</pubDate>
            <atom:updated>2024-05-29T02:38:05.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YykVibIrJI_v3OV9jw8TfQ.png" /><figcaption>Source:<a href="https://d2908q01vomqb2.cloudfront.net/9e6a55b6b4563e652a23be9d623ca5055c356940/2022/03/23/infografi%CC%81a-aws-local-zones-english-map-1080.png"> https://d2908q01vomqb2.cloudfront.net/9e6a55b6b4563e652a23be9d623ca5055c356940/2022/03/23/infografi%CC%81a-aws-local-zones-english-map-1080.png</a></figcaption></figure><p>Ever wondered how you can view all the instance in AWS account with their respective regions?</p><p>Here is bash script and python script to list instances in each regoins in an AWS account You can run the scripts from any environment that has access to the AWS CLI or AWS SDKs and is properly configured with the necessary AWS credentials, you can also run it from the cloudshell.</p><p>Here is a <a href="https://github.com/DiogoMic/list_instance.git">LINK</a> to my github repository for the python and bash code.</p><h3>AWS CloudShell</h3><p>AWS CloudShell is a browser-based shell provided by AWS. It comes pre-installed with the AWS CLI and other development tools.</p><ol><li>Access AWS CloudShell</li></ol><ul><li>Go to the <a href="https://aws.amazon.com/console/">AWS Management Console</a>.</li><li>Click on the CloudShell icon in the top navigation bar.</li></ul><p>2. Run the Scripts</p><ul><li>You can copy and paste the script directly into the CloudShell terminal.</li><li>Alternatively, upload the script file to CloudShell using the CloudShell file upload feature and run it as you would in a local terminal.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*AepgWva2TCWl6f0Vq_IpRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*JSInJn9ct_7z9cgu3ilKKQ.png" /><figcaption>AWS cloudshell</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*UDpoMbPS_VPdUf-yCMZVxQ.png" /><figcaption>AWS Cloudshell</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*DUgdlfTpX90yCZafLPrq0A.png" /><figcaption>AWS Cloudshell</figcaption></figure><h3>Summary</h3><p>These methods allow you to list all the EC2 instances running in your AWS account, either through the AWS Management Console, the AWS CLI, or programmatically using an AWS SDK like <strong>boto3</strong> for Python.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34c02f13fe90" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/power-up-your-devops-workflow-list-all-ec2-instances-across-regions-in-your-accounts-34c02f13fe90">Power Up Your DevOps Workflow: List All EC2 Instances Across Regions In Your Accounts.</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Amazon S3 for Cost]]></title>
            <link>https://towardsaws.com/optimizing-amazon-s3-for-cost-25b895d20414?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/25b895d20414</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[object-storage]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Thu, 09 May 2024 09:32:01 GMT</pubDate>
            <atom:updated>2024-05-10T07:36:12.743Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Optimize Your Cloud Storage Costs Today!!!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*RZ3Yq2JYtmQ8DsfkuDT1uQ.png" /><figcaption>AWS S3 Cost Optimization</figcaption></figure><p>Amazon S3 charges you for storing your data which varies based on storage class, transferring data in/out (free within same region for copies), and the number of requests made to your buckets. Additional features like S3 Lifecycle policies, S3 Versioning, S3 Object Lock, and S3 Replication and integrated services can also add to your S3 bill.</p><p>To begin your S3 cost optimization journey, you must start with four pillars of cost optimization to better understand your storage characteristics.</p><p>These pillars are:</p><ol><li><strong>Application Requirements:</strong> It’s important to understand your workloads and define your application performance and data access requirements. Understanding how and when your data accessed, archive or deleted is critical to managing your storage cost.</li><li><strong>Data Organization:</strong> Ensuring your data has the proper buckets, object tags and prefixes which allows implementation of a fine-grained object lifecycle management strategy. Organizing allows you to filter groups of objects together, for optimized storage and analysis by tags, prefixes or both.</li><li><strong>Understand, Analyze and Optimize :</strong> It is recommended to monitor cost and usage proactively within your organization, not just when there are exceptions or anomalies. Accurate cost and usage monitoring allows you to understand how profitable organization units and products are, and allows you to make more informed decisions about where to allocate resources with your organization. This allows you to know your data access patterns and to know which storage class best suits your data, for performance and cost.</li><li><strong>Continuous Right Sizing :</strong> Right sizing revolves around choosing the right storage class for your data. Knowing which storage class your data currently occupies is the first step in identifying, if the storage class is the right storage class for your data..</li></ol><h3>Understanding your data access pattern</h3><p>It is important for organization to analyze their workload usage patterns overtime. AWS provides tools depending on whether the workload is predictable or unpredictable.</p><h3>Predictable Workloads</h3><p><strong>Amazon Storage Class Analysis</strong> observes data access pattern over a period of time. The result given can be use to improve the lifecycle policies by determining when to transition dats.</p><h3>Unpredicted Workloads</h3><p><strong>Amazon Intelligent Tiering</strong> optimizes cost by automatically moving data between three access tiers with the option to activate a fourth and fifth archive and deep archival tiers.</p><h3>AWS Tools to help organize your data</h3><ol><li><strong>Amazon S3 Inventory:</strong> This is a tool provided by Amazon S3 to help manage your storage. You can use it to audit and report on the replication and encryption status of your objects for business, compliance and regulatory needs.</li><li><strong>Amazon S3 Access Logging:</strong> This provide detailed records for the request that are made to a bucket.</li><li><strong>S3 Storage Lens:</strong> This delivers organizations wide visibility into objects storage usage, activity trends and makes actionable recommendation.</li></ol><h3>Conclusion</h3><p>By implementing these four pillars — application requirement understanding, data organization, cost analysis and optimization, and continuous right-sizing — you unlock significant cost savings in your S3 storage. Leverage AWS tools like Storage Class Analysis, Intelligent Tiering, Inventory, Access Logging, and S3 Storage Lens to gain insights and automate optimization. Remember, managing S3 costs is an ongoing process. By adopting these strategies, you’ll be well on your way to a more efficient and cost-effective S3 experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25b895d20414" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/optimizing-amazon-s3-for-cost-25b895d20414">Optimizing Amazon S3 for Cost</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GENERATING SSH KEY]]></title>
            <link>https://medium.com/@MicDiogo/generating-ssh-key-e98493aad74b?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/e98493aad74b</guid>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[secure]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Tue, 07 May 2024 13:15:26 GMT</pubDate>
            <atom:updated>2024-05-07T13:15:26.576Z</atom:updated>
            <content:encoded><![CDATA[<p>What is SSH?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XSJud9bslBnR-EGJRXmifQ.png" /></figure><p>SSH also known as Secure Shell or Secure Socket Shell, is a network protocol that gives users, particularly system administrators, a secure way to access a computer over an unsecured network.</p><p>SSH uses cryptography to authenticate and encrypt connections between devices.</p><p>SSH runs on top of the TCP/IP protocol suite — which much of the Internet relies upon. TCP stands for Transmission Control Protocol and IP stands for Internet Protocol.</p><p>SSH is “secure” because it incorporates encryption and authentication via a process called public key cryptography. Public key cryptography is a way to encrypt data, or sign data, with two different keys. One of the keys, the public key, is available for anyone to use. The other key, the private key, is kept secret by its owner. Because the two keys correspond to each other, establishing the key owner’s identity requires possession of the private key that goes with the public key.</p><p>The process of generating SSH keys involves creating a key pair on your local machine.</p><ol><li><strong>Private Key:</strong> This key should be kept secret and secure on your machine. It’s used to decrypt information and prove your identity when connecting to a server via SSH.</li><li><strong>Public Key:</strong> This key can be freely shared with servers you want to connect to. It allows the server to verify your identity during the SSH connection process.</li></ol><p>Here’s a breakdown of how to generate SSH keys on different operating systems:</p><p><strong>Linux and macOS:</strong></p><ol><li>Open your terminal application.</li><li>Type the following command, replacing your_email@example.com with your actual email address:</li></ol><pre>ssh-keygen -t rsa -b 4096 -C &quot;your_email@example.com&quot;</pre><p>This command specifies the type of key (RSA is common), key size (4096 bits is recommended for security), and adds a comment with your email address for identification.</p><p>Press Enter when prompted for a location to save the key pair. The default location is usually ~/.ssh/. You can accept the default or specify a different location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*M8b_FJ_WoujMi2rl-PzS_g.png" /><figcaption>CLI interface</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*f3iYrVGheSCmDzzcyxMfgQ.png" /><figcaption>CLI interface</figcaption></figure><p>If you want additional security, you can set a passphrase for your private key. When prompted, enter a strong passphrase and type it again for confirmation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*e_QPmSfZCEgcxwIe3otvxg.png" /><figcaption>CLI interface</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*zGi3h9sJlEe6HY6a33GkFA.png" /><figcaption>SSH key generated</figcaption></figure><p><strong>Windows (using Git Bash):</strong></p><ol><li>If you don’t have Git Bash installed, you can download Git for Windows which includes it: <a href="https://git-scm.com/downloads">https://git-scm.com/downloads</a></li><li>Open Git Bash.</li><li>Follow steps 2–4 from the Linux/macOS instructions above.</li></ol><p><strong>Once the process is complete:</strong></p><ul><li>Your private key will be saved as id_rsa (or the filename you specified) in the chosen directory.</li><li>Your public key will be saved as id_rsa.pub in the same directory.</li></ul><h3>View Your Public Key:</h3><p>Once the key pair is generated, you’ll see output indicating where your public key is saved. By default, it’s saved in the same location as the private key but with a <strong>.pub</strong> extension. You can view the public key by typing: cat ~/.ssh/id_rsa.pub</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*FqzLtCI1EzMSP6ypKO3SIQ.png" /><figcaption>SSH public key</figcaption></figure><p>Replace <strong>~/.ssh/id_rsa.pub</strong> with the path to your public key if you saved it in a different location or gave it a different name.</p><h3>Copy Your Public Key</h3><p>Copy the entire contents of the public key, starting with <strong>ssh-rsa</strong> and ending with your email address or username.</p><p>That’s it! You’ve successfully generated an SSH key pair. Now you can use the public key to authenticate with services that support SSH key authentication, such as GitHub, GitLab, or your server.</p><p>Other articles you can read;</p><ul><li><a href="https://awstip.com/aws-systems-manager-5057bdc35b53">AWS Systems Manager</a></li><li><a href="https://medium.com/@MicDiogo/aws-devops-tools-and-services-632534d32266">AWS DevOps Tools and Services</a></li><li><a href="https://awstip.com/ec2-auto-shutdown-with-lambda-1558f456f615">EC2 Auto-shutdown with Lambda</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e98493aad74b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launch Your First GCP VM in Minutes: A Beginner’s Guide.]]></title>
            <link>https://medium.com/@MicDiogo/launch-your-first-gcp-vm-in-minutes-a-beginners-guide-3ed606c060fd?source=rss-d88241774e50------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ed606c060fd</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[Michael Chidiogo Okoli]]></dc:creator>
            <pubDate>Tue, 07 May 2024 13:14:01 GMT</pubDate>
            <atom:updated>2024-05-07T13:17:23.960Z</atom:updated>
            <content:encoded><![CDATA[<p>So we are going to launch a virtual machine on the google cloud platform.</p><p>Head over to your google cloud console homepage, select the project you would want to use</p><h3>STEP 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDOfo_UpinY8U5t_E0Q0FA.png" /><figcaption>Google Cloud Console</figcaption></figure><p>Next click the menu icon at the left top to open the menu panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_LBS-6-4ZfRZiE0NnN6WSg.png" /></figure><h3>STEP 2</h3><p>Next click CREATE INSTANCE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L0-mjFgJQkUFJ5YGkhmTPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2TbIVJUcmjiwlbhNmMEgMg.png" /></figure><p>If it’s the first time you are accessing your Compute Engine, you will be prompted to ENABLE the Compute Engine API, after successfully enabling the API, click Compute Engine and select VM instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZA6KH0bIElhwFvZ6kfS8Q.png" /></figure><p>Now give your a Name, select your region and Zone, remember to select a region where you have a VPC resource created, without a VPC in that region your VM instance creation won’t work.</p><p>Under Machine configuration, leave the default selection as General purpose. There are other options like Compute Optimised; which are used for Application with heavy compute power, Memory Optimised: used for application with heavy memory usage, Storage Optimised: used for application that will be needing high volume of storage and lastly GPUs; this are used for graphic intense application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIVaL5pRRF8gCZFG7-xIkQ.png" /></figure><p>Leaving the default selection in Machine configuration, head over to ADVANCED CONFIGURATIONS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BoJEB9wS6d5YhsexXiie4g.png" /></figure><p>For Availability policies, leave it at Standard which is ideal for most workloads while the Spot option is ideal for workload that can be interrupted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wzxw-2TeVeYHgbKjBBQ8oQ.png" /></figure><p>Time limit can be set for the virtual machine which will perform an action configure by you, here we set a time limit of 5 hours, after 5 hours the instance will be Stop, other action include Terminate, Restart and Hibernate.</p><p>Leave all other options default and head over to Boot disk.</p><h3>STEP 3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmg1oOzmm3IqoLO7Qwi5vw.png" /></figure><p>Click CHANGE, here you select the image or snapshot which can be any operating system you want to want your virtual machine to launch with, Next select the type of boot disk type, they are various types;</p><ol><li>Balanced persistent disk</li><li>SSD Persistent Disk</li><li>Standard Persistent Disk</li><li>Extreme Persistent Disk</li><li>Hyperdisk Balanced</li><li>Hyperdisk Extreme</li><li>Hyperdisk Throughput</li><li>Local SSDs</li><li>Cloud Storage Bucket</li></ol><p>Here is a link to the documentation on this various <a href="https://cloud.google.com/compute/docs/disks/?&amp;_gl=1*1fm45lx*_ga*ODAzNzQ2MTI0LjE3MTQ1Nzk0MDc.*_ga_WH2QY8WWF5*MTcxNDk4MTE2MS45LjEuMTcxNDk4MTIyNS4wLjAuMA..&amp;_ga=2.132813575.-803746124.1714579407&amp;_gac=1.186126811.1714579407.Cj0KCQjw0MexBhD3ARIsAEI3WHJ9TvqU0WSqohF-Ll_7SybVjtn7ziYLVtgqjOBxbN68eGP8ASsug8UaApM9EALw_wcB#introduction">Boot Disk Type</a></p><p>I will leave the default boot disk type and operating system. Now input disk size of your choice, I will be going with the default size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*btkcVtdSwDQE0RFYCtN0iw.png" /></figure><p>Under Deletion rule leave the default option, this means when you delete the instance your boot disk will also get deleted so you won’t any charges for boot disk when your instance is has been deleted, the other option being “Keep boot disk” as the name suggest your instance will be deleted but your boot disk will remain and can be used to launch another virtual machine.</p><p>For Storage pool leave it unchecked</p><p>Under Encryption leave the default option which Google-managed encryption key, for the other options; CMEK and CSEK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yB4OLQHqnIbTC2q4rd2wPw.png" /></figure><p><strong>CMEK (Customer-Managed Encryption Key):</strong></p><ul><li><strong>Key Management:</strong> You create and manage the encryption keys yourself using a separate Key Management Service (KMS) offered by the cloud provider.</li><li><strong>Data Encryption:</strong> The cloud provider uses your keys to encrypt your data at rest.</li><li><strong>Key Storage:</strong> The KMS stores your encryption keys securely, separate from the data itself.</li></ul><p><strong>CSEK (Customer-Supplied Encryption Key):</strong></p><ul><li><strong>Key Management:</strong> You generate and manage the encryption keys entirely on your own.</li><li><strong>Data Encryption:</strong> You provide the keys to the cloud provider, who then uses them to encrypt your data at rest.</li><li><strong>Key Storage:</strong> You are responsible for the secure storage and management of your encryption keys.</li></ul><h3>STEP 4</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgdou-UQPFY7goHx7-3Gnw.png" /></figure><p>Under Access scopes leave the default option selected. Access scopes are a <strong>way</strong> of controlling a virtual machine (VM) instance’s access to Google Cloud services and APIs. They are essentially predefined sets of permissions assigned during VM creation, but this is being phased out in favor of IAM roles, which offer more robust and secure permission management.</p><p>Next, Firewall here you specify incoming traffic from outside a network into your virtual machine.</p><p>Leave the Observability option unchecked.</p><p>Observability -Ops Agent: This is an agent that will be installed in your virtual machine during the process of launching it, this agent collects key metrics and logs from your system and sends it to GCP for monitoring and diagnostic purpose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Elu3GV68oOWAuQRCWhwiwg.png" /></figure><p>Under Network Performance Configuration; There are two network interface card options</p><ol><li><strong>gVNIC:</strong> Developed specifically by Google for their Compute Engine platform. It’s the next-generation interface and the default option for newer machine types (Generation 3 and onwards). Designed for higher performance compared to VirtIO. It offers better throughput, especially for high-bandwidth configurations (50–100 Gbps). Additionally, gVNIC allows for introducing new network functionalities beyond VirtIO’s capabilities.</li><li><strong>VirtIO:</strong> An industry standard open-source virtual I/O (input/output) specification. It’s widely supported by various cloud providers, including Google Cloud Platform (GCP) on older machine types. While established and reliable, VirtIO might not be suitable for demanding network workloads due to potential performance limitations.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McQtZ54uh52m4lJU8yooDA.png" /></figure><p>Next select a network interface which also can be referred to as a VPC, under IP stack type leave the default option which is IPv4. Only IPv4 address will be assign to your virtual machine.</p><p>Next is Primary internal IPv4 address; there are two main options for assigning an internal IP address to your instance:</p><p>Ephemeral IP: This is a temporary address assigned from the pool available in your subnet.</p><ul><li><strong>Restarting the instance</strong> won’t affect its internal IP, but <strong>deleting and recreating</strong> the instance will give it a new one.</li><li>You can choose to have Google automatically assign an ephemeral IP (Ephemeral (Automatic)) or manually specify one (Ephemeral (Custom)).</li></ul><p>Static IP: If you need the IP address to remain the same even after deleting and recreating the instance, then you’ll need to select or create a static internal IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VPkEKERSyLD0ZOkT2N1TGg.png" /></figure><p>Leave the rest default and click <strong>DONE</strong></p><p>Scroll down to Disks, here you can add another disk to your virtual machine instance, under Security leave the default settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uZ7CNAG9-qcsCrhmz_w_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YKKDokD1ekuzDK53-aWdYg.png" /></figure><p>Under VM access the console and gcloud can streamline your initial VM connection. By default, they will handle SSH key generation on your behalf, saving you a manual step, but you can manually generate your own SSH keys.</p><p>Here is a guide on generating ➡️ <a href="https://medium.com/@MicDiogo/generating-ssh-key-e98493aad74b">SSH Keys</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7UGWpchFgBtUIqvGpJSjg.png" /></figure><p>Under the Automation section, here you specify a startup script. A startup script is a file that contains commands that run when a virtual machine (VM) instance boots. Startup scripts can be used to install software and updates, and to ensure that services are running within the virtual machine.</p><p>Note for Linux OS you use Bash script while for Windows you use local batch file, Command shell script, or unsigned PowerShell script.</p><p>At the right side of your console page you will see the Monthly estimate of your Virtual Machine instance with the current configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y6hiVl11FgQuW-yRc8Uc-w.png" /></figure><p>After reviewing, you click CREATE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hxXvfJlp2goR0BHnPji21A.png" /></figure><p>Congratulations !!! you have successfully launch a Virtual Machine with Google Cloud Platform.</p><h3>STEP 5</h3><p>Now it’s time to log into your instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D7kB7Kv1QodPkOvuKA1t3A.png" /></figure><p>At the right under connect click the SSH, automatically another browser will open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXtbzp1q_vvDaBebhW9VOw.png" /></figure><p>A pop screen will show requiring you to authorize</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wHXHy_32sxW3VxUYc26-5w.png" /></figure><p>Click authorize.</p><p>Congratulations you have successfully logged into your instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QB_p4RsaeTg1lcPiOmUYfg.png" /><figcaption>SSH-in-browser</figcaption></figure><h3>STEP 6</h3><p>To delete or terminate your instance, go back to the instance console page, select your instance and click delete, this will remove all resources you just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngSUPlsGjOm6zKoWcXWSjw.png" /><figcaption>Terminating instance</figcaption></figure><p>Thank you for joining us, and we wish you every success in your Cloud Journey !!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ed606c060fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>