<?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 Stephan Barlatier on Medium]]></title>
        <description><![CDATA[Stories by Stephan Barlatier on Medium]]></description>
        <link>https://medium.com/@sjb.sr?source=rss-d87ed3519c56------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PvRYI_Sg1Xx7DPrjkhSOVg@2x.jpeg</url>
            <title>Stories by Stephan Barlatier on Medium</title>
            <link>https://medium.com/@sjb.sr?source=rss-d87ed3519c56------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:48:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sjb.sr/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[From Up and Running to No Longer Reachable]]></title>
            <link>https://medium.com/@sjb.sr/from-up-and-running-to-no-longer-reachable-74344dc6e9cb?source=rss-d87ed3519c56------2</link>
            <guid isPermaLink="false">https://medium.com/p/74344dc6e9cb</guid>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-devops-engineer]]></category>
            <dc:creator><![CDATA[Stephan Barlatier]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 14:54:25 GMT</pubDate>
            <atom:updated>2026-09-15T14:54:25.049Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cFF2K56SW6t72OP8QHDy8A.jpeg" /><figcaption>Created by Nana Banana 2.</figcaption></figure><h3>Overview</h3><p>CumulAI is an early-stage SaaS company that decided to run it’s internal tools on a small fleet of Linux VMs. As the on-call Linux administrator I’ve been tasked with ensuring the site hosting these tools remains accessible.</p><h4>The issue…</h4><p>A ticket was escalated to me reading: “Our internal status site stopped responding. Browsers and <strong>curl</strong> to <a href="http://localhost:8080/">http://localhost:8080</a> just hang or time out. We already checked — the web service process is running, so we’re stumped. Please get the site reachable again.”</p><p>The service is a small static site served by systemd as sitehttp.service on port 8080. The reporter is right that the process is up — so the problem isn’t the app. Something on this host is stopping traffic from reaching the port. My task is to find it, remove it, and confirm the site answers.</p><p>After getting logged into the server, the first step is to confirm the service is up and running.</p><pre>systemctl status sitehttp.service --no-pager</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fK3zBKisTZ9YxbYXXJ2Cuw.png" /></figure><p>It’s clear the service is still running. Now I need to verify what the site is supposed to return.</p><pre>cat /srv/site/index.html</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/164/1*xjsHrs0O5AEQvK87YE6ujA.png" /></figure><p>Now to test the same way the reporter did.</p><pre>curl -v --max-time 5 http://localhost:8080; echo &quot;Exit code: $?&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*skmvZ0VA-MnnbsFNfGKPhw.png" /></figure><p>Next, I confirmed that the service is listening on the appropriate port.</p><pre>ss -tlnp | grep 8080</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*83yygbzvWqn-CVGk0dhwJQ.png" /></figure><p>The service is listening on port 8080. It’s now to time to check the firewall and see if there is an issue with the configuration for incoming traffic.</p><pre>sudo iptables -L INPUT -n --line-numbers</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*Q0rsVUID20yxLnNSFjRBVQ.png" /></figure><p>The output states that all incoming traffic on port 8080 is being dropped, leaving the site unreachable. To resolve this issue, the drop rule has to be deleted from the firewall.</p><pre>sudo iptables -D INPUT -p tcp --dport 8080 -j DROP<br><br>## to verify the rule has been removed, run<br><br>sudo iptables -S INPUT<br><br>## verify the site is reachable<br><br>curl -s --max-time 5 http://localhost:8080<br><br>## verify with a live status status returned<br><br>curl -s -o /dev/null -w &#39;%{http_code}\n&#39; --max-time 5 http://localhost:8080</pre><p>200 code is returned. Now to close out the ticket.</p><p><strong>What</strong>: The internal site on port 8080 was not reachable. Both curl and browser access would hang/timeout.</p><p><strong>Why</strong>: the sitehttp.service was running and listening fine, but a firewall rule on the INPUT chain (<strong>-p tcp — dport 8080 -j DROP</strong>) was silently dropping all traffic to the port 8080.</p><p><strong>Fix: </strong>Deleting the DROP rule with iptables -D, then verifying curl <a href="http://localhost:8080/">http://localhost:8080</a> returns 200 code with the expected CUMULAI-OK page.</p><h4>How does this affect the business?</h4><p>A site hosting internal tools being unreachable creates a reliability issue. Down time is an achilles heel to business continuity, and beyond being undesirable, it can be unaffordable. Every second a system or service is down for a business like CumulAI, the costs can become unimaginable.</p><p>It is important to note that with proper change management processes and formal auditing, this issue could have been avoided all together before ever hitting production.</p><p>Thanks for making it this far. I hope you found this article helpful and if you have any questions or feedback leave a comment.</p><p>Let’s connect on <a href="https://www.linkedin.com/in/stephan-barlatier/">LinkedIn!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74344dc6e9cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux System Administration with Efficiency]]></title>
            <link>https://medium.com/@sjb.sr/linux-system-administration-with-efficiency-d55b79c270c3?source=rss-d87ed3519c56------2</link>
            <guid isPermaLink="false">https://medium.com/p/d55b79c270c3</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-devops]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Stephan Barlatier]]></dc:creator>
            <pubDate>Sun, 24 May 2026 01:24:10 GMT</pubDate>
            <atom:updated>2026-05-24T01:24:10.500Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*wI4vDZyrs4RmIbu_WEvFCQ.png" /></figure><h3>Overview</h3><p>Level Up Bank operates in a competitive landscape requiring continuous IT infrastructure evolution to support internal operations and customer services. With rapid team growth across departments like Development, Operations, and Analytics, a secure and efficient user management system is essential. The system enforces role-based access control, ensuring users can access only the data and systems relevant to their responsibilities, thereby enhancing security and minimizing breach risks. It also protects individual user privacy by restricting unauthorized access to personal profiles, aligning with data protection regulations.</p><h3>To get started…</h3><p>I logged into the linux server via SSH and began typing in commands:</p><pre>sudo useradd jwaller<br>sudo groupadd Developers<br>sudo mkdir Development<br>sudo cd Development<br>sudo touch dfile-1 dfile-2 dfile-3 dfile-4<br>sudo usermod -aG Developers jwaller</pre><p>I started thinking, this will take a significant amount of time to do this for every user. Not only do the users need to be created with appropriate access, their access needs to validated as well.</p><p>How can I do this more efficiently? A script!</p><p>I started working on a script to streamline the process, although, I must admit making the script was pretty time consuming as it presented its own challenges.</p><p>To create the useradd.sh script I used a couple books from my personal library:</p><ul><li>The Linux Command Line by William Shotts</li><li>Unix and Linux Administration Handbook 5th Edition by E.Nemeth, G.Snyder, T.R. Hein, B.Whaley, and D.Mackin</li></ul><p>After scouring google, reading Stack Overflow posts and a ton of testing in between:</p><pre>#!/bin/bash<br><br># Check if script is being run as root<br>if [[ $EUID -ne 0 ]]; then<br>    echo &quot;Error: This script must be run as root!&quot; &gt;&amp;2<br>    exit 1<br>fi<br><br># Get user input<br>read -p &quot;Enter username: &quot;         username<br>read -p &quot;Enter full name: &quot;        fullname<br>read -p &quot;Enter department: &quot;    group<br>read -p &quot;Enter email address: &quot;    email<br>read -s -p &quot;Enter initial password: &quot; password<br>echo<br><br># Validate inputs are not empty<br>if [[ -z &quot;$username&quot; || -z &quot;$fullname&quot; || -z &quot;$group&quot; || -z &quot;$email&quot; || -z &quot;$password&quot; ]]; then<br>    echo &quot;Error: All fields are required!&quot; &gt;&amp;2<br>    exit 1<br>fi<br><br># Check if user already exists<br>if id &quot;$username&quot; &amp;&gt;/dev/null; then<br>    echo &quot;Error: User &#39;$username&#39; already exists!&quot; &gt;&amp;2<br>    exit 1<br>fi<br><br># Check if group exists<br>if ! getent group &quot;$group&quot; &amp;&gt;/dev/null; then<br>    echo &quot;Error: Group &#39;$group&#39; does not exist!&quot; &gt;&amp;2<br>    exit 1<br>fi<br><br># Create the user<br>useradd -m -c &quot;$fullname - $email&quot; -g &quot;$group&quot; -s /bin/bash &quot;$username&quot;<br><br>if [[ $? -ne 0 ]]; then<br>    echo &quot;Error: User creation failed!&quot; &gt;&amp;2<br>    exit 1<br>fi<br><br># Set the initial password<br>echo &quot;$username:$password&quot; | chpasswd<br><br>if [[ $? -ne 0 ]]; then<br>    echo &quot;Error: Password could not be set!&quot; &gt;&amp;2<br>    exit 1<br>fi<br><br># Force password change on first login<br>passwd -e &quot;$username&quot;<br><br># Display account details<br>echo<br>echo &quot;User account successfully created!&quot;<br>echo &quot;----------------------------------&quot;<br>echo &quot;Username:   $username&quot;<br>echo &quot;Full Name:  $fullname&quot;<br>echo &quot;Department: $group&quot;<br>echo &quot;Email:   $email&quot;<br>echo &quot;Password:   Set (user will be prompted to change on first login)&quot;<br>echo &quot;----------------------------------&quot;</pre><p>My goal was to get all of the Departments and associated files with the group assignments all into this single script.</p><p>Seeing as this portion practically knocked the wind out of me, I decided to break the other tasks up into other scripts. Now with a total of 3 scripts:</p><ul><li>First script creates the groups, directories, and associated files</li><li>Second script is the user creation script posted above</li><li>Third script assigns user and group ownership over the directories and files</li></ul><p>Once completed Analytics users can only access Analytics department files, likewise for Developers and Operations users.</p><p>The two other scripts are in my GitHub repo:</p><p><a href="https://github.com/SJBSR/Level-Up-Bash-Scripts.git">https://github.com/SJBSR/Level-Up-Bash-Scripts.git</a></p><h3>In conclusion</h3><p>To scale effectively, the I’ve leveraged automation through scripts that streamline repetitive administrative tasks like user provisioning and access management. These practices reflect real-world demands for secure, scalable IT infrastructure in growing organizations, directly supporting roles in system administration and DevOps.</p><p>Administration tasks can be very time consuming and the most efficient way to complete a lot of simple yet repetitive tasks is through creating scripts that can be run again when necessary. Although creating the script can be time consuming, the time it saves on the backend when the tasks repeat is tremendous. The benefits of scripting far outweigh the initial input. I had a handful of moments in this project where I thought I was at my wits end and man pages came to save the day. I really enjoy this challenge and all the knowledge I gained in the process.</p><p>Thank you for making it this far. I hope you found this helpful and if you have any questions or feedback leave a comment.</p><p>Let’s connect on <a href="https://www.linkedin.com/in/stephan-barlatier/">LinkedIn</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d55b79c270c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Web Server]]></title>
            <link>https://medium.com/@sjb.sr/apache-web-server-8bb5979a6594?source=rss-d87ed3519c56------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bb5979a6594</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Stephan Barlatier]]></dc:creator>
            <pubDate>Thu, 07 May 2026 16:08:13 GMT</pubDate>
            <atom:updated>2026-05-09T15:30:26.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*gmewQvqwJaUhuMKi4nLNQg.jpeg" /></figure><p><strong>Why Apache?</strong></p><p>That’s a great question.</p><p>Apache is an open-source software that is free for anyone to use. Its such a great tool that more than half of the websites and web apps on the internet are powered by it.</p><p>Its well known for its flexibility and capability to run on differing operating system. Apache also supports a multitude of programming languages and can be configured to work with diverse database systems.</p><p>Apache was designed to be customizable. It’s modular architecture provides administrators the advantages of adding or removing features as needed and has ample security features built-in.</p><h3>The Setup</h3><p>A few things are needed to get this Apache web server up for this project.</p><h4>Prerequisites:</h4><ul><li>AWS Account</li><li>EC2 Instance running Amazon Linux</li><li>SSH key for the EC2 instance</li><li>Open port 80 in security group allowing HTTP traffic</li></ul><p>It should look like this, once logged into the EC2 instance over SSH:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftv06jXnjEGmiaGgGVKuNg.png" /></figure><p>A handful of commands need to run:</p><pre>sudo yum update -y #ensures system is up to date<br>sudo yum install httpd -y #installs Apache web server<br>sudo systemctl start httpd #starts Apache<br>sudo systemctl enable httpd #ensures Apache starts with the instance, incase the instance reboots or gets shutdown<br>sudo systemctl status httpd #checking status to make sure it is running</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttGvALqd5GzCFDNxzM7BhA.png" /></figure><p>Another item requires attention. A homepage needs to be set for the web server.</p><p>I created a simple webpage using html and placed in the appropriate directory /var/www/html/ as index.html:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;LUIT INTRO&lt;/title&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;header&gt;<br>      &lt;h1&gt;&quot;WELCOME TO LUIT - BLACK TEAM&quot;&lt;/h1&gt;<br>    &lt;/header&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>And the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WGSnFBUoO-URBjkIUxHy4A.png" /></figure><p>You are welcome to test your access to the <a href="http://ec2-54-227-151-247.compute-1.amazonaws.com/">webpage</a> in your own browser. It will only be up for the next 24 hours.</p><p>I’ll be able to review the access and error logs using these two commands:</p><pre>tail -n 15 /var/log/httpd/access_log &gt;&gt; myaccesslogfile.txt #appends last 15 lines of access_log to my accesslogfile.txt<br>tail -n 15 /var/log/httpd/error_log &gt;&gt; myerrorlogfile.txt #appends last 15 lines of error_log to myerrorlogfile.txt</pre><h4>Major Takeaway:</h4><p>Apache is a highly versatile and reliable web server software that provides security and efficiency for hosting websites and web applications.</p><p>Thank you for making it this far. Don’t hesitate to ask any questions or share your own insights on this project or Apache in general.</p><p>Let’s connect on <a href="https://www.linkedin.com/in/stephan-barlatier/">LinkedIn</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bb5979a6594" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Administering Secure Remote Access to AWS EC2 Instances]]></title>
            <link>https://blog.devops.dev/administering-secure-remote-access-to-aws-ec2-instances-ae9c7ce21f78?source=rss-d87ed3519c56------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae9c7ce21f78</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[secure-remote-access]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Stephan Barlatier]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 13:05:39 GMT</pubDate>
            <atom:updated>2026-05-07T14:37:10.444Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WiuiHOwRfuMAxolrcIwiWA.png" /><figcaption>Image created by Nano Banana 2.</figcaption></figure><h3>Staying connected is key. Staying <strong>secure</strong> is critical.</h3><p>Whether on-premises or in the cloud, remote administration is pertinent to business continuity for many reasons. Let’s face it, not everyone knows their way around a computer, and that’s okay. Well, how do we help the less tech-savvy efficiently? That’s where remote administration comes in.</p><p>There a multiple ways to implement remote administration, some more secure than others. Two protocols prevalently used are SSH and RDP.</p><p>SSH is like a private tunnel that allows you to control your computer from anywhere.</p><p>RDP is like a magic desktop window that lets you see and use a computer from anywhere as if it’s right in front of you.</p><p>One key difference between these two protocols is SSH provides terminal access (command line interface) and RDP provides access to a graphical user interface (the desktop view allowing you to click and scroll menus).</p><h3>The foundation is set. Here is the problem.</h3><p>Level Up Corporation, a mid-sized tech company, leverages the power of Amazon Web Services (AWS) Elastic Compute Cloud (EC2) to host both its Linux and Windows applications. The company currently has a number of EC2 instances running simultaneously. Level Up has a dedicated IT team located globally to handle the administration and maintenance of these instances. However, due to the absence of a reliable, secure, and direct remote administration tool, the IT team faces significant challenges in efficiently managing, troubleshooting, and maintaining these servers, leading to prolonged downtime, decreased productivity, and potential security risks.</p><h4>One possible solution:</h4><p>To propose implementing SSH for Linux and RDP for Windows EC2 instances to remote access and administration for efficient system management.</p><h4>Key Benefits include:</h4><p><strong>Easy Administration and Troubleshooting: </strong>SSH and RDP enable the IT staff to access server resources and execute commands remotely to troubleshoot, configure, and simplify server management. This increases business productivity efficiently.</p><p><strong>Enhanced Security:</strong> Both SSH and RDP create encrypted communication channels, significantly reducing the risk of unauthorized access and data breaches.</p><p><strong>Cost Savings:</strong> Faster troubleshooting and reduced server downtime directly prevent financial losses associated with service outages.</p><p><strong>Scalability:</strong> Standardizing these protocols ensures that as Level Up Corp scales its infrastructure, new instances can be seamlessly integrated into existing management workflows.</p><h3>The Implementation</h3><ul><li>Create the EC2 Instance:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eqKN4zJ0IjEtiw9Omyprw.png" /></figure><ul><li>Name the EC2 Instance:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*gRCb4YYl8TyU03U08JRgQg.png" /></figure><ul><li>Create the SSH key pair:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*Q8-i3-qzzKPlqR0wKvXMDA.png" /></figure><ul><li>Configure SSH access for the EC2 Instance:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*Weum76lBaXPE_jfeX9y0IA.png" /></figure><p>Once the instance is launched and online, I simply launch a terminal window and remote in using this command:</p><pre>ssh -i &quot;lvl_up_key.pem&quot; ec2-user@ec2-100-52-221-196.compute-1.amazonaws.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*TVHhEOu9vQZQaHpPI6yUkQ.png" /></figure><p>Setting this up for Windows is pretty similar.</p><ul><li>Name the Windows EC2 Instance:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*zcjUbnOPpyB8I7bx8w4Rbw.png" /></figure><ul><li>Create the key pair to decrypt the password for the Windows EC2 Instance account:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*BlMMydQvCIE0kOB6RXK-nQ.png" /></figure><ul><li>Allow RDP access to Windows EC2 Instance:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*ZXfvAbNC61MGd13qquEuLQ.png" /></figure><p><strong>Wait a minute.</strong> I use a Mac and RDP isn’t a protocol used by apple devices. How will I connect even after downloading the remote desktop file for the instance?</p><p>I have the option to utilize an RDP terminal session in a browser that would look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*PJUspTvR6l5HEMWkkd-CUA.png" /></figure><p>Also how can we manage all the keys we just created? And if Level Up Corp. creates more instances, isn’t that more keys to manage?</p><h4>A better remote solution:</h4><p>Utilizing <strong>Amazon Systems Manager </strong>maintains the remote administration concept while implementing better security and management. We can forget about managing the SSH keys and what machine we are connecting from. Utilizing IAM roles we can designate which users have access to which systems extensively. We even get a nice dashboard to view all connected instances and some information about them.</p><ul><li>Windows session connected through Amazon Systems Manager:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eceS2TMgiKsU1ALg6XLt5g.png" /></figure><ul><li>Systems Manager Dashboard:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uk_R0VAZeUh9qn7_9S3byQ.png" /></figure><h4>Major takeaway:</h4><p>Maintaining connectivity is vital. Still, ensuring our connections are reliable and as secure as possible, underpins a business’ success. The protocols work, but today their almost the bare minimum. Systems Manager takes it up a notch, coupled with IAM roles, you greatly decrease a business’ attack surface.</p><p>Thanks for making it this far. AWS provides efficient management solutions for complex environments that are as secure as they are reliable. Please don’t hesitate to ask me any questions about AWS EC2 or to share any insight on your experience working within the Cloud.</p><p>Let’s connect on <a href="https://www.linkedin.com/in/stephan-barlatier/">LinkedIn</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae9c7ce21f78" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/administering-secure-remote-access-to-aws-ec2-instances-ae9c7ce21f78">Administering Secure Remote Access to AWS EC2 Instances</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From an on-prem servers to being AWS hosted.]]></title>
            <link>https://medium.com/@sjb.sr/from-an-on-premise-servers-to-being-aws-hosted-407a3917e568?source=rss-d87ed3519c56------2</link>
            <guid isPermaLink="false">https://medium.com/p/407a3917e568</guid>
            <category><![CDATA[cloud-devops-engineer]]></category>
            <category><![CDATA[aws-cloudfront]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[Stephan Barlatier]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 15:31:53 GMT</pubDate>
            <atom:updated>2026-04-23T14:22:24.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*nJSdod0R_m7401mkSOuRhg.jpeg" /><figcaption>Image created by Grok.</figcaption></figure><h4>Introduction</h4><p>Level Bank is a fintech startup that offers digital banking services to customers. The company’s website is the primary means of acquiring new customers, providing them with information about the services offered, and serving as a platform for them to interact with the bank. Currently, the website is hosted on an on-premises server, which requires a dedicated IT team to manage and maintain it. This creates additional costs for the company, and also adds a level of complexity to the infrastructure. To address these challenges, Level Up Bank has decided to move its website to AWS S3.</p><p><strong>Key Benefits include:</strong></p><p><strong>Cost Savings: </strong>Hosting a static website on AWS S3 is more cost-effective compared to using an EC2 or on-premises server. This is because AWS S3 charges only for the amount of storage used, and the cost of data transfer is also minimal. On the other hand, an EC2 instance requires additional expenses for compute power, storage, and data transfer.</p><p><strong>Improved scalability</strong>: AWS S3 provides automatic scalability without requiring any additional effort from the company. If the website receives more traffic, AWS S3 can easily handle the increased workload without any downtime.</p><p><strong>High availability</strong>: AWS S3 offers high availability and durability, ensuring that the website is accessible to users at all times. This is achieved through the use of multiple availability zones creating redundancy.</p><p><strong>Reduced management overhead</strong>: Since AWS S3 is a fully managed service, Level Up Bank can reduce the burden of managing and maintaining the website. This frees up the company’s IT team to focus on more critical tasks, such as developing new banking features and improving customer experience.</p><p>Now lets dive right in…</p><h4>The Project</h4><ul><li>Once logged into an AWS account, search for S3 to then create a bucket with a globally unique name:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*bkKL1g4OKCY6pRvgkNpsew.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Du-VjdqdAewp-urn36g-FA.jpeg" /></figure><ul><li>Keep ACL default and uncheck the box for “Block all public access” and acknowledge the change made with the AWS check box identified below:</li><li><em>Normally this box is checked by default to fall in line with AWS best security practices.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*mffssOgjJSG7xlUx2-G4dg.jpeg" /></figure><ul><li>Keep all other settings for encryption default and click Create bucket:</li><li><em>Also enable Bucket Versioning, so in the future there is an ability to audit any changes made to the bucket’s contents.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*nTvl-KvkATZdwgu8nIqzqg.jpeg" /></figure><p>Voila! Now the S3 bucket has been created, time to get the object we need in there.</p><ul><li>Hit upload:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Qi984QQTFMX9nlRSUBjTdw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*5fxgLuayuxSPRE6epRLE1g.jpeg" /></figure><p>Now that Level Up Bank’s website data i.e. the index.html file has been uploaded to the bucket. We need to ensure this object is reachable over the internet.</p><ul><li>Enter our bucket select the Properties tab and scroll all the way down to Static website hosting. Edit and enable, this then shows the URL for the bucket endpoint:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*lhNcnVH_gYkjKSe7Y0nvyA.jpeg" /></figure><p>The link returns a 403 error code because the bucket policy to make this object publicly accessible over the internet hasn’t been created yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*IDSnhj4Awvi6w3YqdION6A.jpeg" /></figure><ul><li>Select the permissions tab and click Edit within Bucket policy:</li><li>A template for this policy can be found in AWS documentation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*7Fr5vhqRzVC3zZc4sjlvfA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Ht5dClqig5WpMwQgEF7RPw.jpeg" /></figure><ul><li>Now use the object URL (link to index.html) to test:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*fjX0-RR4ajoH_hWfyt8Yzg.jpeg" /></figure><p>Level Up Bank’s webpage is being hosted in an S3 bucket and is now easily accessible to the public over the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*TIroC-vxlMClr-Vr_nmOxg.jpeg" /></figure><p>To take it a step further and improve global performance for all users utilizing CloudFront along with our S3 bucket to take advantage HTTPS redirect and Edge Caching.</p><ul><li>In the AWS management console, search CloudFront to begin creating a CloudFront distribution:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*lJqwIraYfllmRLhBlgliwQ.jpeg" /></figure><ul><li>After giving the distribution a name, hit next:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*0rX4RRMkIEkKiet0N_ZvXw.jpeg" /></figure><ul><li>Specify the S3 origin and select the option to use the website endpoint. Everything else remains default:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*MBp2i1rPMOCDmQBnIWx09w.jpeg" /></figure><ul><li>WAF will not enabled for this project. Hit Next:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*j9Z4odnkMQ0MYODe21PaNQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*dhg9qrp3fKRpudQtMB5V5g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*20roMCmYNSU31WGZTQFosw.jpeg" /></figure><p>Now to test!</p><p>The error received when testing the object URL verifies the object is not accessible publicly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Mr6ORqMFBQZs7JM1TFVv0A.jpeg" /></figure><ul><li>It’s time to verify the HTTP redirect:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*UoXGXr0lYLyF-0zWB2c7Vg.jpeg" /></figure><p>I attempeted to reach the site using just HTTP and was redirected to HTTPS:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*zOS_u24y2ap115p1mVW_Ig.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*pVllIaH_CHTkRWkCqVqZ5A.jpeg" /></figure><p>CloudFront now ensures that all users who attempt to access the Level Up Bank webpage, do not circumvent the built-in security measures while also maintaining high availability through CloudFront’s Edge Caching feature.</p><p>Lastly..</p><p>To “beef up the security”, I am restricting direct access to the S3 bucket by editing the CloudFront distribution’s origin access settings.</p><p>Than replacing the S3 bucket’s policy using this template:</p><pre>{<br>  &quot;Version&quot;:&quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;AllowCloudFrontServicePrincipalReadOnly&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;Service&quot;: &quot;cloudfront.amazonaws.com&quot;<br>      },<br>      &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:s3:::amzn-s3-demo-bucket/*&quot;,<br>      &quot;Condition&quot;: {<br>        &quot;StringEquals&quot;: {<br>          &quot;AWS:SourceArn&quot;: &quot;arn:aws:cloudfront::111122223333:distribution/&lt;CloudFront distribution ID&gt;&quot;<br>        }<br>      }<br>    }<br>  ]<br>}</pre><p>After saving the policy, re-enable <strong>Block all public access</strong> to the bucket and set <strong>Default root object</strong> in the CloudFront distribution to the Level Up Bank’s html file.</p><p>If you’ve made it this far whether as a builder or observer, I appreciate you witnessing my journey through this project.</p><p>Clap, Follow, and connect with me on <a href="https://www.linkedin.com/in/stephan-barlatier/">LinkedIn</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=407a3917e568" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>