<?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"><channel><title><![CDATA[CI/CD PIpeline for Hosting a Website on S3]]></title><description><![CDATA[CI/CD PIpeline for Hosting a Website on S3]]></description><link>https://ci-cd-for-website-hosting.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 19 Jun 2026 12:01:36 GMT</lastBuildDate><atom:link href="https://ci-cd-for-website-hosting.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[AWS CI/CD Pipeline for  Website Deployment]]></title><description><![CDATA[Overview
This project demonstrates an end-to-end CI/CD pipeline on AWS for automatically deploying a static website hosted on Amazon S3.
The pipeline integrates GitHub, AWS CodePipeline, AWS CodeBuild]]></description><link>https://ci-cd-for-website-hosting.hashnode.dev/aws-ci-cd-pipeline-for-website-deployment</link><guid isPermaLink="true">https://ci-cd-for-website-hosting.hashnode.dev/aws-ci-cd-pipeline-for-website-deployment</guid><dc:creator><![CDATA[Omkar Mahandule]]></dc:creator><pubDate>Tue, 09 Jun 2026 07:02:55 GMT</pubDate><content:encoded><![CDATA[<h2><strong>Overview</strong></h2>
<p>This project demonstrates an end-to-end CI/CD pipeline on AWS for automatically deploying a static website hosted on Amazon S3.</p>
<p>The pipeline integrates GitHub, AWS CodePipeline, AWS CodeBuild, and Amazon S3 to automate the process of fetching source code, building the application, and deploying the latest version of the website.</p>
<h2><strong>Architecture</strong></h2>
<img src="https://cdn.hashnode.com/uploads/covers/6795c94996b95db244a38682/97ef4304-8c51-4495-91a4-b6a8868898c6.png" alt="" style="display:block;margin:0 auto" />

<h2><strong>Services Used</strong></h2>
<ul>
<li><p>Amazon S3</p>
</li>
<li><p>AWS CodePipeline</p>
</li>
<li><p>AWS CodeBuild</p>
</li>
<li><p>GitHub</p>
</li>
<li><p>AWS IAM</p>
</li>
<li><p>AWS CodeStar Connections</p>
</li>
</ul>
<h2><strong>Resources Created</strong></h2>
<h3><strong>S3 Buckets</strong></h3>
<h4><strong>app-artifacts</strong></h4>
<p>Used by CodePipeline to store build and deployment artifacts.</p>
<h4><strong>app-destination</strong></h4>
<p>Used to host the static website and store deployment files.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6795c94996b95db244a38682/0d738682-a420-43e2-82bc-cdcb156adf24.png" alt="" style="display:block;margin:0 auto" />

<h2><strong>Workflow</strong></h2>
<h3><strong>Step 1: Create S3 Buckets</strong></h3>
<p>Created two S3 buckets:</p>
<ul>
<li><p>app-artifacts</p>
</li>
<li><p>app-destination</p>
</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/6795c94996b95db244a38682/4154bf10-2c22-429f-8267-2bbb5c4794c1.png" alt="" style="display:block;margin:0 auto" />

<h3><strong>Step 2: Create GitHub Repository</strong></h3>
<ul>
<li><p>Created a simple static website.</p>
</li>
<li><p>Added project files to GitHub.</p>
</li>
<li><p>Configured GitHub as the source repository.</p>
</li>
</ul>
<h3><strong>Step 3: Configure GitHub Connection</strong></h3>
<ul>
<li><p>Created a GitHub connection using CodeStar Connections.</p>
</li>
<li><p>Authorized AWS to access the repository.</p>
</li>
<li><p>Connected GitHub with AWS services securely.</p>
</li>
</ul>
<h3><strong>Step 4: Create CodeBuild Project</strong></h3>
<p>Configured AWS CodeBuild to:</p>
<ul>
<li><p>Pull source code from the pipeline.</p>
</li>
<li><p>Process build instructions.</p>
</li>
<li><p>Generate deployment artifacts.</p>
</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/6795c94996b95db244a38682/abb706c9-d22b-4c22-a96c-149c46ba9872.png" alt="" style="display:block;margin:0 auto" />

<h3><strong>Step 5: Create CodePipeline</strong></h3>
<p>Configured a three-stage pipeline:</p>
<h4><strong>Source Stage</strong></h4>
<ul>
<li>GitHub Repository</li>
</ul>
<h4><strong>Build Stage</strong></h4>
<ul>
<li>AWS CodeBuild</li>
</ul>
<h4><strong>Deploy Stage</strong></h4>
<ul>
<li>Amazon S3</li>
</ul>
<h3><strong>Step 6: Deploy Website</strong></h3>
<p>Pipeline execution flow:</p>
<ol>
<li><p>Code pushed to GitHub.</p>
</li>
<li><p>CodePipeline detects changes.</p>
</li>
<li><p>Source code is fetched.</p>
</li>
<li><p>CodeBuild processes the application.</p>
</li>
<li><p>Deployment artifacts are generated.</p>
</li>
<li><p>Files are deployed to the S3 bucket.</p>
</li>
</ol>
<p>First Time Deployment (Before changes):</p>
<img src="https://cdn.hashnode.com/uploads/covers/6795c94996b95db244a38682/07c1fb20-4731-4323-b887-3375d8375bb9.png" alt="" style="display:block;margin:0 auto" />

<p>After Changes has been made: Whenever code is pushed to GitHub, a webhook triggers CodePipeline. The pipeline fetches the latest source code, passes it to CodeBuild to generate build artifacts, and then automatically deploys the updated website to an S3 bucket hosting the static site.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6795c94996b95db244a38682/bec001a6-fdb8-4780-9268-de803846966f.png" alt="" style="display:block;margin:0 auto" />

<img src="https://cdn.hashnode.com/uploads/covers/6795c94996b95db244a38682/970e5fb3-36ef-4977-970f-8d865a44d64f.png" alt="" style="display:block;margin:0 auto" />

<h3><strong>Step 7: Verify Website</strong></h3>
<p>Successfully accessed the deployed static website through Amazon S3 hosting.</p>
<h2><strong>Challenges Faced</strong></h2>
<h3><strong>S3 Object Ownership and ACL Configuration</strong></h3>
<p>While configuring deployment, the pipeline encountered issues related to S3 Object Ownership settings and ACL restrictions. The issue was resolved by reviewing bucket permissions and deployment configuration.</p>
<h3><strong>GitHub Trigger Configuration</strong></h3>
<p>Troubleshooting was required to understand automatic pipeline execution and GitHub integration.</p>
<h2><strong>Key Learnings</strong></h2>
<ul>
<li><p>CI/CD fundamentals</p>
</li>
<li><p>AWS CodePipeline</p>
</li>
<li><p>AWS CodeBuild</p>
</li>
<li><p>GitHub integration with AWS</p>
</li>
<li><p>S3 static website hosting</p>
</li>
<li><p>Artifact management</p>
</li>
<li><p>IAM permissions</p>
</li>
<li><p>S3 Object Ownership and ACLs</p>
</li>
<li><p>Automated deployment workflows</p>
</li>
</ul>
<h2><strong>Outcome</strong></h2>
<p>Successfully built and deployed a static website using an automated CI/CD pipeline on AWS. The project provided hands-on experience with source control integration, build automation, artifact management, and deployment automation.</p>
]]></content:encoded></item></channel></rss>