<?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 Emmanuel Latunde on Medium]]></title>
        <description><![CDATA[Stories by Emmanuel Latunde on Medium]]></description>
        <link>https://medium.com/@latundeemmanuel?source=rss-63d5687ee882------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wzBFZaVShGEUIrgmcJJRSA.jpeg</url>
            <title>Stories by Emmanuel Latunde on Medium</title>
            <link>https://medium.com/@latundeemmanuel?source=rss-63d5687ee882------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:18:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@latundeemmanuel/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[Building a Secure Automated Backup Pipeline on AWS]]></title>
            <link>https://medium.com/@latundeemmanuel/building-a-secure-automated-backup-pipeline-on-aws-3ea3ff2c7790?source=rss-63d5687ee882------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ea3ff2c7790</guid>
            <category><![CDATA[cloud-engineering]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[cloud-security]]></category>
            <dc:creator><![CDATA[Emmanuel Latunde]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 14:26:44 GMT</pubDate>
            <atom:updated>2026-11-21T13:48:34.937Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1kHxSxsECciNXBMIchSfKQ.png" /></figure><h4>This is a practical walkthrough of Network Isolation, Least-Privilege IAM, and Serverless Auditing</h4><p>At first glance, the requirements for this project did not look simple enough.</p><p>I needed to build a private application server that had <strong>no public IP address</strong>, backed up automatically, could not delete its own backups, and triggered a database audit log every time a new backup was uploaded. All without any human involvement.</p><p>My first thought was honestly, <em>“I might be cooked.”</em></p><p>Not because I had never heard of services like EC2, S3, IAM, or Lambda, but because connecting them into a single secure, functioning architecture felt overwhelming.</p><p>Looking back, I realised the project only seemed difficult because I was focusing on the finished architecture rather than the individual pieces. Once I went back to my notes and started breaking the problem down layer by layer, each requirement became much easier to understand. One service solved one problem. Then another service solved the next problem. Before long, the entire pipeline began to take shape.</p><p>In this article, I’ll walk through what I built, why each AWS service is included in the architecture, the exact implementation process I followed, the challenges I encountered along the way, and a few improvements I would make if this were deployed in a real production environment.</p><h3>The Big Idea in Plain English</h3><p>Before getting into AWS services, here is what this entire pipeline aims to achieve in everyday terms. Think of a busy shop that wants to protect its daily cash and sales records.</p><p>First, you do not leave the main accounting desk out on the roadside where anyone walking past can reach it. You keep it hidden in a private back office.</p><p>Second, you do not leave all the records sitting on that desk. Every few minutes, a copy is pushed into a one-way drop safe. Staff in the office can drop new items in, but they do not have the key to open the safe or remove what is already inside. Even if an intruder breaks into the office, or someone makes a careless mistake, everything already in the safe remains untouched.</p><p>Finally, imagine the safe is connected to an automatic receipt book kept elsewhere. The exact second anything drops into the safe, a new line is written in that book with the time and details, without any human having to remember to do it.</p><p>That is the entire project. The AWS services below are simply the digital tools used to enforce those three rules: keep the server hidden, make backups one-way, and automatically record every upload.</p><h3>Architecture Overview</h3><p>Each AWS service had a specific responsibility.</p><h4><strong>Networking</strong></h4><ul><li><strong>Amazon VPC:</strong> Provides an isolated private network for the entire solution.</li><li><strong>Public Subnet:</strong> Hosts the Bastion Host used for administrative access.</li><li><strong>Private Subnet:</strong> Hosts the application server with no public IP address.</li><li><strong>Bastion Host:</strong> Acts as the controlled entry point for SSH access into the private server.</li><li><strong>NAT Gateway (temporary):</strong> Provides the private server with temporary outbound internet access to install software during setup, then is deleted to cut costs and tighten security.</li><li><strong>S3 Gateway VPC Endpoint:</strong> Creates a private path from the VPC to Amazon S3 so backup traffic never touches the public internet.</li></ul><h4><strong>Compute and Automation</strong></h4><ul><li><strong>Private Application Server (EC2):</strong> Runs the workload and executes the scheduled backup script.</li><li><strong>systemd:</strong> Keeps the data-generation service running in the background and restarts it automatically if it fails.</li><li><strong>cron:</strong> Schedules the backup script to run every ten minutes.</li></ul><h4><strong>Storage and Security</strong></h4><ul><li><strong>Amazon S3:</strong> Stores the compressed backup archives in a private bucket.</li><li><strong>IAM Role:</strong> Grants the EC2 instance temporary, least-privilege credentials to upload backups without storing static access keys on the server.</li></ul><h4><strong>Serverless Audit Trail</strong></h4><ul><li><strong>AWS Lambda:</strong> Triggers automatically whenever a new backup lands in S3.</li><li><strong>Amazon DynamoDB:</strong> Stores a permanent audit record for every uploaded backup.</li></ul><p>The result is a pipeline in which each component performs a single responsibility, making the solution easier to secure, troubleshoot, and maintain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YhIqB6-_5jOPZ8qgb2QG1A.jpeg" /><figcaption>Architecture Diagram</figcaption></figure><h3>Step-by-Step Implementation</h3><h3>Part 1: Building the Network Foundation</h3><p>Everything else depended on getting the network right first. Before thinking about backups or automation, I needed to ensure that the application server remained isolated from the public internet while still being accessible for administration.</p><h3>Implementation Steps</h3><ol><li>Create a VPC (10.0.0.0/16) with one public subnet and one private subnet, an Internet Gateway, and correct route tables.</li><li>Launch a bastion in the public subnet (SSH from My IP only) and an app server in the private subnet with no public IP (SSH only from the bastion’s security group).</li><li>Create a temporary NAT Gateway to install software on the private server. Delete it once setup is complete.</li><li>Create an S3 Gateway VPC Endpoint and attach it to the private route table, so the server can reach S3 without a NAT Gateway.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gweepQFi8d1tjEJN9Wh3PQ.png" /><figcaption><em>VPC Resource Map</em></figcaption></figure><p>This part taught me why network design is so important in cloud engineering. A private server should remain private throughout its lifetime. The NAT Gateway only existed long enough to bootstrap the server. Once the AWS CLI was installed, there was no reason to continue paying for it or to allow internet-bound traffic from the private subnet.</p><p>Replacing the NAT Gateway with an S3 Gateway Endpoint achieved two goals. First, it reduced cost because Gateway Endpoints do not incur hourly NAT Gateway charges. Second, it improved security because communication with Amazon S3 now remained entirely within AWS’s private network rather than traversing the public internet.</p><p>I also placed the private subnet and the temporary NAT Gateway in the same Availability Zone to avoid cross-AZ data transfer charges during setup. In a real production environment, I would spread critical resources across multiple Availability Zones to prioritise high availability over that small cost saving.</p><h3>Part 2: Securing Storage with IAM</h3><p>With the network complete, the next objective was securing the backup storage.</p><p>The project specifically required that the application server be able to upload backups but not delete them. That requirement pointed toward the Principle of Least Privilege.</p><h3>Implementation Steps</h3><ol><li>Created a private Amazon S3 bucket with <strong>Block Public Access</strong> enabled.</li><li>Created an IAM Role for the EC2 instance.</li><li>Attached a policy granting only: s3:PutObjecton arn:aws:s3:::&lt;bucket-name&gt;/backups/*</li><li>Attached the IAM Role to the application server.</li><li>Verified that uploads succeeded and that deleting an uploaded backup returned <strong>Access Denied</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ssxWvhJMG1Yl0fnGhmIOg.png" /><figcaption><em>The IAM Role policy</em></figcaption></figure><p>One of the biggest security lessons from this project was understanding why IAM Roles are preferred over access keys.</p><p>Access keys are static credentials. If they are copied or exposed, anyone who possesses them can access AWS resources until they are revoked.</p><p>IAM Roles work differently.</p><p>When an EC2 instance assumes an IAM Role, AWS automatically provides temporary credentials that rotate automatically. There are no secrets stored inside scripts, configuration files, or environment variables. Even if someone gains access to the instance, there are no permanent access keys waiting to be stolen.</p><p>Restricting the role to only PutObject also reduced the blast radius of a compromised server. The application could upload backups exactly as intended, but it had no permission to remove existing ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PL8vbiXbyBfnGbLDEWDrjQ.png" /><figcaption><em>Successful Upload, Access Denied for deleting.</em></figcaption></figure><h3>Part 3: Automating the Application</h3><p>Infrastructure alone is not particularly interesting unless it supports an application. To simulate a real workload, I needed the server to continuously generate data that could be automatically backed up later.</p><h3>Implementation Steps</h3><ol><li>Created the /var/app/data directory.</li><li>Wrote a systemd service called data-generator.service. Configured the service to append timestamped log entries every 30 seconds.</li><li>Enabled automatic startup using: sudo systemctl enable --now data-generator</li><li>Wrote a backup.sh Bash script that:</li></ol><ul><li>uses set -euo pipefail</li><li>creates timestamped archives and uploads them to Amazon S3</li><li>records success or failure inside /var/log/backup.log</li><li>deletes the archive after successful upload</li></ul><p>5. Scheduled the backup script every ten minutes using the root crontab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbfYbPuVjyBsYMvfYTlJaw.png" /><figcaption>backup.log</figcaption></figure><p>Using systemd ensured the service started automatically on boot, restarted if it ever stopped unexpectedly, and kept running in the background even after I closed my SSH session. Unlike a script launched manually in a terminal, it behaved like a real production service.</p><p>Likewise, using set -euo pipefail inside the backup script helped catch hidden scripting errors that might otherwise go unnoticed.</p><p>Automation like this is one of the reasons Linux remains so powerful in cloud environments. Once configured correctly, the server continues performing repetitive tasks without manual intervention.</p><h3>Part 4: Building the Serverless Audit Trail</h3><p>The final functional requirement was creating an automated audit trail. Rather than allowing the application server to communicate directly with the audit database, the architecture uses an event-driven design.</p><h3>Implementation Steps</h3><ol><li>Created an on-demand DynamoDB table called <strong>backup-log</strong>.</li><li>Created an AWS Lambda function using Python and granted the Lambda execution role permission to write to DynamoDB and write to CloudWatch Logs</li><li>Configured Amazon S3 to trigger Lambda whenever a new object was uploaded into the backups/ prefix.</li><li>Verified that every uploaded backup automatically created a DynamoDB record.</li></ol><p>I chose On-Demand capacity for the backup-log table because the pipeline writes only a single record every 10 minutes. For low, intermittent traffic like this, paying per request makes far more sense than paying for provisioned capacity sitting idle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XO05YG4UKz4DUJNekDLARg.png" /><figcaption><em>Lambda Trigger</em></figcaption></figure><p>This separation of responsibilities makes the architecture cleaner.</p><p>The application server only knows how to upload backups. Amazon S3 only knows how to store them. AWS Lambda reacts automatically whenever a new object appears. DynamoDB simply stores the audit records.</p><p>Each service performs one responsibility without tightly coupling itself to the others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2m_HN6OxqDubaxSvgmxMMA.png" /><figcaption><em>DynamoDB Records</em></figcaption></figure><h3>Part 5: Verification and Cleanup</h3><p>Building the architecture was only part of the project. The final step was verifying that every component behaved exactly as intended before cleaning up the environment to avoid unnecessary AWS charges.</p><h3>Implementation Steps</h3><ol><li>Confirmed that at least three backup archives had been successfully uploaded to the S3 bucket.</li><li>Verified that each upload automatically created a corresponding record in the <strong>backup-log</strong> DynamoDB table through the Lambda trigger.</li><li>Deleted the temporary NAT Gateway and released its Elastic IP. Tested internet connectivity from the private application server using: curl -m 5 https://example.com</li></ol><p>As expected, the request timed out because the private subnet no longer had internet access.</p><p>4. Ran the backup script again and confirmed that the backup was still uploaded successfully to Amazon S3 through the S3 Gateway VPC Endpoint.</p><p>5. Opened Amazon CloudWatch Logs to verify that the Lambda function executed successfully and processed the upload event.</p><p>6. Created an AWS Budget alert to monitor spending before beginning resource cleanup.</p><p>7. Deleted all AWS resources created for the project, then confirmed the AWS consoles were empty.</p><p>This verification stage demonstrated that the architecture behaved exactly as designed. The application server could no longer reach the public internet after the NAT Gateway was removed, yet it continued to communicate with Amazon S3 via the Gateway VPC Endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*or97fWaFMuwIVIO3JNHFYw.png" /><figcaption><em>Failed </em><em>curl request alongside a successful backup upload</em></figcaption></figure><p>At the same time, every successful upload automatically triggered the Lambda function, which recorded the backup details in DynamoDB without requiring any manual intervention.</p><p>Finally, cleaning up every resource after testing is an important habit in cloud engineering. Besides avoiding unnecessary charges, it reinforces the idea that cloud environments should be treated as temporary, reproducible infrastructure rather than permanent manually configured systems.</p><h3>Challenges I Encountered</h3><p>This project definitely involved more troubleshooting than I expected.</p><p>i. The biggest challenge came during the networking phase.</p><p>After creating the NAT Gateway, I expected installing software on the private server to take only a few minutes. Instead, every apt update attempt failed with Network is unreachable. I spent nearly four hours trying to understand what was wrong.</p><p>I eventually realised my private subnet had not been explicitly associated with the correct private route table, and the NAT Gateway had not been properly configured within the public subnet. Once I corrected the routing configuration, everything started working.</p><p>ii. Another issue appeared while configuring the systemd service.</p><p>The service refused to write to /var/app/data/app.log because the directory belonged to the root user while the service was running as the ubuntu user. Updating the directory ownership using chown resolved the problem immediately.</p><p>iii. The final issue came while configuring the serverless audit trail. Backups were uploading successfully, but DynamoDB remained empty.</p><p>After reviewing the Lambda logs, I noticed that my DynamoDB table name did not match the table name referenced inside the Python code. Updating the table reference and confirming the IAM permissions fixed the issue, after which every upload immediately generated an audit record.</p><h3>What I Would Improve in a Production Environment</h3><p>Although the project meets the examination requirements, there are several improvements I would make before deploying a similar solution in a production environment.</p><ol><li><strong>Enable S3 Versioning and Object Lock:</strong> Blocking s3:DeleteObject prevents the server from deleting files, but s3:PutObject still allows overwriting an existing backup if a new upload uses the exact same filename. Enabling S3 Versioning protects against accidental overwrites, and adding S3 Object Lock makes backups truly immutable, so even an administrator cannot erase them during a set retention period.</li><li><strong>Configure Lifecycle Policies:</strong> Older backups could automatically transition to lower-cost storage classes, such as Amazon S3 Glacier, and expire once they are no longer required, helping keep long-term storage costs under control.</li><li><strong>Encrypt Everything with AWS KMS:</strong> Although AWS encrypts S3 and DynamoDB by default, I would explicitly enforce server-side encryption using customer-managed keys in AWS KMS for tighter control over who can access and decrypt backup data.</li><li><strong>Replace the Bastion Host:</strong> In production, I would replace it with AWS Systems Manager Session Manager. This removes the need to expose SSH ports or manage private key files while still giving administrators secure, auditable access.</li><li><strong>Add Monitoring and Alerts:</strong> I would configure Amazon CloudWatch alarms paired with Amazon SNS notifications so the team is alerted immediately whenever a backup fails or the Lambda function throws an error.</li><li><strong>Define Everything with Infrastructure as Code (IaC):</strong> Building and tearing down this stack manually through the console works well for an exam, but in a real company I would define the entire architecture using Terraform or AWS CloudFormation. That makes the environment reproducible and prevents billing traps, such as idle NAT Gateways or unattached Elastic IPs.</li></ol><h3>Final Thoughts</h3><p>By the end of this project, I had memorised my key pair name, route tables, security groups, subnet CIDR blocks, and probably every IP address I created.</p><p>More importantly, I gained a much deeper appreciation for how AWS services fit together to solve real engineering problems. None of the individual services was particularly difficult on its own, but combining networking, identity management, Linux automation, storage, and serverless computing into a single secure pipeline required thinking about the system as a whole.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BShufcPZA7FWBcG_sNkYHQ.png" /></figure><p>This project reminded me that cloud engineering is about designing systems in which every component has a clear responsibility, permissions are tightly controlled, and automation reduces both operational effort and human error.</p><p>It was challenging, frustrating at times, and incredibly rewarding. I am tired, but in the best way possible. The best way to learn cloud engineering is to build systems that resemble the ones companies rely on every day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ea3ff2c7790" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Terminal Stopped Looking Intimidating Once I Understood What It Was Really For]]></title>
            <link>https://medium.com/@latundeemmanuel/the-terminal-stopped-looking-intimidating-once-i-understood-what-it-was-really-for-074ea95aa957?source=rss-63d5687ee882------2</link>
            <guid isPermaLink="false">https://medium.com/p/074ea95aa957</guid>
            <category><![CDATA[cloud-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Emmanuel Latunde]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 06:01:01 GMT</pubDate>
            <atom:updated>2026-11-18T06:01:01.487Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOrqgOGYQlG7nYYAF6uiYg.png" /></figure><p>If you’ve watched cloud engineers, DevOps engineers or system administrators work, you’ve probably seen it too: a black window filled with commands.</p><p>For someone used to clicking through menus and folders, it can look intimidating.</p><p>My first thoughts were, “How do I memorise all of this?” “Why are they still doing this?” “Surely there’s an easier way to manage a computer.”</p><p>The more I worked with Linux, the clearer the answer became.</p><h3>The Terminal Isn’t the Point</h3><p>What makes the terminal useful is direct control over the operating system.</p><p>The operating system is the software that runs a computer, such as Windows, macOS, or Linux. It sits between your apps and the hardware. Apps don’t talk directly to the processor (the computer’s brain), the memory (its short-term workspace) or the storage (where files are kept). The operating system manages those and decides how apps use them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LS5FZw9newbGLNIGtYD7sg.png" /></figure><p>In cloud engineering, this matters because almost everything eventually runs on an operating system:</p><ul><li>An AWS EC2 instance</li><li>An Azure Virtual Machine</li><li>A Google Compute Engine instance</li></ul><p>They’re all computers running an operating system somewhere.</p><p>So learning Linux means learning the environment where many modern applications actually live.</p><h3>Small Commands, Bigger Ideas</h3><p>As I got more comfortable, I realised the commands themselves weren’t the interesting part.</p><p>Creating folders. Moving files. Reading a file. Installing software. Checking what’s running. Each one solves a small problem.</p><p>For example, I can create a folder and move a file into it with two short lines:</p><p>mkdir projects<br> mv notes.txt projects/</p><p>Put together, these small commands show how a system is organised. Instead of clicking through folders, I was starting to understand the structure behind them. Instead of relying on menus, I was talking to the operating system directly.</p><p>That shift in perspective mattered more to me than memorising any single command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g0N5V8lyD7saLE3utODzZw.png" /></figure><h3>A Simple Exercise in Access Control</h3><p>One exercise this week stood out.</p><p>I set up a small fictional company with three users:</p><ul><li>Alice, a developer</li><li>Bob, from finance</li><li>Charlie, the administrator</li></ul><p>The task was to create users, assign them to groups, and set permissions so each person could only access what they were supposed to.</p><p>I tested it by logging in as Bob and trying to open Alice’s files. I got ‘Permission denied’.</p><p>It wasn’t a big project, but it mirrors a problem organisations deal with every day:</p><p>Who should be allowed to see this file?<br> Who should be able to change it?<br> Who should have administrator powers?</p><p>Linux answers these through users, groups and permissions. The commands I used were:</p><ul><li>adduser creates a new user account</li><li>usermod changes a user’s settings, such as which group they belong to</li><li>chmod changes who can read, edit or run a file</li><li>chown changes who owns a file</li></ul><p>Behind all of them is one simple principle: access should be intentional.</p><p>That idea goes well beyond Linux. It shows up in cloud platforms, databases, company software, and almost any system where more than one person works together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8Wz2-mzW-mbUvzb52FX7w.png" /></figure><h3>More Than Learning Commands</h3><p>One lesson I’m taking from this week: Linux isn’t really about commands. It’s about understanding systems.</p><p>The terminal is the interface. The commands are the language. What matters is knowing what you’re asking the operating system to do, and why.</p><p>That’s a more useful goal than trying to memorise a cheat sheet.</p><p>I suspect a lot of cloud engineering works the same way. Tools will change. New services will appear. Platforms will evolve. But understanding the systems underneath them will stay valuable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=074ea95aa957" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Engineering Is About Building Systems That Survive]]></title>
            <link>https://medium.com/@latundeemmanuel/cloud-engineering-is-about-building-systems-that-survive-26e548a2a2e2?source=rss-63d5687ee882------2</link>
            <guid isPermaLink="false">https://medium.com/p/26e548a2a2e2</guid>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Emmanuel Latunde]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 17:25:12 GMT</pubDate>
            <atom:updated>2026-11-15T19:06:36.327Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIImjA0xyIoiNPDKBavXlw.png" /></figure><p>When most people hear the word “cloud,” they usually think about storing files online. They picture photos in Google Drive, documents in Microsoft OneDrive, or backups floating somewhere on the internet.</p><p>While storage is part of it, cloud computing is much bigger than that. Almost every digital product we use today depends on cloud infrastructure. When you order food, transfer money, stream a movie, or use a social media platform, there is a complex system working behind the scenes to deliver that experience.</p><p>The question I have been asking lately is: where does all of that actually run?</p><h4><strong>Software needs somewhere to exist</strong></h4><p>I used to think of software as just code. A developer writes it, tests it, releases it.</p><p>But code alone can’t serve a single user. Think of it as a recipe. A recipe on its own can’t feed anyone. You also need a kitchen to cook in, a pantry to keep ingredients, roads for deliveries and a guard on the door.</p><p>For software, that means:</p><ul><li>computers to run the app</li><li>databases to store information</li><li>networks to move data around</li><li>security to control who gets in</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rF6QlyBDGmvrFp-gc424nw.png" /></figure><p>This is where cloud engineering becomes important. It focuses on designing, building, and managing the infrastructure that allows these software systems to operate reliably in the real world.</p><h4><strong>Renting the infrastructure</strong></h4><p>Before the cloud, companies bought their own servers (powerful computers), kept them in data centres, paid for power and cooling, and fixed hardware failures themselves.</p><p>They had full control, but it was an expensive guessing game. You paid a huge amount up front, and you had to predict how many customers you’d get and buy enough for your busiest day. If you guessed wrong, getting more could take weeks or months.</p><p>The cloud flipped that. Companies now rent computing power over the internet and use as much or as little of it as they need. A startup can launch without building a data centre. A company that suddenly grows can add capacity in minutes, not weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05-xcrO5eHuGeljSvw9U6A.png" /></figure><h3>It’s about how much you want to take care of</h3><p>As I go deeper into my Cloud Engineering program at AltSchool Africa, I’m realising the cloud really comes down to one question: <strong>how much responsibility does a team want to take on?</strong></p><p>The easiest way I’ve found to think about it is a restaurant:</p><ul><li>Infrastructure as a Service (IaaS): This provides raw, virtualised computing resources (such as virtual machines and storage). You have the most control, but you have to manage the operating systems and applications yourself.</li><li>Platform as a Service (PaaS): This provides the environment. It allows developers to build and deploy applications without worrying about managing the underlying servers.</li><li>Software as a Service (SaaS): This delivers complete, ready-to-use applications directly through the internet.</li></ul><p>The more the provider handles, the easier it is to run. The more your team handles, the more you can customise. Finding the right balance is a big part of designing systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNg_FVWl4HXCI3TOsqJIkA.png" /></figure><h3>The part nobody sees</h3><p>An app isn’t finished when it’s released. Someone has to keep watching it, fixing it, securing it and updating it.</p><p>A cloud engineer works where software, infrastructure and day-to-day operations meet. That might mean releasing updates automatically rather than by hand, or monitoring performance to keep costs under control. The goal is the same: build systems that can support real users.</p><p>What fascinates me most is that it reveals a hidden layer behind everything we use.</p><p>Users see applications. Engineers see systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k8B_N3A-IZRCpDJAZwRNug.png" /></figure><p>Building software isn’t only about adding features. It’s about building the foundation that lets those features keep working when thousands of people use them.</p><p>That’s the side of engineering I’m focusing on, and I’m only getting started.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26e548a2a2e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Secure Two-Tier AWS Network with a Bastion Host: What I Learned]]></title>
            <link>https://medium.com/@latundeemmanuel/building-a-secure-two-tier-aws-network-with-a-bastion-host-what-i-learned-3388fd07065f?source=rss-63d5687ee882------2</link>
            <guid isPermaLink="false">https://medium.com/p/3388fd07065f</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-engineering]]></category>
            <dc:creator><![CDATA[Emmanuel Latunde]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 20:52:58 GMT</pubDate>
            <atom:updated>2026-10-25T20:52:58.229Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the biggest lessons I’ve learned while studying cloud engineering is that making a server accessible is easy, but making it accessible securely is the real challenge.</p><p>For one of my recent assessments, I was tasked with building a secure two-tier network from scratch in Amazon Web Services (AWS). The objective was to design a network in which a private server remained completely isolated from the public internet while still being accessible for administration via a bastion host.</p><p>In this article, I’ll explain what a bastion host is, walk through how I built my architecture, and share issues I encountered along the way and how I resolved them.</p><h3>What is a Bastion Host?</h3><p>A bastion host, sometimes called a jump box, is a virtual machine placed in a public subnet that serves as the only secure entry point to private resources.</p><p>Imagine a company with a restricted area. Instead of giving every employee their own entrance, everyone enters through a single security checkpoint where access is monitored and controlled. A bastion host works in much the same way.</p><p>Rather than assigning public IP addresses to every server, only the bastion host is exposed to the internet. Any administrative access to private servers must first pass through it.</p><p>In my architecture, the private Ubuntu server had no public IP address, making it unreachable directly from the internet. The only way to connect to it was to first SSH into the bastion host, then make a second SSH connection to the private instance.</p><p>To further strengthen security, the private server’s Security Group accepted SSH traffic only from the bastion host’s Security Group, rather than from arbitrary IP addresses.</p><h3>Building the Network</h3><h3>1. Creating the VPC and Subnets</h3><p>I began by creating a custom VPC using the CIDR block 10.0.0.0/16.</p><p>Within the VPC, I created two subnets in the same Availability Zone:</p><ul><li>public-subnet (10.0.1.0/24)</li><li>private-subnet (10.0.2.0/24)</li></ul><p>Separating these subnets forms the foundation of a two-tier architecture by ensuring public-facing resources remain isolated from internal infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RYt6mpkryCNRADipyPdXbQ.png" /><figcaption>VPC Resource Map</figcaption></figure><h3>2. Configuring Internet Access</h3><p>Next, I attached an Internet Gateway (IGW) to the VPC.</p><p>I then created two route tables:</p><ul><li>The <strong>public route table</strong> contained a default route (0.0.0.0/0) pointing to the Internet Gateway, allowing internet connectivity.</li><li>The <strong>private route table</strong> contained only the default local VPC route, preventing direct internet access.</li></ul><p>This ensured that only resources inside the public subnet could communicate directly with the internet.</p><h3>3. Configuring Security Groups</h3><p>With networking in place, I configured Security Groups to control access.</p><p>For the bastion host:</p><ul><li>Allowed SSH (Port 22)</li><li>Restricted the source to <strong>My IP</strong>, ensuring only my computer could initiate SSH connections.</li></ul><p>For the private virtual machine:</p><ul><li>Allowed SSH (Port 22)</li><li>Used the <strong>bastion host’s Security Group</strong> as the source instead of an IP address.</li></ul><p>This configuration follows the principle of least privilege by allowing only the bastion host to communicate with the private server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vRE2jU7sxqTCq-srOoNChQ.png" /></figure><h3>4. Launching the EC2 Instances</h3><p>Finally, I launched two Ubuntu EC2 instances.</p><p>The bastion host was deployed in the public subnet with a public IP address enabled, while the private VM was launched inside the private subnet without a public IP address.</p><p>At this point, the architecture was complete. All administrative access to the private server had to pass through the bastion host.</p><h3>Challenges I Encountered</h3><h3>Challenge 1: SSH Authentication Failed</h3><p>When I tried connecting from the bastion host to the private VM, SSH returned:</p><p>Permission denied (publickey)</p><p>After reviewing both EC2 instances, I realised I had accidentally launched the private VM using a different key pair.</p><p>Since the private key on the bastion host didn’t match the key pair associated with the EC2 instance, authentication failed.</p><p>To resolve this, I terminated the instance and launched a new private VM using the correct key pair.</p><p>Although it seemed like a small mistake, it reinforced how critical SSH key management is when working with cloud infrastructure.</p><h3>Challenge 2: Unprotected Private Key</h3><p>After recreating my private key file on the bastion host, SSH produced another error warning that the key file permissions were too open.</p><p>Linux created the file with permissions allowing other users to read it. OpenSSH refuses to use private keys that are accessible to others because doing so would compromise authentication.</p><p>The fix was straightforward:</p><pre>chmod 400 bastion-kp.pem</pre><p>This restricted access so only my user account could read the key.</p><p>After changing the permissions, the SSH connection worked successfully, allowing me to access the private server through the bastion host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*fmVaBR74-oT5ce-7bgWUHA.png" /><figcaption>Successful SSH Login</figcaption></figure><h3>Lessons I Took Away</h3><p>Before this assessment, services such as VPCs, route tables, Internet Gateways, and Security Groups felt like separate AWS components. Building the architecture manually showed me how each one contributes to the overall security of the network.</p><p>I also gained a better appreciation for why bastion hosts remain an important security pattern. Instead of exposing every server to the internet, administrators interact through a single controlled entry point, while sensitive resources remain protected within private subnets.</p><ul><li>Security groups should follow the principle of least privilege.</li><li>SSH private keys must always be properly protected.</li><li>Building cloud infrastructure manually provides a much deeper understanding than relying solely on managed services.</li></ul><p>Thanks for reading! If you’re also learning AWS or cloud engineering, I’d love to hear how you approach securing your cloud environments or what lessons you’ve picked up from your own projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3388fd07065f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>