<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lois Aleghe</title>
    <description>The latest articles on DEV Community by Lois Aleghe (@lois_aleghe_9996ad4e5536c).</description>
    <link>https://dev.to/lois_aleghe_9996ad4e5536c</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261294%2F98e49ca7-2b43-4399-8d33-fe31b29025e4.png</url>
      <title>DEV Community: Lois Aleghe</title>
      <link>https://dev.to/lois_aleghe_9996ad4e5536c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lois_aleghe_9996ad4e5536c"/>
    <language>en</language>
    <item>
      <title>From Static Website to CloudFront to Custom Domain</title>
      <dc:creator>Lois Aleghe</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:05:01 +0000</pubDate>
      <link>https://dev.to/lois_aleghe_9996ad4e5536c/from-static-website-to-cloudfront-to-custom-domain-3pnl</link>
      <guid>https://dev.to/lois_aleghe_9996ad4e5536c/from-static-website-to-cloudfront-to-custom-domain-3pnl</guid>
      <description>&lt;p&gt;In my last post, I shared the wrong link. It was the regular S3 object URL instead of the static website endpoint. That made me stop and ask: why use the static website endpoint at all, when the object URL is already HTTPS?&lt;/p&gt;

&lt;p&gt;The answer is that I'm doing this challenge to understand how each piece works, and static website hosting was a stepping stone. It's the S3 feature that makes a bucket act like a website. The object URL, on the other hand, is just a direct link to one file. The website endpoint does behave like a real website, but it's HTTP only, which was my challenge for step 4.&lt;/p&gt;

&lt;p&gt;This leads to one of my challenges for today, CloudFront.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is CloudFront?
&lt;/h3&gt;

&lt;p&gt;CloudFront is a web service that speeds up delivery of your content through a worldwide network of data centers called edge locations. Here's how it works with my S3 bucket:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A visitor requests my resume, and the request goes to the nearest edge location, which reduces latency.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the file is cached there, CloudFront returns it right away.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If not, CloudFront fetches it from the origin (my S3 bucket), caches it for next time, and returns it.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Setting up the distribution
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;: I named the distribution and selected the single website option. This is the best choice for a resume, since one configuration for one site is enough.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt;: I chose Amazon S3 as the origin type and picked my bucket from the dropdown. I kept the box &lt;code&gt;Allow private S3 bucket access to CloudFront&lt;/code&gt; checked because that means the bucket can stay private, so later, I could turn Block Public Access back on. Spoiler alert: by the time this post is up, the static website endpoint from my last post won't work anymore.&lt;br&gt;
I used the bucket endpoint, not the website endpoint (the one with &lt;code&gt;s3-website&lt;/code&gt;), because the website endpoint requires a public bucket. The tradeoff is that the bucket endpoint doesn't serve an index document, so I had to set resume.html as the default root object in CloudFront. With the website endpoint, that would have happened automatically.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2zderv6uchzk4zjxlwqk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2zderv6uchzk4zjxlwqk.png" alt=" " width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;: I used the recommended cache settings, since they're built for static files like my HTML and CSS. I was tempted to customize them so I could select the HTTP to HTTPS redirect, because I thought that matched the HTTPS requirement of the challenge. But I figured the recommended setting would cover that, and I confirmed it afterwards.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4&lt;/strong&gt;: The setup offered a Web Application Firewall. It's useful for blocking bots and attacks like SQL injection, but it's overkill here. My site has no database, forms, or logins, just two static files, so there's little to attack. It also costs extra, and I'm keeping this project as cost-efficient as possible. I decided the cost wasn't justified. I also set the price class to North America and Europe, which is cheaper. It limits which edge locations serve my site. People elsewhere can still reach it, but latency may be higher.&lt;/p&gt;

&lt;h3&gt;
  
  
  Testing it
&lt;/h3&gt;

&lt;p&gt;Once the distribution finished deploying, I opened the cloudfront.net link and it loaded. In the Behaviors tab, I confirmed the viewer protocol policy redirects HTTP to HTTPS, so the recommended settings did cover it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxa5fhv0s4mtz29gbuo3j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxa5fhv0s4mtz29gbuo3j.png" alt=" " width="799" height="87"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then I turned &lt;code&gt;Block all public access&lt;/code&gt; back on. This wasn't required by the challenge, but now that visitors go through CloudFront, my s3 bucket can be private.&lt;/p&gt;

&lt;p&gt;In summary, S3 alone could serve my resume over HTTPS(using the object URL), but my files had to be public. With CloudFront, the bucket stays private, and I can use my own domain.&lt;/p&gt;

&lt;p&gt;Here's the updated link: &lt;a href="https://d3oeoxiyr4atpq.cloudfront.net/" rel="noopener noreferrer"&gt;cloudfront-domain-resume&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Adding a custom domain
&lt;/h3&gt;

&lt;p&gt;I usually stop at one step, but today I did steps 5 and 6 together and pointed the distribution at a custom domain. I bought &lt;code&gt;lois-aleghe-resume.com&lt;/code&gt; from Cloudflare because it was cheaper. Route 53 would have been more convenient since everything is in AWS, but it costs more overall, and I'm keeping this project cost-efficient.&lt;/p&gt;

&lt;h3&gt;
  
  
  Getting the certificate
&lt;/h3&gt;

&lt;p&gt;I went to AWS Certificate Manager (ACM) to request a free certificate. A certificate is what lets browsers trust my domain over HTTPS. I requested it for both &lt;code&gt;lois-aleghe-resume.com&lt;/code&gt; and &lt;code&gt;www.lois-aleghe-resume.com&lt;/code&gt;, so either one works.&lt;/p&gt;

&lt;p&gt;One catch: CloudFront is a global service, and it only looks for certificates in &lt;strong&gt;US East (N. Virginia)&lt;/strong&gt;. AWS documents this rule but doesn't say why. It's likely because CloudFront's settings are managed from that region. So even though my bucket is in Canada, I requested the certificate in us-east-1. Otherwise it wouldn't have appeared in CloudFront.&lt;/p&gt;

&lt;h3&gt;
  
  
  Proving I own the domain
&lt;/h3&gt;

&lt;p&gt;ACM gives you a CNAME name and value for each domain, and you add them as DNS records at your DNS provider. I added them in Cloudflare and I learnt three lessons here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Set the records to DNS only. Cloudflare's proxy is on by default, and validation fails with it on.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Paste the name without your domain, but keep everything else. Cloudflare adds &lt;code&gt;.lois-aleghe-resume.com&lt;/code&gt; automatically. For the &lt;code&gt;www&lt;/code&gt; record, I originally left off the &lt;code&gt;.www&lt;/code&gt;, so it stayed on &lt;code&gt;"Pending validation"&lt;/code&gt; until I fixed it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Don't delete these records afterwards. ACM uses them to renew the certificate automatically.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Connecting everything
&lt;/h3&gt;

&lt;p&gt;Once the certificate was issued, I went to my distribution and added both domain names as alternate domain names and selected the certificate as the custom SSL certificate. Then in Cloudflare, I added two more CNAME records, &lt;code&gt;@&lt;/code&gt; and &lt;code&gt;www&lt;/code&gt;, both pointing to my CloudFront domain, again set to DNS only. That tells browsers to send my domain to CloudFront, which fetches the resume from S3.&lt;br&gt;
Here's the custom domain link: &lt;a href="https://lois-aleghe-resume.com" rel="noopener noreferrer"&gt;custom-domain-resume&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What I learned
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The certificate validation records don't send visitors anywhere, they only prove ownership.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The alternate domain name setting in CloudFront is what makes it accept my domain, and the DNS records are what send visitors to it. I need both.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DNS proxy settings matter. DNS only is the right choice here.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>devops</category>
    </item>
    <item>
      <title>Access Denied: Hosting My Resume on S3</title>
      <dc:creator>Lois Aleghe</dc:creator>
      <pubDate>Mon, 23 Nov 2026 19:56:14 +0000</pubDate>
      <link>https://dev.to/lois_aleghe_9996ad4e5536c/access-denied-hosting-my-resume-on-s3-41in</link>
      <guid>https://dev.to/lois_aleghe_9996ad4e5536c/access-denied-hosting-my-resume-on-s3-41in</guid>
      <description>&lt;p&gt;I'm following the&amp;nbsp;&lt;a href="https://cloudresumechallenge.dev/docs/the-challenge/aws/" rel="noopener noreferrer"&gt;Cloud Resume Challenge - AWS&lt;/a&gt;&amp;nbsp;and so far I've completed steps 1-4. Documenting what I learn is one way to make it stick, so let's break it down. Step 1 is the AWS certification, which I covered in my last post, so we'll start at step 2.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Writing my resume in HTML
&lt;/h3&gt;

&lt;p&gt;I tried not to use AI for this, and it made me appreciate how far we've come in tech. Manually typing things like&amp;nbsp;&lt;code&gt;&amp;lt;!doctype html&amp;gt;&lt;/code&gt;&amp;nbsp;reminds you of all the little details that go on behind the scenes when writing HTML. It also felt repetitive, and I caught myself thinking I could rewrite this with JavaScript and make it cleaner, but we're following the steps of the challenge.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Styling with CSS
&lt;/h3&gt;

&lt;p&gt;I remembered how stressful I've always found CSS. I tried not to use AI, not out of stubbornness, but because I wanted to add things step by step and understand why I needed something like&amp;nbsp;&lt;code&gt;display: flex&lt;/code&gt;&amp;nbsp;in each place. In the past, I'd end up with CSS I wasn't even using because I threw in random things just to get it to work. LOL. AI means you don't have to worry about that as much, but knowing the fundamentals is still useful, even for reviewing and managing the work your AI is doing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Hosting on Amazon S3
&lt;/h3&gt;

&lt;p&gt;This step is the main reason for this post. For context, I'd never hosted a webpage on S3. My go-to for deploying had always been GitHub. I took the Cloud Practitioner exam just last week, and it's really satisfying to actively use what I learned. Today, I worked on Amazon S3.&lt;/p&gt;

&lt;p&gt;I created a bucket and changed nothing except its name. Then I uploaded my resume folder, containing my HTML and CSS files. I thought, "This may be a bit too straightforward." I clicked the link to my HTML file and, to my surprise (not really), I saw:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Access Denied&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F35mi0xkujl69tbntoagg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F35mi0xkujl69tbntoagg.png" alt=" " width="800" height="130"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here's how I fixed it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Turned off Block Public Access.&lt;/strong&gt;&amp;nbsp;In the bucket's Permissions tab,&amp;nbsp;&lt;code&gt;Block public access (bucket settings)&lt;/code&gt;&amp;nbsp;was on by default, so I turned it off.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frj7qzraxug1qeqolr2ug.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frj7qzraxug1qeqolr2ug.png" alt=" " width="798" height="84"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Enabled static website hosting.&lt;/strong&gt;&amp;nbsp;Under Properties,&amp;nbsp;&lt;code&gt;Static website hosting&lt;/code&gt;&amp;nbsp;was disabled by default. I enabled it and entered my HTML file name as the index document (my default document).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Still Access Denied.&lt;/strong&gt;&amp;nbsp;I hadn't made the object public. I went to Actions and tried&amp;nbsp;&lt;code&gt;Make public using ACL&lt;/code&gt;, but it was greyed out.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Enabled ACLs.&lt;/strong&gt;&amp;nbsp;Under Permissions, in the&amp;nbsp;&lt;code&gt;Object Ownership&lt;/code&gt;&amp;nbsp;section, I enabled ACLs.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ovlz3kv4dya4e9rvzy2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ovlz3kv4dya4e9rvzy2.png" alt=" " width="800" height="273"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Made the object public.&lt;/strong&gt;&amp;nbsp;Back in the object's Actions,&amp;nbsp;&lt;code&gt;Make public using ACL&lt;/code&gt;&amp;nbsp;was now available. I selected it, and voila, it worked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While feeling proud of having just deployed a static website on S3, I noticed some typos. I fixed them in my local HTML file, then wondered how to change it in S3, since S3 doesn't let you edit files. It turns out you re-upload the file with the same name and path, which overwrites the existing one. I did that, and now I have a resume running on Amazon S3.&lt;/p&gt;

&lt;p&gt;You can see it here:&amp;nbsp;&lt;a href="http://lois-resume-aws-bucket.s3-website.ca-central-1.amazonaws.com" rel="noopener noreferrer"&gt;Lois-resume&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What I learned
&lt;/h3&gt;

&lt;p&gt;S3 is private by default, and getting a page online means understanding several layers of permissions: bucket-level settings, object ownership, and object-level access. Using ACLs worked and taught me a lot, but AWS now recommends a bucket policy instead, so I may revisit that. Also, this site is served over HTTP, not HTTPS. That's something the next steps of the challenge will fix.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;: &lt;br&gt;
The resume link I shared in this post yesterday was the regular S3 object URL, not the static website endpoint. I should have caught it, since the post says the site is served over HTTP and that link started with &lt;code&gt;https://&lt;/code&gt;.(If you missed it, this is what I uploaded yesterday &lt;a href="https://lois-resume-aws-bucket.s3.ca-central-1.amazonaws.com/resume.html" rel="noopener noreferrer"&gt;Lois-resume-https&lt;/a&gt;&lt;br&gt;
I have updated it now with the static endpoint. When I opened it today, it returned an error, and I wondered whether I had really finished Step 4.&lt;br&gt;
The cause was that my HTML and CSS files were inside a folder instead of at the bucket root, so the website endpoint couldn't find the index document. I re-uploaded everything to the root, made them public and it works now.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>s3</category>
      <category>cloudcomputing</category>
    </item>
    <item>
      <title>From AWS Cloud Practitioner to the Cloud Resume Challenge</title>
      <dc:creator>Lois Aleghe</dc:creator>
      <pubDate>Mon, 23 Nov 2026 19:44:49 +0000</pubDate>
      <link>https://dev.to/lois_aleghe_9996ad4e5536c/from-aws-cloud-practitioner-to-the-cloud-resume-challenge-110c</link>
      <guid>https://dev.to/lois_aleghe_9996ad4e5536c/from-aws-cloud-practitioner-to-the-cloud-resume-challenge-110c</guid>
      <description>&lt;p&gt;The cloud world has piqued my interest for a while and as the cliché goes, planning and not doing yields zero results. Rather than just watching multiple tutorials and not actually doing anything because of the fear of not being good enough, I decided to take the first step, which was getting the AWS Certified Cloud Practitioner certification. It is the foundational level and it gave a broad understanding of the AWS services. One thing that really stood out was the shared responsibility model: how much AWS handles versus how much the customer handles. Shout out to the people I network with who not only advised me but shared resources to help me prepare for the exam, and yes, I passed!&lt;/p&gt;

&lt;p&gt;It was a very interesting learning experience and the last thing I’d want is to lose this knowledge. In order for that not to happen, I'm putting it into practice through hands-on projects, continued learning, and hopefully more certifications soon. My end goal is to become a DevOps engineer, and I was advised to build a solid cloud foundation first, so that's where I'm starting.&lt;/p&gt;

&lt;p&gt;Not sure where to go next, I came across the &lt;a href="https://cloudresumechallenge.dev/docs/the-challenge/aws/" rel="noopener noreferrer"&gt;Cloud Resume Challenge&lt;/a&gt;, which looks beginner friendly. For each step I complete, I'll document what I learn as I’ve been told it is one way to get the knowledge to stick! Follow along on my journey if you are interested. Who knows, you may learn a thing or two as well.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
