<?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 Cynthrus Achigwe on Medium]]></title>
        <description><![CDATA[Stories by Cynthrus Achigwe on Medium]]></description>
        <link>https://medium.com/@cynthrus.achigwe?source=rss-5c5aab5b8e47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ob6npvvZWUQvgxvE</url>
            <title>Stories by Cynthrus Achigwe on Medium</title>
            <link>https://medium.com/@cynthrus.achigwe?source=rss-5c5aab5b8e47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 15:58:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cynthrus.achigwe/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[My AltSchool 2nd Semester Project: Deploying a Website on AWS with EC2, Ansible, Load Balancer, and…]]></title>
            <link>https://medium.com/@cynthrus.achigwe/my-altschool-2nd-semester-project-deploying-a-website-on-aws-with-ec2-ansible-load-balancer-and-4e5085c8b656?source=rss-5c5aab5b8e47------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e5085c8b656</guid>
            <dc:creator><![CDATA[Cynthrus Achigwe]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 23:25:54 GMT</pubDate>
            <atom:updated>2025-10-03T23:25:54.672Z</atom:updated>
            <content:encoded><![CDATA[<h3>My AltSchool 2nd Semester Project: Deploying a Website on AWS with EC2, Ansible, Load Balancer, and S3</h3><p><strong>Introduction:</strong></p><p>As part of my AltSchool Africa Cloud Engineering 2nd Semester Examination, I was tasked with deploying a website on AWS. The project required me to:</p><ul><li>Launch two EC2 instances (Free Tier).</li><li>Use Ansible to configure Nginx and deploy an HTML page.</li><li>Set up a Load Balancer to distribute traffic between the EC2 instances.</li><li>Deploy the same HTML file to Amazon S3 using Static Website Hosting and compare results.</li></ul><p>This project tested not just my technical knowledge, but also my ability to troubleshoot and understand how different AWS services integrate to deliver a full solution.</p><ol><li><strong>Launching EC2 instance</strong></li></ol><p>The first step was to create two EC2 instances running <strong>Ubuntu 20.04</strong></p><p>Before launching the 2 instances i proceeded to:</p><p><strong>Create Virtual Private Cloud (VPC):</strong> This is a private section of the cloud where you launch and manage your cloud resources. The load balancer relies on the VPC for its core networking and security.</p><p><strong>Subnets:</strong> When you create a load balancer you must specify at least two <strong>public subnets</strong> across different Availability Zones (AZs).I created 2 subnets -use1-az1 (us-east-1d) and use1-az2 (us-east-1a) which the load balancer (to be created) will deploy its network interface.</p><p><strong>Security Groups:</strong> You attach a <strong>security group</strong> directly to the load balancer to control the inbound traffic it accepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNaqaVdeN7of3ikSegyWQw.png" /></figure><p><strong>Internet Gateway configuration</strong>: This manages the routing and connectivity of the load balancer. configured mine to allow connectivity from anywhere (0.0.0.0/0).</p><p>Route Table:</p><ul><li>Created a Route table for my internet gateway.</li><li>Added a route: 0.0.0.0/0 → Internet Gateway (meaning &quot;send all internet traffic through the IGW&quot;). Associated both public subnets with this route table.</li></ul><p>After these set ups, i launched the instances differently.</p><p>Why: This is to ensure that the two instances are running on different subnet in the different AZ while the other configs like the security group and key pair remain same for both.</p><p>The instances was created and confirmed running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*amR_pywbR4EFoY531wVsmQ.png" /></figure><p>2. <strong>Ansible Automation:</strong></p><ul><li>Wrote my ansible playbook to Install NGINX as my webserver, ensure NGINX is started on boot, and deploy the cloned HTML page on the EC2 instances.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9nzfffHKDKjk25PmBMV3Q.png" /></figure><p>In the inventory.ini , i specified the EC IP addresses to enable connection and deployment of the nginx and HTML on both. Pingged after and got the “Ping Pong” in green (lol).</p><p>Proceeded to run the playbook, it first i ran into errors due to indentation but got right on multiple trials.</p><p><strong>3. Creating the Load balancer</strong>:</p><p>I created my load balancer and selected the initial configurations made (Security group, Target machines etc).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1nEBHD6PpdBWjSlwe63Tg.png" /></figure><p><strong>4. Setting up S3 bucket as a static website</strong></p><p>. Created bucket (c-project-bucket)</p><ul><li>Uploaded index.html</li><li>Enabled Static website Hosted (Found in Properties &gt;Static Website Hosting)</li><li>Made bucket public with the policy below:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*DgiRqE-NOleSzwAIaZeLGQ.png" /></figure><p>Copied the url and launched on new browser and successfully displayed the content of the html.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GfPWptINq4jb1HtDnJcNkQ.png" /></figure><p>Comparing S3 bucket and Load balancer:</p><p>S3 is easier and automatically scalable for static sites, while EC2 + Load Balancer offers more control and flexibility for dynamic applications but with higher management overhead.</p><p><strong>Cheers to a truly tasking yet successful semester!</strong> I look forward to diving deeper into the very things that make us “magicians” — the countless challenges, issues, and bugs that sometimes make us want to give up, and the breakthroughs that make us feel like Harry Houdini.</p><p>Here’s to grinding even harder next semester, refining our skills and moving closer to perfection!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e5085c8b656" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>