<?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 Blessing Okwudo Ogbeh on Medium]]></title>
        <description><![CDATA[Stories by Blessing Okwudo Ogbeh on Medium]]></description>
        <link>https://medium.com/@boogbeh?source=rss-3648fdb8bc6e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FgCn4lyqlVjzUASg</url>
            <title>Stories by Blessing Okwudo Ogbeh on Medium</title>
            <link>https://medium.com/@boogbeh?source=rss-3648fdb8bc6e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:42:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@boogbeh/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[LAMP Web Stack Implementation]]></title>
            <link>https://medium.com/@boogbeh/lamp-web-stack-implementation-c11a6c0c85c7?source=rss-3648fdb8bc6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c11a6c0c85c7</guid>
            <category><![CDATA[aws-web-hosting]]></category>
            <category><![CDATA[virtual-server]]></category>
            <category><![CDATA[lamp-stack]]></category>
            <category><![CDATA[virtual-hosting]]></category>
            <category><![CDATA[virtual-server-hosting]]></category>
            <dc:creator><![CDATA[Blessing Okwudo Ogbeh]]></dc:creator>
            <pubDate>Thu, 11 Jul 2024 07:58:58 GMT</pubDate>
            <atom:updated>2024-07-11T07:58:58.604Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are like I was a few months back, then you are wondering ‘what is LAMP? Don’t worry this question is about to be answered. In this article, we will understand what LAMP is and we will also through the process of implementing a LAMP stack on an AWS Virtual server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*2jWrQwElfmuzJRs_k-zTKw.png" /><figcaption>LAMP Acronym</figcaption></figure><h4>What is LAMP?</h4><p>In its simplest form, LAMP is an acronym. It stands for Linux, Apache, MySql, PHP. It is the components that at it’s basics makes the internet run. We consume the internet in the form that runs today because of the LAMP stack.</p><p>In order to run a website, we must have a server; be it a virtual machine or even a laptop. Some kind of hardware is required to run the website. Now on this server, we have to stack the four LAMP components.</p><p><strong>Linux</strong> — is a free open-sourced software that is an operating system (OS). It is the underlying OS of the internet It comes in many distributions or flavors such as CentOS, Ubuntu, SUSE Linux among many others.</p><p><strong>Apache — </strong>This is the web server layer. It is also an open-source software. The Apache software is installed on the Linux OS unto the server. Apache understands the incoming website request and sends back the appropriate response to the requester. It is the actual web server if you think about the web server as a stand alone piece.</p><p><strong>MySql </strong>— This is a free open-sourced Structured Query Language. It is the database layer for the LAMP stack and website. It stores the data of the website including but not limited to user credentials.</p><p><strong>PHP —</strong> PHP is the most commonly used language used for scripting and writing website. it is also free and open-sourced.</p><h4>How does it all work?</h4><p>When a user makes a request to the server that’s running LAMP, the request hits Apache. Apache runs the code to PHP to send HTML back, Apache accesses the database to get any required data and sends all these back as response to the user in a web compliant method.</p><p>Now lets implement all we have learnt by setting up a LAMP stack on an Ubuntu 24.04 Linux server on AWS.</p><p>Login to <a href="https://signin.aws.amazon.com/signin?redirect_uri=https%3A%2F%2Fus-east-1.console.aws.amazon.com%2Fconsole%2Fhome%3FhashArgs%3D%2523%26isauthcode%3Dtrue%26oauthStart%3D1720542541766%26region%3Dus-east-1%26state%3DhashArgsFromTB_us-east-1_c8ca03adbbf4bdf3&amp;client_id=arn%3Aaws%3Asignin%3A%3A%3Aconsole%2Fcanvas&amp;forceMobileApp=0&amp;code_challenge=JXigS1wrIXHzSxOj2dmT8FLfby98mCqQgVW5x73XMJo&amp;code_challenge_method=SHA-256">aws console</a> and in the search bar, type in ‘EC2’ in the search bar. <a href="https://aws.amazon.com/pm/ec2/?gclid=Cj0KCQjwv7O0BhDwARIsAC0sjWNET59lauZhPZL_IWvQsByVs9IJ63KnR6TEzgpsKAXsgAqoSm_5mbEaAq3IEALw_wcB&amp;trk=47bc9fe4-4562-4b29-8c2d-b78e700efe22&amp;sc_channel=ps&amp;ef_id=Cj0KCQjwv7O0BhDwARIsAC0sjWNET59lauZhPZL_IWvQsByVs9IJ63KnR6TEzgpsKAXsgAqoSm_5mbEaAq3IEALw_wcB:G:s&amp;s_kwcid=AL!4422!3!647999771946!p!!g!!ec2!19685310464!143348646382">EC2 (Elastic Compute Cloud)</a> is the compute service we will be using to create our virtual server. Click on “Launch Instances”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-iFME2DjjQjl8U_nRyCqNw.png" /></figure><p>Now we are going to configure our EC2 instance! Give the instance a name and Select the Ubuntu Server 24.04 LTS (HVM) as the Amazon Machine Image (AMI).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*QTYFvHBMCET6og90kpMeAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*lgkMHW9LXTYKsNeAblE8zg.png" /></figure><p>Then, select ‘t2.micro’ as the instance type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jyhzcRShoZ8k96sMWypPkQ.png" /></figure><p>Next create a key pair; enter a name for the key pair and click “create”. This action will download a public key that would be connect to your instance at a later time. Don’t lose it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*0y4grd28YY5iblXxyPNYMw.png" /></figure><p>Click on “Edit” in Network configuration and create a new security group that allows SSH and HTTP inbound traffic from anywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*yX06d5mfizCJ-Qif_TxOBw.png" /></figure><p>Click “Launch Instance”. Your new instance should be seen when you click on “View Instances” in the lower right corner of the screen.</p><h4>Connecting to your EC2 from your local PC</h4><p>Once your instance is in a running state, click the check box to the left of the instance and then click “connect”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9qBLZoEFEELAmZzvAaS2Ew.png" /></figure><p>Select the option to connect using “SSH client”. Open up a terminal window and make sure that you have your public key pair in your current working directory.</p><p>Copy and paste the following command one after the other in the terminal to change mode and modify the .pem file’s permissions and to connect to the ubuntu instance using the pem file.</p><p>FYI: — Anchor tags &lt; &gt; will be used to indicate contents what must be replaced with your unique values. For example, if you have a file named “keypair123.pem” you must enter this information within the corresponding anchor tag: &lt; private-key-name &gt;</p><pre>$ chmod 400 &lt;private-key-name&gt;.pem</pre><pre>$ ssh -i &quot;&lt;key-pair-name&gt;&quot; ubuntu@ec2-&lt;public-ip-adderess&gt;.conpute-1.amazonaws.com&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*PU-o0GbKLPQaxvApGc480A.png" /></figure><p>Next, you will be asked if you want to continue connecting. Type ‘Yes’ and press Enter on your keyboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*9fDyEa7QXlLSi10xLFAFFw.png" /></figure><p>Great job! You have successfully connected to your Linux server in the Cloud environment.</p><h4>Installing Apache on the virtual environment</h4><p>Now we will install Apache on the Linux operating system unto the virtual server using Ubuntu’s package manager: ‘apt’</p><p>Begin by running the <strong>$ sudo apt update</strong> command to check for any available updates.</p><p>Next, run the following command to run the Apache package installation:</p><pre>$ sudo apt install apache2 -y</pre><p>You should see a terminal screen similar to the one below indicating that apache is being installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*k2O6hNza_A9wqwedZqpD-w.png" /></figure><p>Once completed, use the following command to verify that Apache2 is running as a service in our OS:</p><pre>$ sudo systemctl status apache2</pre><p>If status shows active (running), then that means Apache has been enabled! Nice work!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*QI5h3ow_4jSpZy2BQUfq5w.png" /></figure><p>Let’s now verify whether or not we can receive traffic. On the Terminal, use the following command to send a request the Apache HTTP Server on port 80.</p><pre>$ curl http://localhost:80</pre><p>You see should see some html script like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*hqJEQcxCi2F9t8gYS-RR2w.png" /></figure><p>And when you copy the public IPv4 address of the instance into a new browser tab, you should see the default apache webpage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PaQsvT1PkYkfd7Jxb74kGA.png" /></figure><h4>Installing MySQL on the virtual environment</h4><p>Next, we will install MySql. Begin by using the following command to install MySql</p><pre>$ sudo apt install mysql-server -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*yc_-TFa3haLlJmJJbmBTjQ.png" /></figure><p>Once the installation is complete, it is best practice to run a security script in order to add more security access to your database system. Use the following command and follow the prompts until mysql secure installation is complete.</p><pre>$ sudo mysql_secure_installation</pre><p>Now, you can check whether you can log in to the MySQL console by typing the following command. This command allows you to connect to the MySQL server as the administrative user (root user), which is implied by the use of ‘sudo’ part of the command:</p><pre>$ sudo mysql</pre><p>If you see the MySql prompt then it means you have successfully log onto the MySql server on your virtual machine. you can exit the MySql console by typing “exit”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*7YakAPZbHq52cTc4JcT3wA.png" /></figure><h4>Installing PHP on the Virtual Environment</h4><p>Congratulations! We have reached the final component of the LAMP web stack; PHP is general-purpose scripting language which processes code so that it can display dynamic content to the end user.</p><p>Now we need to install PHP but in addition to installing PHP, we also need to install php-mysql, which is a PHP module that allows PHP to communicate with MySQL-based databases, and libapache2-mod-php to allow Apache to handle PHP files.</p><p>We can install these three packages simultaneously in one command. Run the following command on your terminal:</p><pre>$ sudo apt install php libapache2-mod-php php-mysql -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*tb2jsYlqWtVmdDwGOwJ3Lw.png" /></figure><p>Great! Now our LAMP stack is completely installed.</p><p>In this section we are going to test out our stack by creating a virtual host using Apache.</p><h3>Creating a Virtual Host using Apache</h3><p>A virtual host allows us to have multiple websites located on a single machine! This will be used to test our setup.</p><p>Begin by creating the directory for project-lamp using the following command:</p><p>Note: Replace “project-lamp” with the name you give your project or with your domain.</p><pre>sudo mkdir -p /var/www/project-lamp</pre><p>we will then assign ownership to the directory and grant appropriate permissions for user, group and others using the following commands respectively. Run these commands one after the other</p><pre>sudo chown -R $USER:$USER /var/www/project-lamp  <br>sudo chmod -R 755 /var/www/project-lamp  </pre><p>Next, we need to create and open a new HTML file using vim, which is a text editor. This file is basically our webpage we will be serving using apache. Use the command below to open a blank file:</p><pre>sudo vim /var/www/project-lamp/index.html</pre><p>Now, paste in the following configuration by pressing on ‘i’ on the keyboard to engage the ‘insert’ mode, then paste the text below:</p><pre>&lt;html&gt;<br>    &lt;head&gt;<br>        &lt;title&gt;Welcome to PROJECT LAMP!&lt;/title&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;h1&gt;Success! Your Virtual Host is working!&lt;/h1&gt;<br>    &lt;/body&gt;<br> &lt;/html&gt;</pre><p>Once you have entered the text, press ‘esc’, type ‘:wq’, then press ‘Enter’ on your keyboard to write (save) and exit the vim editor.</p><p>Next, we need to create and open another file, this time a configuration file using vim also. Take not to maintain the directory in which you create the config file.</p><pre>sudo vim /etc/apache2/sites-available/project-lamp.conf</pre><p>Paste in the following while in insert mode in the text editor. Once done, save and quit.</p><pre>&lt;VirtualHost *:80&gt;<br>    ServerAdmin webmaster@project-lamp<br>    ServerName project-lamp<br>    ServerAlias www.project-lamp<br>    DocumentRoot /var/www/project-lamp<br>    ErrorLog ${APACHE_LOG_DIR}/error.log<br>    CustomLog ${APACHE_LOG_DIR}/access.log combined<br>&lt;/VirtualHost&gt;</pre><p>Now, we will use a series of commands.</p><p>To show the new file in the sites-available directory, use the following command. With this Virtual Host configuration, we are telling Apache to serve ‘project-lamp’, using ‘/var/www/project-lamp’ as its web root directory.</p><pre>$ sudo ls /etc/apache2/sites-available</pre><p>Next, use the ‘a2ensite’ command to enable the new virtual host</p><pre>$ sudo a2ensite projectlamp</pre><p>You may want to disable the default website that comes installed with Apache. This is an optional step. Run the following to disable Apache’s default website.</p><pre>$ sudo a2dissite 000-default</pre><p>To make sure your configuration file doesn’t contain syntax errors, run:</p><pre>$ sudo apache2ctl configtest</pre><p>Lastly, restart Apache so the changes take effect:</p><pre>$ sudo systemctl reload apache2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*njGz6RH9WQdpFnImlFQxkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*-CcdQ42y2rVDFNd3BHeHbQ.png" /></figure><p>Now, when you refresh the tab opening the EC2 Public IP address, we should see a new webpage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*3PuaZtDjgFC7B7A8SfwoQQ.png" /></figure><h4>Enable PHP on the website</h4><p>Finally, we need to change the directory index settings so that the index.html file no longer takes precedence over the index.php file. To do this, edit the /etc/apache2/mods-enabled/dir.conf file and adjust the order of the files listed in the DirectoryIndex directive. Use the following command to create the conf file:</p><pre>sudo vim /etc/apache2/mods-enabled/dir.conf</pre><p>And in the text editor, paste the following:</p><pre>&lt;IfModule mod_dir.c&gt;<br>    DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm<br>&lt;/IfModule&gt;</pre><p>Save and quit the editor. Next, we’ll create a PHP script. This will test whether or not PHP is correctly installed and configured on the server. Use the following command to create a new file named index.php inside your custom web root folder:</p><pre>sudo vim /var/www/project-lamp/index.php</pre><p>and then paste the following script in the open editor:</p><pre>&lt;?php<br>phpinfo();<br>?&gt;</pre><p>Lastly, we need to restart apache so changes can take effect</p><pre>sudo systemctl restart apache2</pre><p>Now our browser page should show the default PHP webpage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fp3CycND2dnCHjmiJw8UGA.png" /></figure><p>HURRAY! You did it! We have completed our LAMP Web Stack Implementation and tested our implementation by creating a virtual host on the stack.</p><p>Don’t forget to terminate your EC2 instance and it’s associated components on the AWS Console. Also, be sure to remove the file you created as it contains sensitive information using the following command:</p><pre>sudo rm /var/www/project-lamp/index.php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CzpfGvpECrY5DW5-vtLp-g.png" /></figure><p>Project Completed!!!!</p><p>Thank you for following through.</p><p>You can find a bash script to deploy the entire stack in my GitHub repo <a href="https://github.com/blessingogbeh/Web-Stack-Implementation---LAMP-Stack">here</a></p><p>Lets connect on <a href="https://www.linkedin.com/in/blessingogbeh/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c11a6c0c85c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My cloud Resume Challenge]]></title>
            <link>https://medium.com/@boogbeh/my-cloud-resume-challenge-d5a8484d9a69?source=rss-3648fdb8bc6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5a8484d9a69</guid>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[static-website-with-s3]]></category>
            <category><![CDATA[cloud-resume-challenge]]></category>
            <category><![CDATA[visitor-counter]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Blessing Okwudo Ogbeh]]></dc:creator>
            <pubDate>Wed, 26 Jun 2024 08:43:38 GMT</pubDate>
            <atom:updated>2024-06-26T08:43:38.953Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction</h4><p>The <a href="https://cloudresumechallenge.dev/docs/the-challenge/">Cloud resume challenge</a> is an innovative project designed by Forrest Brazil that serves as a guide for individuals trying to enter into a cloud industry role. It is a hands-on initiative that emphasizes some of the practical skills employed by cloud and DevOps engineers in their daily tasks. The challenge can be done using either of AWS, Microsoft Azure or GPC , I have carried out my own challenge using AWS cloud.</p><p>The project integrates a number of AWS services and other resources to deliver contents of a static website (in this case, a resume) to the internet over secure connection. The website has a visitor counter whose data is stored and retrieved from a cloud database. It also has the CI/CD portion of it that instantly deploys changes made to the code files to serve the end user without any system downtime.</p><figure><img alt="My Cloud Resume Challenge Architecture Diagram" src="https://cdn-images-1.medium.com/max/1024/1*Sq2Gz7g_n-Z0W62StYZxTw.png" /><figcaption>My Cloud Resume Challenge Architectural Diagram</figcaption></figure><p>In this article, I document the steps and strategies I took to compete my own variant of the challenge, the challenges I faced in the course of the work and how I was able to navigate those challenges. I have divided the work into 3 parts: the frontend, the backend and the Continuous Integration/Continuous Delivery (CI/CD) parts.</p><h4>Part 1 — Frontend</h4><p><em>Certification, HTML, CSS, Static Website, HTTPS, DNS</em></p><p>The Challenge advices to have a certification, although the project can be completed even before obtaining a certification. I already obtained my AWS Solutions Architect Associate certification before starting this project. If you don’t already have a certification, you can prepare for one while you’re working on the project.</p><p>My resume was written in html and styled with CSS. I have used an online template to make this process faster although it still took the largest chunk of time of this entire project. I customized it to meet my taste by making the necessary modifications.</p><p>The next stage is to create the static website.</p><p><strong><em>Prerequisites</em></strong><em> — You have a basic understanding of AWS services (S3, Route53, CloudFront, Certificate Manager, Lambda and Dynamo DB) and their terminologies.</em></p><p>Sign in to <a href="https://us-east-1.console.aws.amazon.com/console/home?region=us-east-1#">AWS console</a> and navigate to S3 from the search bar. Create a bucket with default configuration and a unique bucket name and upload the website code files to the new bucket. Next, navigate to the Route 53 console and create a public hosted zone. I purchased my custom domain name from namecheap so I needed to integrate it to route traffic to Route 53. In the newly created hosted zone are Name Server and SOA records, I copy the values of the ns records into my custom domain Name Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MXNbcvP-rd8urgzS_SiFYw.png" /><figcaption>Copy NS records values from hosted zone</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31SLn4izLryo4mdQvHJDcg.png" /><figcaption>Nameserver values pasted in custom DNS of custom domain</figcaption></figure><p>Next I create an A record in the hosted zone with simple routing policy that points to the S3 bucket endpoint. Moving on, I navigate to Certificate manager in the console and request a certificate (TLS/SSL)in the North Virginia region. This identifies the server as reputable and ensures communication through it is encrypted. Create a certificate, entered my domain name and aliases and validate this by creating a CNAME record in Route 53. Once the certificate is issued, I can now set up https connections. Finally for this part, I navigate to CloudFront and click create distribution; enter domain name point the origin to the s3 bucket endpoint, redirect http to https in the viewer section and select the SSL certificate just created, enter the root object (index.html) and click create distribution. Once the distribution is created, a policy is created which I use to update our S3 bucket policy to allow CloudFront access to the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*HWrCxsP3xxnkSgB9Wua2PA.png" /><figcaption>CloudFront generated policy for S3 bucket</figcaption></figure><p>Also a distribution endpoint is generated for us which we shall use to update the A record in route 53 hosted zone to point to the CloudFront distribution rather than the s3 bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4qOOmWrXNRaaYqRLVaCsQ.png" /><figcaption>A record updated to point to CloudFront rather than S3</figcaption></figure><p>So far, we have the following set in place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*54tbEVw8QoYG3IavYQnMZA.png" /><figcaption>Frontend Flow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*la6ZXmayCRDJED1b1RJNZw.png" /><figcaption>Live webpage over secure connection</figcaption></figure><h4>Part 2 — Backend</h4><p><em>DynamoDB, Lambda, Python, JavaScript</em></p><p>This part covers the API portion of the challenge and the stateful storage of the website visitor counter. This is where we build the viewers functionality where we can see how many viewers have visited the website. We have to set up the database that will store the count in DynamoDB. We would be using Lambda as API that will call to fetch the data count from our database.</p><p>Navigated to DynamoDB in the console, and in <strong>tables </strong>in the left navigation pane, create a table. Give it a name and a partition key, leave everything else as default. Now, I create an item with attributes ID and Views (values) in the newly created table. I was sure to use the appropriate datatypes for the attributes.</p><p>Next, we create a Lambda function through which our website will communicate with the database to fetch and update the visitor count. Create a new function in Lambda, pick a runtime, allow Lambda create a new role with basic permissions and finally, enable function URL in the advanced setting. This is URL we shall use in place of an API gateway. Write your code in python (if you’ve chosen python runtime when creating the function) to call the DynamoDB table to get and update the visitor count. You’ll use the python boto3 library if you’re using a python runtime to enable communication between Lambda and DynamoDB services. Remember to add the full access IAM role for DynamoDB to the Lambda function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*p4pPBFOVXQmAwgvKmIkrOg.png" /></figure><p>Moving on, we add a JavaScript counter function that calls the Lambda function URL and then add a script tag of the JavaScript counter function in the root file (index.html) to display the count data on the webpage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*eCwYeE3lTMBiaPWfC3141g.png" /><figcaption>JavaScript calls Lambda function URL</figcaption></figure><h4>Part 3 — Source Control &amp; CI/CD Frontend</h4><p>In this portion of the project, I use GitHub and GitHub actions for version control, so that when changes are made to the code, the changes are automatically deployed into our S3 bucket and synchronously served by CloudFront. This will significantly reduce the time it takes to make manual deployment each time there’s a code change to the website files.</p><p>In GitHub, I create a new public repository and add all the website files in the repository. To implement the CI/CD part, I create a directory called <strong>.github/workflow</strong> in root of my working directory. In this directory, I create a yaml file that runs a job of deploying any changes in the repo files to S3 once there’s a push to the main repo branch. I set up your AWS credentials and bucket name as secrets within GitHub Environment Variables for added security of my access credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*4gcTJQk38ToWzHulquvjFA.png" /><figcaption>CI/CD YAML Workflow</figcaption></figure><p>Now when there’s a change in code, such as the JavaScript visitor counter added earlier to the index.html, the changes are immediately deployed to the S3 and served by CloudFront to the public.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iQUw3vHNYz6mghZasaIHIA.png" /><figcaption>Webpage with visitor count</figcaption></figure><p>The challenge I experienced in this stage is that the S3 bucket required that public access be enabled meanwhile I had blocked public access to the bucket to serve its content only through CloudFront. To overcome this, I had to unblock public access to the bucket. While this allows the CI/CD workflow to function properly, that layer of security has been stripped. I hope to find a way around this in the future.</p><p>Please note that I have up all the resources I used in AWS and taken down the webpage but my code files for the project are still available in my github repo.</p><p>Project files Store Github Repo:</p><p><a href="https://github.com/blessingogbeh/cloud-resume-challenge-cicd-frontend">GitHub - blessingogbeh/cloud-resume-challenge-cicd-frontend: This repository for the continuous integration and continuous deployment of frontend part of my cloud resume challenge</a></p><p>Thanks for reading &amp; if you have any doubts in this project you can reach out to me over social media:</p><p><a href="https://www.linkedin.com/in/blessingogbeh/">LinkedIn<br></a><a href="https://github.com/blessingogbeh">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5a8484d9a69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I passed the AWS Solutions Architect Associate Certification Examination — SAA-C03 on my first…]]></title>
            <link>https://medium.com/@boogbeh/how-i-passed-the-aws-solutions-architect-associate-certification-examination-saa-c03-on-my-first-e21f02f8209f?source=rss-3648fdb8bc6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e21f02f8209f</guid>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-solutions-architect]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <dc:creator><![CDATA[Blessing Okwudo Ogbeh]]></dc:creator>
            <pubDate>Sat, 27 Apr 2024 22:41:45 GMT</pubDate>
            <atom:updated>2024-04-27T22:41:45.395Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I passed the AWS Solutions Architect Associate Certification Examination — SAA-C03 on my first attempt | My 50-day preparation strategy</h3><blockquote>“<em>One Day or Day One. You Decide” </em>— Paulo Coelho</blockquote><p>Its either the trap of one day or the promise of day one.</p><p>In this article, I narrate the steps and strategies I took that led to me obtaining the Amazon Web Services Solutions Architect Associate (AWS SAA) Certification on my first sitting for the examination. I also include links to the resources that I used and found helpful.</p><figure><img alt="AWS Certified Solutions Architect Associate badge" src="https://cdn-images-1.medium.com/max/340/1*N79la-vgq0gyHLVvDOEdOg.png" /></figure><p>Note: The SAA certification examination is a challenging exam. According to the statistics, given by <a href="https://certwizard.com/blog/dont-fail-aws-solutions-architect-test#:~:text=The%20AWS%20Certified%20Solutions%20Architect">CertWizard</a>, only 28% of the AWS SAA-C03 candidates are successful at the first attempt, which leaves a 72% failure rate.</p><p><a href="https://d1.awsstatic.com/training-and-certification/docs-sa-assoc/AWS-Certified-Solutions-Architect-Associate_Exam-Guide.pdf">AWS advice</a> that candidates sitting for the exam should have a minimum of 1-year professional experience working with AWS Services. However, you stand a chance of passing the examination after gaining required knowledge through AWS training courses and significant hands-on practice. The examination covers four core domains including.</p><p>· Designing Secure Architectures</p><p>· Designing Resilient Architectures</p><p>· Designing High Performing Architectures</p><p>· Designing Cost-Optimized Architectures</p><p><strong>My Journey</strong></p><p>I had just completed a <a href="https://onlineexeced.mccombs.utexas.edu/online-cloud-computing-course">post graduate program in cloud computing</a> offered by Great Learning in partnership with University of Texas Austin McCombs School of Business that covered the AWS cloud services before deciding to sit for the AWS SAA exam. I have also gotten my hands messy with a lot of cloud projects and labs as part of the program requirement and done some personal projects as well to help me gain more knowledge on the AWS services and their integrations.</p><p>Now let’s dive unto the steps and strategies I implemented once I was ready to sit for the certification exam.</p><ol><li><strong>Book the exam.</strong></li></ol><p>I had put it to myself that I was going to take the exam twice (I even included timestamps), and each time I moved the date I proposed to write the exam because I wasn’t prepared; as a matter of fact, I wasn’t preparing for the exam; not with the rigor that was required of me to pass the exam. So, I decided to go all in and <a href="https://aws.amazon.com/certification/?gclid=CjwKCAjwxLKxBhA7EiwAXO0R0Apr6wsl_6OGAkcmsvhBEuH0qq6Jz_4ZBiPcoaOs9fcI7H-Z7OVsixoCX0kQAvD_BwE&amp;trk=eeda51ac-3bae-4e1b-8ec9-b23a6c64afcf&amp;sc_channel=ps&amp;ef_id=CjwKCAjwxLKxBhA7EiwAXO0R0Apr6wsl_6OGAkcmsvhBEuH0qq6Jz_4ZBiPcoaOs9fcI7H-Z7OVsixoCX0kQAvD_BwE:G:s&amp;s_kwcid=AL!4422!3!653513300831!e!!g!!aws%20certification%20registration!19919601810!154577905664">book the exam</a>.</p><p>I set a realistic date — one that will provide me just enough time to prepare for the examination so that I can have a high chance of passing on my first attempt. I took a general review questions test on the SAA Certification examination to access my current stand and identify my knowledge gap and used this information to book a date that was 50 days away from the first day of preparation.</p><p>2. <strong>Source Study Materials</strong></p><p>After doing some research on the materials and notes that prepare candidates for the SAA C03 examination, I settled for the AWS Solutions Architect Associate (SAA — C03) Exam <a href="https://www.amazon.com/-/es/Ben-Piper/dp/1119982626">Study Guide</a> by Ben Piper and David Clinton. My choice of this study guide was based on the reviews of candidates who have used the study guide and passed and the content of the study guide which included the four core domain of the certification exam.</p><p>The study guide contains 20–30 end of chapter review questions and provides solutions and explanation to every question. Every chapter also contains exercises that are important for building hands-on experience. The guide also comes along with a 900 Questions question-bank and whitepaper flashcards which can be accessed through the <a href="https://books.wiley.com/series/sybex-test-prep-and-certification/">Wiley site</a> after purchasing a copy of the study guide.</p><p>3. <strong>Draft a Study Plan and adhere to it</strong>.</p><p>It is now study time. I took a look into my daily routine and made out time that I would use specifically to study for the exam. Everyday at the same time, I was there and I studied. For me, this ‘convenient’ time of maximum concentration was between 1am and 5 am everyday!. It was tedious especially since this was when I would normally be asleep, but in a few weeks into my new formed routine, I was adjusting and would not feel the stress of it so much during the day anymore.</p><figure><img alt="A zealous learner studying at night" src="https://cdn-images-1.medium.com/max/1024/1*D9jeothrY2HJR7w-ILXYdA.jpeg" /><figcaption>Photo by HEY ERRY: <a href="https://www.pexels.com/photo/a-silhouette-of-a-man-using-a-computer-in-a-dark-room-14386896/">https://www.pexels.com/photo/a-silhouette-of-a-man-using-a-computer-in-a-dark-room-14386896/</a></figcaption></figure><p>This new formed routine meant I had to sleep earlier than usual so that I get enough sleep for the study times ahead. I aimed at studying 8–10 pages of the study guide per day, some days I fell short of this goal and other days I surpassed it. The important thing is that I showed up everyday for the 50 days that I studied for the certification examination.</p><p>4. <strong>Practice Questions</strong></p><p>I found this step to be one of the most important steps to passing the examination but for best results, the preceding steps cannot be ignored to get here. Practice questions helped me sharpen my understanding of the key concepts that are part of the examination requirements and to develop an approach to answering the examination questions.</p><p>By day 35 of my 50-day study journey, I had completed studying the study guide including the chapters that highlight the exam requirements i.e. the four core domains. It was now time for practice, practice, practice.</p><p>I purchased the <a href="https://www.udemy.com/course/aws-certified-solutions-architect-associate-amazon-practice-exams-saa-c03/?couponCode=LETSLEARNNOW">AWS Certified Solutions Architect Associate Practice Exams</a> by Jon Bonso of Tutorials Dojo on Udemy and used this to practice even more scenario-based questions. This practice exam set properly simulates the actual exam with detailed explanation to each question at the end of each question set. The explanation provides an overview of the topic, reference links to AWS documentation, and a rationale on why the option is correct or incorrect.</p><p>At this stage, I’m feeling a bit confident with my knowledge of the concepts and the structure of the examination, but preparation continues with even more practice questions. I also utilized the tutorial sessions of YouTube content creators like <a href="https://www.youtube.com/watch?v=U9vojCKG7Ww&amp;t=190s">Peace Of Code</a> that answer practice questions for the SAA-C03 examination. I found this recourse very helpful.</p><h4>Exam day Confidence</h4><p>It was exam day and even though confident, I was nervous. This is the first ever certification exam I would take and with the statistic pass rate hovering over my head, I was nervous. I was constantly reminded by my husband of the effort I had put into study and how it had prepared me for the exam.</p><h4>Hurray a <a href="https://www.credly.com/badges/90b0a8bf-647a-4039-bcc9-737db944909b/public_url">Credly Badge</a>!!!</h4><figure><img alt="Image of Certification badge" src="https://cdn-images-1.medium.com/max/643/1*f0hr1ztmocILmtykGjHaKg.png" /><figcaption><a href="https://www.credly.com/badges/90b0a8bf-647a-4039-bcc9-737db944909b/public_url">https://www.credly.com/badges/90b0a8bf-647a-4039-bcc9-737db944909b/public_url</a></figcaption></figure><p>A few hours after my online proctored examination, I got my badge and was very excited. The hard work paid off!!!</p><p>…. And the journey continues…</p><p>In summary, the strategy I used was;</p><p>· <strong>Book the exam </strong>I found that this made me more aware of a timeline to the goal I set. Give enough time for preparation when choosing a date.</p><p>· <strong>Get study Materials</strong> I recommend the ones I used.</p><p>· <strong>Adjust Daily routine </strong>and make time for studying.</p><p>· <strong>Ace it</strong>!</p><p>Thank you for taking the time to read my story, I hope you find it helpful.</p><p>Follow me here on medium as I plan to document my journey to a cloud industry role through story telling and let’s connect on <a href="https://linkedin.com/in/blessingogbeh">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e21f02f8209f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>