<?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 Hendersonerik on Medium]]></title>
        <description><![CDATA[Stories by Hendersonerik on Medium]]></description>
        <link>https://medium.com/@hendersonerik2472?source=rss-a09fe991d8dd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZS-PWNlupGiezTYXC6906g.jpeg</url>
            <title>Stories by Hendersonerik on Medium</title>
            <link>https://medium.com/@hendersonerik2472?source=rss-a09fe991d8dd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:21:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hendersonerik2472/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[Launching an Apache web server with Auto Scaling in AWS]]></title>
            <link>https://medium.com/@hendersonerik2472/launching-an-apache-web-server-with-auto-scaling-in-aws-1d48800b2d86?source=rss-a09fe991d8dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d48800b2d86</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[auto-scaling-groups]]></category>
            <dc:creator><![CDATA[Hendersonerik]]></dc:creator>
            <pubDate>Mon, 12 May 2025 07:14:07 GMT</pubDate>
            <atom:updated>2025-05-12T07:14:07.470Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*sp1XJv0nqNsF8o50aA7jtQ.png" /></figure><h3>Case Study:</h3><p>In this case study, we examine a bank that aims to improve its infrastructure by migrating its website to AWS. The bank seeks to enhance scalability, reliability, and security. To achieve this, they plan to use three public subnets in conjunction with an Auto Scaling Group. Their goal is to distribute instances across the subnets, automatically configure each with an Apache web page, and ensure traffic is efficiently distributed.</p><h3>The Benefits of Migrating to AWS</h3><p>The bank choosing to migrate to AWS will grant several benefits that their previous infrastructure could not. The first benefit that I want to list is increased reliability. In this project we will be using multiple subnets each with their own autoscaling group. This will allow the webservers to scale up in case of increased traffic from visitors, and scale back down if the traffic dies down.</p><h3>Getting Started:</h3><p>In order to make this project work i’ll have to create and use a variety of resources within aws. I will need to create a VPC and create subnets for the EC2 instances. The next step will be creating a launch template in order to enable autoscaling, and set each instance to install the apache webserver. The EC2 instances will need security groups, and conditions to autoscale properly to offset traffic</p><h3>Creating the VPC</h3><ol><li>Navigated create a VPC by the going to the following VPC — &gt; Your VPC — - &gt; Create VPC.</li><li>Created a VPC Name</li><li>Listed the IPv4 CIDR Range</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*LPtdaDedMwg-m4Z22NS8qA.png" /></figure><h3>Creating the private subnets</h3><ol><li>Navigated the VPC Dashboard and selected Subnets</li><li>Clicked Created subnets and selected the VPC I created.</li><li>Created a Subnet name for Each Subnet</li><li>Choose an IP range within the VPC’s CIDR block range</li><li>Repeated the process 3 times. AWS Allows you to create all three subnets at once</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*WBa1iSGjWG-icgGw7ponjg.png" /></figure><h3>Creating an EC2 Launch Template</h3><ol><li>Navigated to the EC2 Dashboard &gt; Launch Template &gt; Create Launch Template</li><li>Create a name for the launch template</li><li>Selected an AMI. Amazon Linux</li><li>Choose the instance type</li><li>Went into Advanced Details &gt; User Data</li><li>Entered in the following code</li></ol><pre>#!/bin/bash<br>yum update -y<br>yum install -y httpd<br>echo &quot;&lt;h1&gt;Welcome to My Custom Apache Page&lt;/h1&gt;&quot; &gt; /var/www/html/index.html<br>systemctl enable httpd<br>systemctl start httpd</pre><h3>Creating an Autoscaling group</h3><ol><li>Navigate to the EC2 Dashboard and Select AutoScaling Groups &gt; Create AutoScaling Group</li><li>Choose Name for Autoscaling Group</li><li>Choose the created launch template</li><li>Selected the proper VPC</li><li>Selected all three subnets</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*lIlWufjhPY-PChqDYtYxYQ.png" /></figure><p>6. Set the desired Capacity for 2</p><p>7. Set the scaling limits Min — 2 and the Max — 5</p><p>8. Set the target auto scaling to 50% cpu utilization</p><p>9. Created the following autoscaling group</p><h3>Creating the application load balancer</h3><ol><li>Navigated to the EC2 Dashboard &gt; Load Balancers &gt; Create Load balancer</li><li>Selected to create Application load balancer</li><li>Named the Application Load Balancer</li></ol><p>Error: Unable to attach the subnets that I created into the application load balancer. They did not show up as selected. Did some research and discovered that subnets have to be public. This involved creating route tables for the subnets to make them public, and creating an internet gateway.</p><h3>Creating an internet gateway</h3><ol><li>Navigated to VPC Dashboard &gt; Internet Gateway &gt; Create internet gateway</li><li>Created a name for the Internet gateway</li><li>Linked the internet gateway to my VPC</li></ol><h3>Editing the Subnets to make them public</h3><ol><li>Navigated to VPC Dashboard &gt; Route Table &gt;Edit Route</li><li>Added route 0.0.0.0/0 to Internet Gateway</li></ol><h3>Creating the Application Load Balancer again</h3><ol><li>Navigated to the EC2 Dashboard &gt; Load Balancers &gt; Create Load balancer</li><li>Selected to create Application load balancer</li><li>Named the Application Load Balancer</li><li>Selected the VPC</li><li>Selected the 3 private subnets. (Had to recreate each subnet to be in different AZ zones)</li><li>Created a new security group to allow port 80 traffic</li><li>Set listening port to 80 and created target group</li></ol><ul><li>Target type: Instances</li><li>Selected the VPC</li><li>Health Check Protocol Http</li><li>Created Target group</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AsdKTo9LkGfRadSoN4a7zA.png" /></figure><p>8.Created Load balancer</p><h3>Conclusion:</h3><p>This is what I did to complete my project. It allowed the bank to transfer their webservers to AWS and provides them with additional redundancy, security and scalability. This infrastucure will help them with increased traffic and reduce the instances when they are not needed saving money. If you have taken the time to read my article I appreciate it. Thank you for your time and please provide feedback</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUT9x0m7KBEW19yMXa9uVA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d48800b2d86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hosting a website on AWS using an Apache Webserver]]></title>
            <link>https://medium.com/@hendersonerik2472/hosting-a-website-on-aws-using-an-apache-webserver-d8f671a169db?source=rss-a09fe991d8dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8f671a169db</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[articles-in-english]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Hendersonerik]]></dc:creator>
            <pubDate>Sat, 26 Apr 2025 19:42:41 GMT</pubDate>
            <atom:updated>2025-04-26T19:42:41.410Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*ceCgKWi7cpZkH5D0N4TzAg.jpeg" /></figure><h3>Overview:</h3><p>In this article, I’ll walk through a project where I was tasked with helping a company migrate its website services to Amazon Web Services (AWS). I’ll explain the reasons behind the company’s decision to make the move, the benefits they gained from it, and the steps I followed to complete the migration.</p><h3>Use case:</h3><p>A bank has decided to move its website to the cloud, and use an Apache webserver. As a frequent target of modern cyberattacks, the bank requires a secure and scalable solution capable of handling multiple users simultaneously. AWS addresses these needs and more, and I will go into the steps I used to complete this task.</p><h3>Why did we choose to use Apache?</h3><p>The Apache Web Server, often referred to simply as Apache, is a free and open-source software used to host websites and web applications. As a free and open source project we get the benefit of no additional cost, and the ability to fully customize the experience for the customers. It is also known as cross platform service with other operating systems, and is known to be reliable and secure.</p><h3><strong>First Steps</strong></h3><ol><li>Log into an AWS Amazon account with administrative privileges</li></ol><p>2. Create an EC2 instance. I decided for this project to use a t2.micro EC2 for the free service. There are a few settings we need to setup while making this EC2 Image</p><ul><li>Select which OS you want to use. I choose a Linux OS for this task</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*BQvhSOS1YyhmPRGTAsMzDQ.png" /></figure><ul><li>Next Create a key pair to be able to access the EC2 image using SSH</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9-ahSJodQDax_aqB-T1qNQ.png" /></figure><ul><li>Scroll down to the ‘Advanced details’ and look for the ‘user data’ box</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*I7BQWMZC2e1Y-geUZgzBXA.png" /></figure><ul><li>For this example instead of going into the EC2 Image using SSH and setting up the Apache web service manually. We will enter in a script to speed up the process in the user data box</li><li>You can enter in the following script to get the result mentioned above</li></ul><pre>#!/bin/bash<br>yum update -y<br>yum install -y httpd<br>systemctl start httpd<br>systemctl enable httpd<br>echo &quot;&lt;h1&gt;Apache is running on Amazon Linux 2&lt;/h1&gt;&quot; &gt; /var/www/html/index.html</pre><p>Next we will have to wait until the EC2 image is running.</p><p>When the EC2 Image is done go into the EC2 Image and then go into your networking section. In that section you should see the ip address of EC2 Image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRzB45Le6Tt4dKVGcQii2A.png" /></figure><p>You should be able to copy the ip address and insert it into the browser of your choice.</p><p>If you’ve followed all of the following steps you should get this when you test your website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*E_PVEgPCS69r1RhOaP7KqQ.png" /></figure><h3>Conclusion</h3><p>Creating and hosting the website is quick and easy, and will give the company several benefits in terms of price, security and customization. Using the Apache web service won’t cost the company any additional funds. The bank can enhance disaster recovery processes and uphold regulatory compliance requirements.</p><p>Thank you for taking the time to read my article!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*jCE00om94DCuBpXD" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8f671a169db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On Tap: A Website Brewed Fresh for the Digital Age]]></title>
            <link>https://medium.com/@hendersonerik2472/on-tap-a-website-brewed-fresh-for-the-digital-age-4071746d9a79?source=rss-a09fe991d8dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/4071746d9a79</guid>
            <dc:creator><![CDATA[Hendersonerik]]></dc:creator>
            <pubDate>Mon, 14 Apr 2025 03:49:19 GMT</pubDate>
            <atom:updated>2025-04-14T03:49:19.642Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*JD8q-WW6vjzfmY-6" /></figure><p>-Implementing Amazon EC2, S3, and CloudWatch</p><p>-Engineering Collaboration</p><p>We teamed up with a brewery that had a big personality — and even bigger beer selection. The problem? No one could keep up with all the awesome new brews unless they physically walked through the doors. They were growing fast, but their old-school approach needed a little modern love.</p><p>That’s where <strong>Team Green from Level Up In Tech</strong> came in.</p><p>After chatting with them, we figured out what they really needed:</p><p>● <strong>Reliability</strong> — We went with <strong>Nginx</strong> to keep things running smoothly, even when traffic picks up.</p><p>● <strong>Easy Updates</strong> — With <strong>HTML</strong>, we could make quick changes to feature new beers on the site.</p><p>● <strong>Room to Grow</strong> — As the brewery scaled, we made sure their web setup could grow right with them.</p><p>We pulled out some solid tools for the job:</p><p>● <strong>Amazon S3</strong> — Great for posting weekly beer updates and handling images.</p><p>● <strong>EC2 with Nginx</strong> — Gave their site the muscle to handle high traffic without breaking a sweat.</p><p>● <strong>CloudWatch</strong> — Our behind-the-scenes monitor, keeping tabs on CPU and networking performance.</p><p>We conducted end-to-end testing to ensure all site features performed smoothly — with special focus on the S3 integration powering the beer menu. We also verified that brewery staff could easily update the beer list via S3, ensuring a simple, reliable content management process without the need for technical support.</p><p>In the end, we gave them a website that’s as fresh and dynamic as their beer lineup — and now their customers can tap in from anywhere.</p><h3>Meet the Squad: Team Green</h3><p>Together, Team Green delivered a site that’s scalable, easy to manage, and always ready to showcase the latest brews — no technical headaches, just smooth sips of success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/0*XR65uZig4SQVOalc" /></figure><p><a href="https://youtu.be/JMwi8vFXUpo?si=rqvSNTzUsZJqhy5z">https://youtu.be/JMwi8vFXUpo?si=rqvSNTzUsZJqhy5z</a></p><p><a href="https://medium.com/@ashleygomez.kc"><strong>https://medium.com/@ashleygomez.kc</strong></a></p><p><a href="https://medium.com/@ernestomaximum2"><strong>https://medium.com/@ernestomaximum2</strong></a></p><p><a href="https://medium.com/@KhaleefHaughton"><strong>https://medium.com/@KhaleefHaughton</strong></a></p><p><a href="https://medium.com/@ArmyFellaTurndTech"><strong>https://medium.com/@ArmyFellaTurndTech</strong></a></p><p><a href="https://medium.com/@hendersonerik2472"><strong>https://medium.com/@hendersonerik2472</strong></a></p><p><strong>*******************************************************</strong></p><p><strong>The STEPS to make this thing shake:</strong></p><p><strong>Step 1: Create an AWS EC2 Web Server:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MQ3v_6ieOB6480GO" /></figure><p><strong>Deploy a web server using Amazon EC2 to host the brewery’s website, which will present information about the brewery and its beer selection.</strong></p><p>❖ Create a new EC2 Instance through Amazon AWS console</p><p>❖ I named my Instance “Pod-ProjectGreen”</p><p>❖ I kept everything the same such as the AWS linux</p><p>❖ I changed the Amazon Machine Image (AMI) to Amazon Linux 2 AMI (HVM) — Kernel 5. 10, SSD Volume Type</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3s7v0uVnfCNXXFnx" /></figure><p>❖ Create a Key Pair Name, I chose “Pod-ProjectGreen”</p><p>❖ Create a security group to allow SSH Traffic and HTTP traffic</p><p>❖ Launch Instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uEHvrjmpR-FSnLZg" /></figure><p>❖ Made sure that the instance is running and the status check is passed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i5nWNUu9b7uwN_-p" /></figure><p>❖ Highlight the instance and connect instance to be able to SSH into Linux Terminal</p><p>❖ Copied the highlighted command and went into my terminal and pasted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xVUUgDZiPXqeTS7q" /></figure><p><strong>Next up — use Nginx on the EC2 instance due to its efficiency in handling high numbers of connections, which is crucial for periods of high traffic.</strong></p><p>❖ In my terminal, I typed <strong>“sudo amazon-linux-extras install nginx1”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c5kB9lwQP-Vsjp6d" /></figure><p>❖ I updated the terminal</p><p>❖ Command <strong>“sudo systemctl start nginx” </strong>to start nginx</p><p>❖ <strong>“sudo systemctl enable nginx” </strong>to enable it</p><p>❖ I ran a status check to make sure that it was started and enabled. <strong>“Sudo systemctl status nginx”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HBt4R3ik5v_moWCJ" /></figure><p>❖ Went back to Amazon EC2 instance and copied the “<strong>Public IPv4 address”</strong></p><p>❖ Pasted this into a regular browser and BOOM we have successfully installed and its working.</p><p><strong>Step 2: Utilize Amazon S3 for Beer Menu Storage</strong></p><p>- <strong>Amazon S3 can store the weekly updated beer list, enabling easy updates without technical complexities. The list could be displayed as an image or PDF.</strong></p><ul><li><strong>Ensure that the S3 bucket has public read access specifically for the beer list file, allowing seamless access from the website.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KQ6q-vQdsYgb58Dz" /></figure><p>Alright, alright, let’s get this S3 bucket popping! We need a Beer Menu! Pour it up, pour it up — Rhianna Voice</p><p>● <strong>Create your Bucket!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s01wRCmwzyf3ZvQ3" /></figure><p>● <strong>Create your Bucket name!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/0*bhpS4bqD1WPcH2Hd" /></figure><p>● <strong>Uncheck “Block all Public Access” and acknowledge the situation. Meaning check “I acknowledge…”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ot169y0HZCR03Zcb" /></figure><p>● <strong>Click Create!</strong></p><p>That is allllll…</p><p>Sike! ;)</p><p>● <strong>Navigate to S3 and locate your Bucket. Click on it and let’s upload our menu!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5SUCjnBmYfZ_hQwu" /></figure><p>Now you can upload your files! Kinda hard to mess this step up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T2F8yq3QmLHMiU_X" /></figure><p>● <strong>Now let’s change your permissions. Click on the Permissions tab — and let’s generate a policy!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Uh05NNqd7UJeJrJX" /></figure><p>In this area of operation:</p><p>-Select, S3 Bucket Policy</p><p>-Allow the Effect</p><p>-S3 as your AWS Service</p><p>-Select “Get Object” as your Action</p><p>-Use your ARN! (can be found on the policy page — too easy!)</p><p>-And click the add statement button!</p><p>After all this cool stuff mends together.. You should have a JSON Document, ready to copy and paste!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jnhbgYreyIAwiKWM" /></figure><p>● <strong>Copy and paste your JSON</strong></p><p>-Be sure to add “/*” at the end of your ARN, it represents “Get object”</p><p>Then Boom!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*etWO0qK6IGl_XTFd" /></figure><p>● <strong>To update the HTML file on your EC2 instance (and make sure your images are publicly viewable)</strong></p><p>- Navigate back to your <strong>Amazon S3 Bucket</strong></p><p>- Click on an object and <strong>copy the S3 URL</strong></p><p>- Navigate to your <strong>index.html file</strong> (mine was still in my downloads folder) and open with text editor (ex. Visual Studio Code)</p><ul><li>Scroll down the code and find the matching object/image to update the public image URL</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iRqdIMvh6b1a_70_" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8V8ngDxQRANA3zC4" /></figure><ul><li>You will do this for each of your S3 objects/files</li><li><strong>Connect to your EC2 Instance</strong> (you may already be connected)</li></ul><p>- <strong>Command <em>scp -i /path/to/your-key.pem index.html ec2-user@your-ec2-public-ip:/var/www/html/</em></strong></p><p>(make sure to update the command to reflect your correct path to your key pair and your public ip address)</p><p>- Now we need to restart our server to reflect the changes — <strong>Command <em>sudo systemctl restart nginx</em></strong></p><p>- Now visit your EC2’s public IP in the browser to test your site.</p><p>You should now see your updated site with the images loading properly!</p><p>-</p><p><strong>Step 3: AWS CloudWatch for Monitoring and Alarms</strong></p><p>- <strong>Set up AWS CloudWatch for real-time monitoring of the EC2 instance.</strong></p><p>For this part of the project, the CloudWatch default basic monitoring provided by EC2 (every 5 minutes) is sufficient enough. However, basic monitoring only includes CPU, network, etc. For memory and disk usage, we need to install the CloudWatch Agent.</p><p>● <strong>Connect to your EC2 Instance via SSH</strong></p><p>I.E. for our Amazon Linux 2, we used the command -</p><p><em>sudo yum install amazon-cloudwatch-agent -y</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y5Zs95YDQlWA6PfK" /></figure><p><strong>CloudWatch Installation Complete!</strong></p><p>- <strong>Create a dashboard for key metrics like CPU usage and network traffic.</strong></p><p>On the AWS Console, I went to the CloudWatch tool, and clicked on dashboards and our instance name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9CU6N22RtJkj6j8S" /></figure><p>● <strong>Create a widget by clicking the +</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IVQHU-8wKfLcqqOe" /></figure><p>● <strong>To see the Metric details in a Line Chart -</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ML9xkYlr6LVWkPIM" /></figure><p>● <strong>Select the metrics of your choice. We selected CPU Utilization and Network In/Out for traffic</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B-AmmXB6F_vtdFqK" /></figure><p>● <strong>Create the widget and save it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*51YpL2QGADyQoz_7" /></figure><h3>- Create a CloudWatch Alarm (Notify When CPU &gt; 80%)</h3><p>Configure alarms for significant events, such as high CPU utilization, to ensure prompt response and maintain website performance.</p><h3>● Go to CloudWatch in the AWS Console</h3><p>- Search for <strong>CloudWatch</strong> in the AWS Console search bar.</p><ul><li>In the sidebar, click <strong>“Alarms”</strong>, then click <strong>“Create alarm”</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d_XwMCk_T2mNIc2q" /></figure><h3>● Choose the Metric</h3><p>1. Click <strong>“Select metric”</strong>.</p><p>2. Choose <strong>EC2 &gt; Per-Instance Metrics</strong>.</p><p>3. Find and select your instance ID (ex. <strong><em>BeerTest</em></strong>)</p><p>4. Check the box for <strong>CPUUtilization</strong>.</p><p>5. Click <strong>“Select metric”</strong> at the bottom right.</p><h3>● Configure the Threshold</h3><p>● <strong>Threshold type</strong>: Static</p><p>● <strong>Whenever CPUUtilization is…</strong>: Greater/Equal</p><p>● <strong>than…</strong>: 80</p><p>● <strong>For…</strong>: 1 out of 1 data points</p><h3>● Notification Settings</h3><p>You’ll need an <strong>SNS topic</strong> to receive emails.</p><p>1. Under <strong>Notification</strong>, choose <strong>“In alarm”</strong>.</p><p>2. Click <strong>“Create new topic”</strong>.</p><p>3. Give the topic a name (ex. <strong><em>Default_CloudWatch_Alarms_Topic</em></strong>).</p><p>4. Enter your email address.</p><p>5. Click <strong>Create topic</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JOUxL_zmUDr8NpRe" /></figure><p><strong>Important</strong>: Check your email and <strong>confirm the subscription</strong> to get alerts.</p><h3>● Name and Create the Alarm</h3><p>● Give it a name (ex. <strong><em>PodProject-HighCPU-Alarm-EC2</em></strong>)</p><p>● Click <strong>Create alarm</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-9ZpTfsc-WqNOD7J" /></figure><p><strong>Done!</strong> You’ll now get an email if your instance’s CPU goes above 80%.</p><p><strong>Step 4: Testing and Deployment</strong></p><p><strong>To conduct a thorough testing, we verified and checked for the following settings and configurations:</strong></p><p>● Security inbound rules are set to allow both HTTP from all sources and have access to SSH as well.</p><p>● S3 Bucket permissions meet the best practices by checking the following settings<br> -enable bucket versioning (No permissions to enable)<br> -Use storage optimization (No permissions to enable)<br> -Enable server-side encryption (No permissions to enable)<br> -CloudWatch is set for CPU utilization</p><p>● Used SSH to access the EC2 image hosting the website and reviewed the directory for sensitive information</p><p>● Verify the ease of updating the beer list on S3 by the brewery staff.</p><p>The website beer list can be easily updated due to the JPG image. It simply has to be updated to a new image with the updated list directly into the S3. The new image will then be updated on the EC2 and displayed on the customer’s web browser.</p><p><strong>Mission Accomplished!</strong></p><p>The craft brewery now boasts a dynamic, user-friendly website, brewed to perfection with AWS tools. It highlights their rotating beer selection, keeps customers tapped in with real-time updates, and requires minimal ongoing maintenance. This digital upgrade not only boosts their online presence but also reinforces their reputation as an innovative, customer-first brand in a competitive market.</p><p>We came together as a team and overcame different timelines. We found time to implement talent, technical solutions, and most importantly, business development from a technical standpoint.</p><p><strong>Hurdles we encountered:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/0*kffhm-Wpf9Ut7CgM" /></figure><p>-Brackets in the HTML must be removed, for the images in S3 to be yanked.</p><p>-Saving the HTML file on the EC2 instance</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4071746d9a79" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>