<?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: MOHA PRASATH SA</title>
    <description>The latest articles on DEV Community by MOHA PRASATH SA (@moha_prasathsa_8539853b2).</description>
    <link>https://dev.to/moha_prasathsa_8539853b2</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%2F4125519%2F0d0387b5-bf24-44bb-a446-8733a947f6cd.png</url>
      <title>DEV Community: MOHA PRASATH SA</title>
      <link>https://dev.to/moha_prasathsa_8539853b2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/moha_prasathsa_8539853b2"/>
    <language>en</language>
    <item>
      <title># Day1: Deploying My Portfolio with AWS S3 and CloudFront on Cloud Workshop</title>
      <dc:creator>MOHA PRASATH SA</dc:creator>
      <pubDate>Tue, 15 Sep 2026 06:57:00 +0000</pubDate>
      <link>https://dev.to/moha_prasathsa_8539853b2/-day1-deploying-my-react-portfolio-with-aws-s3-and-cloudfront-on-cloud-workshop-3j0e</link>
      <guid>https://dev.to/moha_prasathsa_8539853b2/-day1-deploying-my-react-portfolio-with-aws-s3-and-cloudfront-on-cloud-workshop-3j0e</guid>
      <description>&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%2F8helxf5ujo64p7xdiv76.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%2F8helxf5ujo64p7xdiv76.png" alt=" " width="800" height="328"&gt;&lt;/a&gt;&lt;br&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%2Fscwu9jfks05vl2ma1a1n.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%2Fscwu9jfks05vl2ma1a1n.png" alt=" " width="800" height="328"&gt;&lt;/a&gt;&lt;br&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%2Fxnadogw2finqufyy1dye.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%2Fxnadogw2finqufyy1dye.png" alt=" " width="799" height="388"&gt;&lt;/a&gt;This was my first hands-on experience deploying a frontend application using AWS services. Instead of stopping at the development stage, I wanted to understand how a website can be hosted using cloud infrastructure.&lt;/p&gt;

&lt;p&gt;For this deployment, I worked with &lt;strong&gt;Amazon S3&lt;/strong&gt; and attempted to configure &lt;strong&gt;Amazon CloudFront&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  My Portfolio
&lt;/h2&gt;

&lt;p&gt;The portfolio was developed using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React&lt;/li&gt;
&lt;li&gt;JavaScript&lt;/li&gt;
&lt;li&gt;HTML&lt;/li&gt;
&lt;li&gt;CSS&lt;/li&gt;
&lt;li&gt;Vite&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It contains sections for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;About Me&lt;/li&gt;
&lt;li&gt;Skills&lt;/li&gt;
&lt;li&gt;Projects&lt;/li&gt;
&lt;li&gt;Contact&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After completing the React application, I generated the production files using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The generated files were available in the &lt;code&gt;dist&lt;/code&gt; folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Creating an S3 Bucket
&lt;/h2&gt;

&lt;p&gt;The first step was creating an &lt;strong&gt;Amazon S3 bucket&lt;/strong&gt; for my portfolio.&lt;/p&gt;

&lt;p&gt;After creating the bucket, I uploaded the website files into it.&lt;/p&gt;

&lt;p&gt;The main file was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;index.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Along with the other required website assets.&lt;/p&gt;

&lt;p&gt;The basic structure was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;S3 Bucket
│
├── index.html
├── assets/
└── other files
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Configuring Static Website Hosting
&lt;/h2&gt;

&lt;p&gt;After uploading the files, I configured the bucket for &lt;strong&gt;static website hosting&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I specified:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Index document:
index.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tells S3 which HTML file should be loaded as the main page of the website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Configuring Access
&lt;/h2&gt;

&lt;p&gt;I then worked through the S3 access and permission settings required to make the static website accessible.&lt;/p&gt;

&lt;p&gt;This was one of the useful parts of the process because it made me understand that simply uploading a file to S3 does not automatically make it available to everyone.&lt;/p&gt;

&lt;p&gt;There are separate considerations for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bucket access&lt;/li&gt;
&lt;li&gt;Object permissions&lt;/li&gt;
&lt;li&gt;Static website hosting&lt;/li&gt;
&lt;li&gt;Public access settings&lt;/li&gt;
&lt;li&gt;Security policies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After configuring the required settings, I was able to work with the S3-hosted version of my portfolio.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Trying Amazon CloudFront
&lt;/h2&gt;

&lt;p&gt;The next step was to add &lt;strong&gt;Amazon CloudFront&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The architecture I wanted to create was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                User
                  │
                  ▼
          Amazon CloudFront
                  │
                  ▼
              Amazon S3
                  │
                  ▼
          React Portfolio
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;CloudFront acts as a CDN and can distribute website content through AWS edge locations.&lt;/p&gt;

&lt;p&gt;I wanted to use it as the delivery layer in front of my S3-hosted portfolio.&lt;/p&gt;

&lt;h2&gt;
  
  
  The CloudFront Problem
&lt;/h2&gt;

&lt;p&gt;While creating the CloudFront resource, I encountered an AWS account-level verification error.&lt;/p&gt;

&lt;p&gt;AWS displayed the following message:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Your account must be verified before you can add new CloudFront resources."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, at this stage, &lt;strong&gt;CloudFront deployment was not completed&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This was actually an important part of the learning experience.&lt;/p&gt;

&lt;p&gt;I initially thought deploying a website would simply be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Write Code → Upload Files → Website Online
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But the process also involves:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Application
    ↓
Build
    ↓
Cloud Storage
    ↓
Permissions
    ↓
Service Configuration
    ↓
Account Verification
    ↓
CDN / Delivery
    ↓
Production Website
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;This small project helped me understand several AWS concepts practically.&lt;/p&gt;

&lt;h3&gt;
  
  
  Amazon S3
&lt;/h3&gt;

&lt;p&gt;I learned how S3 can be used to store and serve static website files.&lt;/p&gt;

&lt;h3&gt;
  
  
  Static Website Hosting
&lt;/h3&gt;

&lt;p&gt;I learned how an &lt;code&gt;index.html&lt;/code&gt; file can be configured as the entry point for a static website.&lt;/p&gt;

&lt;h3&gt;
  
  
  Permissions
&lt;/h3&gt;

&lt;p&gt;I learned that storage, website hosting, and access permissions are separate configuration areas.&lt;/p&gt;

&lt;h3&gt;
  
  
  CloudFront
&lt;/h3&gt;

&lt;p&gt;I learned the role of CloudFront as a CDN in front of an S3-based website, even though I could not complete the CloudFront deployment because of the account verification restriction.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cloud Deployment
&lt;/h3&gt;

&lt;p&gt;Most importantly, I learned that deploying an application involves more than writing code. Cloud services have their own account requirements, permissions, security configurations, and service restrictions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current Architecture
&lt;/h2&gt;

&lt;p&gt;The part I successfully configured was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;React Portfolio
       │
       ▼
   npm run build
       │
       ▼
    index.html
       │
       ▼
    Amazon S3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The architecture I am working toward is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                    User
                     │
                     ▼
             Amazon CloudFront
                     │
                     ▼
                 Amazon S3
                     │
                     ▼
             React Portfolio
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  react #aws #amazonS3 #cloudfront #javascript #webdevelopment #cloud #devops #learning
&lt;/h1&gt;

</description>
      <category>aws</category>
      <category>frontend</category>
      <category>react</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
