<?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 Rahul Vikhe on Medium]]></title>
        <description><![CDATA[Stories by Rahul Vikhe on Medium]]></description>
        <link>https://medium.com/@rahulvikhe25?source=rss-6448ae709f75------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tLlbbiIOn6i5c48l</url>
            <title>Stories by Rahul Vikhe on Medium</title>
            <link>https://medium.com/@rahulvikhe25?source=rss-6448ae709f75------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:39:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rahulvikhe25/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[Deployment of Node.js Application on EC2 with CI/CD using GitHub Actions and Docker Container]]></title>
            <link>https://medium.com/@rahulvikhe25/deployment-of-node-js-application-on-ec2-with-ci-cd-using-github-actions-and-docker-container-46c3efa2905f?source=rss-6448ae709f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/46c3efa2905f</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Rahul Vikhe]]></dc:creator>
            <pubDate>Wed, 24 Apr 2024 15:40:50 GMT</pubDate>
            <atom:updated>2025-02-23T10:33:21.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*US2q8M4A2CexCtHzF4KPog.png" /></figure><h3>Introduction</h3><p>This documentation outlines the step-by-step process of deploying a Node.js application on an EC2 instance using Docker containers with Continuous Integration and Continuous Deployment (CI/CD) implemented through GitHub Actions. The technology stack used includes Node.js, MongoDB, Docker, GitHub Actions.</p><h3>Prerequisites</h3><ul><li>An AWS account with appropriate permissions to create and manage EC2 instances.</li><li>A GitHub repository containing your Node.js app code.</li><li>Dockerhub account</li><li>mongoDB database credentials.</li></ul><h3>Architecture</h3><ol><li><strong>Components Overview</strong>:</li></ol><ul><li>GitHub repository</li><li>GitHub Actions</li><li>Docker Hub</li><li>AWS EC2 instance</li><li>MongoDB Atlas (or any other MongoDB hosting service)</li><li>Route 53 (for DNS routing)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*-PcL2tHMJfEStwajNbJbUg.png" /></figure><h3>Step 1: Setting up EC2 Instance</h3><ol><li><strong>Create EC2 Instance</strong>:</li></ol><ul><li>Launch a new EC2 instance on AWS with the following specifications:</li><li>Instance type: Any suitable instance type based on your requirements.</li><li>Security Group: Allow inbound traffic on ports 80, 22, and 443.</li><li>Operating System: Choose a Linux-based OS. I’m using Ubuntu.</li><li>Note down the public IP address or DNS name of the EC2 instance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Bw6B4rCy0_io8BJFvoIWw.png" /></figure><p><strong>2. Install Docker</strong>:</p><ul><li>Connect to your EC2 instance using SSH.</li><li>Install Docker on the EC2 instance by using following command.</li></ul><pre>sudo apt-get update &amp;&amp; sudo apt-get install docker.io -y &amp;&amp; sudo systemctl start docker &amp;&amp; sudo chmod 666 /var/run/docker.sock &amp;&amp; sudo systemctl enable docker &amp;&amp; docker --version</pre><p><strong>3. Configuring the self-hosted runner application as a service</strong></p><ul><li>Download the self-hosted runner package from GitHub.</li></ul><pre># Create a folder<br>$ mkdir actions-runner &amp;&amp; cd actions-runner<br># Download the latest runner package<br>$ curl -o actions-runner-linux-x64-2.315.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.315.0/actions-runner-linux-x64-2.315.0.tar.gz<br># Optional: Validate the hash<br>$ echo &quot;6362646b67613c6981db76f4d25e68e463a9af2cc8d16e31bfeabe39153606a0  actions-runner-linux-x64-2.315.0.tar.gz&quot; | shasum -a 256 -c<br># Extract the installer<br>$ tar xzf ./actions-runner-linux-x64-2.315.0.tar.gz</pre><pre><br>./config.sh - url https://github.com/rahulvikhe/nodejs-notes-app - token &lt;your-token&gt;</pre><p>Replace &lt;your-token&gt; with your actual GitHub token. To obtain your token:</p><ul><li>Go to your GitHub repository.</li><li>Navigate to Settings &gt; Actions &gt; Self-hosted runners.</li><li>Click on Add runner and follow the instructions.</li></ul><pre>sudo ./svc.sh install<br>sudo ./svc.sh start</pre><ul><li>Go to your GitHub repository settings.</li><li>Navigate to “Actions” &gt; “Runners”.</li><li>You should see your self-hosted runner listed there.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BGH5cuGV9v75iV5RH3c7qQ.png" /></figure><h3>Step 2: Configure GitHub Repository</h3><ol><li><strong>Add GitHub Secrets</strong>:</li></ol><ul><li>In your GitHub repository settings, navigate to the “Secrets” section.</li><li>Add the following secrets:</li><li>MONGO_PASSWORD: Password for MongoDB.</li><li>DOCKER_USERNAME: Docker Hub username.</li><li>DOCKER_PASSWORD: Docker Hub password.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*IO4X-wjSL1gjbrD1qZSTyg.png" /></figure><h3>Step 3: Configure database connection File</h3><pre>import { config } from &quot;dotenv&quot;;<br>config();<br>export const PORT = process.env.PORT || 80;<br>export const MONGODB_URI = `mongodb+srv://username:${process.env.MONGO_PASSWORD}@your-cluster-url/?retryWrites=true&amp;w=majority`;</pre><p>Make sure to add .env file to your .gitignore to keep sensitive information like passwords and tokens safe and not expose them to your repository. Replace &quot;your-cluster-url&quot; and “username” with your actual MongoDB cluster URL.</p><h3>Step 4: Create Dockerfile</h3><pre>FROM node:latest<br><br># Set the working directory<br>WORKDIR /app<br><br># Copy package.json and package-lock.json<br>COPY package*.json ./<br><br># Install dependencies<br>RUN npm install<br><br># Copy the rest of the application<br>COPY . .<br><br># Copy .env file<br>COPY .env ./<br><br># Expose the port<br>EXPOSE 80<br><br># Start the application<br>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><h3>Step 5: Configure GitHub Actions Workflow</h3><p>Create a YAML file (e.g., .github/workflows/ec2-deploy.yml) in the .github/workflows/ directory of your GitHub repository with the following content:</p><p># Note: Replace “rahulvikhe/nodejs-notes-app” with your own Docker Hub repository.</p><pre>name: Deploy Nodejs Application<br><br>on:<br>  push: <br>    branches:<br>      - main<br><br>jobs:<br>  build:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - name: Checkout source<br>        uses: actions/checkout@v4<br>      - name: Create .env file<br>        run: echo &quot;MONGO_PASSWORD=${{ secrets.MONGO_PASSWORD }}&quot; &gt;&gt; .env<br>      - name: Login to docker hub<br>        run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}       <br>      - name: Build docker image<br>        run: docker build -t rahulvikhe/nodejs-notes-app .  <br>      - name: Publish image to docker hub<br>        run: docker push rahulvikhe/nodejs-notes-app:latest<br>        <br>  deploy:<br>    needs: build<br>    runs-on: self-hosted<br>    steps:<br>      - name: Pull image from docker hub<br>        run: docker pull rahulvikhe/nodejs-notes-app:latest<br>      - name: Delete old container<br>        run: docker rm -f nodejs-app-container <br>      - name: Run docker container<br>        run: docker run -d -p 80:80 --name nodejs-app-container rahulvikhe/nodejs-notes-app</pre><h3>Step 6: Trigger Deployment</h3><p>Push the changes to the GitHub repository branch specified in the GitHub Actions workflow (<em>main</em> in this example).</p><ol><li>GitHub Actions will automatically trigger the workflow defined in the YAML file.</li><li>The workflow will build the Docker image, push it to Docker Hub, and deploy the application on the EC2 instance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZxaDiswQxSlrcy9kkduSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJ3YskesYylqUjPaKpgObQ.png" /></figure><h3>Step 5: Setup Route 53 (optional)</h3><ol><li><strong>Create a Hosted Zone</strong>:</li></ol><ul><li>Go to the Route 53 dashboard in the AWS Management Console.</li><li>Click on “Create Hosted Zone”.</li><li>Enter your domain name and click “Create”.</li><li>Note down the name servers provided.</li></ul><p><strong>2. Update DNS Records</strong>:</p><ul><li>In the newly created hosted zone, click on “Create Record Set”.</li><li>Add an A record for your domain name pointing to the public IP address of your EC2 instance.</li><li>Optionally, add a CNAME record for www pointing to your domain name.</li></ul><p><strong>3. Update Domain Registrar</strong>:</p><ul><li>Go to your domain registrar’s website.</li><li>Update the name servers of your domain to use the name servers provided by Route 53.</li></ul><h3>Step 7: Testing</h3><ol><li>Access the public IP address or DNS name of your EC2 instance on port 80 in a web browser.</li><li>Verify that the Node.js application is running successfully.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJiNDyO5OqBeD76hmTE6wA.png" /></figure><h3>Conclusion</h3><p>Congratulations! You have successfully deployed a Node.js application on an EC2 instance using Docker containers with CI/CD implemented through GitHub Actions. This process ensures automated and efficient deployment of your application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46c3efa2905f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure Node.js on EC2 with CloudFront, Route 53, and AWS Certificate Manager]]></title>
            <link>https://medium.com/@rahulvikhe25/configure-node-js-on-ec2-with-cloudfront-route-53-and-aws-certificate-manager-d9ae6d364a18?source=rss-6448ae709f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9ae6d364a18</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloudfront]]></category>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[route-53]]></category>
            <dc:creator><![CDATA[Rahul Vikhe]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 16:21:38 GMT</pubDate>
            <atom:updated>2023-10-17T16:21:38.377Z</atom:updated>
            <content:encoded><![CDATA[<p>A Quick Guide to deploy a Node.js website on an EC2 (Ubuntu) using NGINX, attach it to CloudFront, and connect it to Route 53 while using AWS Certificate Manager for SSL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-dRFlXYrOdbAjzKAnf2-Jg.png" /></figure><p>In this quick tutorial, we’ll explore the seamless integration of several powerful AWS tools to host a Node.js website on an EC2 instance, secure it with an SSL certificate via AWS Certificate Manager, accelerate content delivery with CloudFront, and efficiently manage DNS using Route 53.</p><p><strong>Amazon Elastic Compute Cloud (EC2):</strong> EC2 provides scalable, virtual servers known as instances. We will utilize an EC2 instance running Ubuntu to host our Node.js application.</p><p><strong>Amazon CloudFront:</strong> CloudFront is a Content Delivery Network (CDN) service that enhances the performance, reliability, and security of your web content. We’ll configure it to distribute our website globally and manage SSL.</p><p><strong>AWS Certificate Manager:</strong> AWS Certificate Manager helps us manage SSL/TLS certificates for our custom domain, ensuring secure connections. We will create and attach a certificate to our CloudFront distribution.</p><p><strong>Nginx:</strong> Nginx is a high-performance web server that will serve as a reverse proxy for our Node.js application. It will be used to handle HTTP requests, improving performance and security.</p><p><strong>Amazon Route 53:</strong> Route 53 is Amazon’s scalable Domain Name System (DNS) web service. We will use it to route incoming traffic and manage our domain names.</p><h4>Step 1: Launch an EC2 Instance</h4><ol><li><strong>Launch an EC2 Instance:</strong> Log in to your AWS Console. Go to the EC2 dashboard and click on “Launch Instance. “Choose an Ubuntu AMI and configure the instance as needed (e.g., instance type, security groups — (Allow HTTP, HTTPS &amp; SSH), and key pair).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dyaN5yjgtMZ6m-O51_94Bw.png" /></figure><p>Select or create an SSH key pair to access the instance securely. Remember to download the private key.</p><p><strong>2. Connect to the EC2 Instance:</strong> Use SSH to connect to your EC2 instance</p><pre>ssh -i your-key-pair.pem ubuntu@your-ec2-public-ip</pre><h4>Step 2: Install Node.js</h4><ol><li><strong>Update Ubuntu:</strong></li></ol><pre>sudo apt update<br>sudo apt upgrade</pre><p><strong>2. Install Node.js</strong> ( I am using Version 14.16.0):</p><pre>curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -<br>sudo apt-get install -y nodejs</pre><h4>Step 3: Set up your website</h4><ol><li><strong>Clone Your Project:</strong> You can use git or any other method to upload your project to the EC2 instance.</li></ol><pre>git clone https://github.com/username/repository-name.git<br>cd personal-portfolio-v1/</pre><p><strong>2. Install Project Dependencies:</strong> Inside your project directory, run</p><pre>sudo npm install -g yarn<br>yarn</pre><p><strong>3. Build Your Project:</strong></p><pre>npm run build</pre><h4>Step 4: Install NGINX</h4><ol><li><strong>Install NGINX:</strong></li></ol><pre>sudo apt-get install nginx</pre><p><strong>2. Configure NGINX</strong>: Edit the default NGINX configuration file</p><pre>sudo nano /etc/nginx/sites-available/default</pre><pre>server {<br>    listen 80 default_server;<br>    listen [::]:80 default_server;<br><br>    /home/ubuntu/personal-portfolio-v1/public;   <br>    index index.html;<br><br>    server_name www.rahulvikhe.com rahulvikhe.com;<br><br>    location / {<br>        try_files $uri $uri/ =404;<br>    }<br>}</pre><p>If you want to configure Nginx to serve files from a different directory, you should modify the root directive to point to that directory.</p><p><strong>3. Enable &amp; Start Nginx</strong>:</p><pre>sudo systemctl enable nginx<br>sudo systemctl start nginx</pre><p>You can check the status of Nginx using the systemctl command.</p><pre>sudo systemctl status nginx</pre><p>This command will display detailed information about the current status of the Nginx service, including whether it’s running, any recent logs, and more. You’ll see output similar to the following:</p><pre>● nginx.service - A high-performance web server and a reverse proxy server<br>   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)<br>   Active: active (running) since Fri 2023-10-15 15:00:35 UTC; 6s ago<br>     Docs: man:nginx(8)<br> Main PID: 12345 (nginx)<br>    Tasks: 2 (limit: 2298)<br>   CGroup: /system.slice/nginx.service<br>           ├─12345 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;<br>           └─12346 nginx: worker process<br><br>Oct 15 15:00:35 your-server-name systemd[1]: Starting A high-performance web server and a reverse proxy server...<br>Oct 15 15:00:35 your-server-name systemd[1]: Started A high-performance web server and a reverse proxy server.</pre><h4>Step 5: Set Up AWS Certificate Manager</h4><ol><li><strong>Navigate to ACM: </strong>Go to the AWS Certificate Manager (ACM) service in the AWS Console.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a2rmenKDt2r8T0Ux7P6dsA.png" /></figure><p><strong>2. Request a Certificate: </strong>Click “Request a certificate.” Enter your domain name, like www.example.com</p><p><strong>3. Validation:</strong> Choose the DNS validation method. ACM will provide DNS records you need to add in Route 53.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zj1b2G_MCTHR3CqZaLBoXg.png" /></figure><h4>Step 6: Configure AWS CloudFront</h4><ol><li><strong>Navigate to CloudFront: </strong>Go to the AWS CloudFront service in the AWS Console. Click “Create Distribution.”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*0ojyi1xE5Elh782t88MsdA.png" /></figure><ol><li><strong>Origin Settings: </strong>Set the origin as the EC2 instance Public IPv4 DNS. Configure the desired cache behaviors and TTL settings.</li><li><strong>SSL Configuration: </strong>Choose the custom SSL certificate you obtained from ACM.</li><li><strong>Alternate Domain Names (CNAMEs): </strong>Enter your domain name, like www.example.com, in the CNAMEs field.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*nTJTL5LwJWfjSflNzb7BOQ.png" /></figure><p><strong>4. Create Distribution:</strong> Review and create the CloudFront distribution.</p><h4>Step 7: Configure Route 53</h4><ol><li><strong>Navigate to Route 53: </strong>Go to the AWS Route 53 service in the AWS Console.</li><li><strong>Create a Hosted Zone: </strong>Click “Create Hosted Zone.” Enter your domain name, like example.com.</li><li><strong>Create DNS Records: </strong>Create Alias records that point to your CloudFront distribution for the desired subdomains.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gSULDzyi6p13NXV9ZDEj6Q.png" /></figure><p><strong>4. Update Domain Name Server (DNS) settings: </strong>Update your domain registrar’s DNS settings to point to the AWS Route 53 name servers. Wait for DNS propagation, which can take some time.</p><h4>Step 8: Testing</h4><ol><li><strong>Test Your Website: </strong>Our Node.js website will be now accessible via the CloudFront URL (e.g., https://your-cloudfront-distribution-url) and your custom domain.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zSIkSizt00aVXwn_sT1O8A.png" /></figure><p>For more advanced configurations and features, refer to the <a href="https://docs.aws.amazon.com/">https://docs.aws.amazon.com/</a></p><p>I hope this guide was helpful and informative. Please consider following me as I continue my journey, and I will share more articles like this in the future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9ae6d364a18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hosting a Static Website with AWS Amplify and GitHub]]></title>
            <link>https://medium.com/@rahulvikhe25/hosting-a-static-website-with-aws-amplify-and-github-dfb5a0e3ba6c?source=rss-6448ae709f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfb5a0e3ba6c</guid>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[aws-amplify]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Rahul Vikhe]]></dc:creator>
            <pubDate>Sat, 07 Oct 2023 17:28:42 GMT</pubDate>
            <atom:updated>2023-10-18T17:03:56.524Z</atom:updated>
            <content:encoded><![CDATA[<p>This documentation will guide you through the process of hosting a static website on AWS Amplify using GitHub as your source code repository. AWS Amplify is a fully managed service that allows you to easily build, deploy, and host web applications, including static websites. By integrating it with GitHub, you can automate the deployment process, making it easier to manage your website’s codebase and updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9q_aw71eRFiu9JzIP9QsCg.png" /></figure><h4><strong>Prerequisites</strong></h4><p>Before you begin, make sure you have the following prerequisites in place:</p><ul><li>An AWS account (if you don’t have one, you can create it <a href="https://aws.amazon.com/">here</a>).</li><li>A GitHub account (if you don’t have one, you can sign up <a href="https://github.com/">here</a>).</li><li>A static website project hosted on a GitHub repository.</li></ul><h4><strong>Step 1: Set up your AWS Amplify Environment</strong></h4><p><strong>Navigate to AWS Amplify:</strong> Go to the AWS Management Console and search for “Amplify” in the services search bar. Click on “Amplify” under the “Mobile &amp; Web” section.</p><p>Click the “Get Started” button in the Amplify console to create a new app. Choose “Manual Deployment” to set up Amplify manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16asQaSFsqAMSrIKkCFG-w.png" /></figure><p><strong>Connect to Repository</strong>: Select the repository service you are using (GitHub) and connect your GitHub account to AWS Amplify. Follow the prompts to authorize AWS Amplify to access your GitHub repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6nACJ82pbp7ydQBKD226w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auFGBfEECBBm92_W4QCaOQ.png" /></figure><p><strong>Choose Repository</strong>: Select the GitHub repository where your static website code is hosted &amp; choose the branch you want to use for deployments. Typically, this would be your main or production branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7kSNRrYpwOPVudmK5MlJxw.png" /></figure><p><strong>Build Settings</strong>: Configure your build settings. For a basic static website, you can leave the default settings.</p><p><strong>Review and Save</strong>: Review your settings and click the “Save and Deploy” button to trigger the initial deployment.</p><p><strong>Deployment</strong>: AWS Amplify will start the deployment process, which may take a few minutes. You can monitor the progress in the Amplify console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*up6jbgsmzAO_7RIXSeVOcA.png" /></figure><h4>Step 2: Configure Custom Domain (Optional)</h4><p>If you have a custom domain that you want to use for your website, follow these steps:</p><p><strong>Domain Configuration</strong>: In the Amplify console, go to the “Domain Management” section.</p><p><strong>Add Domain</strong>: Click the “Add Domain” button. Follow the domain setup wizard to configure your custom domain.</p><h4>Step 3: Continuous Deployment with GitHub</h4><p>To enable continuous deployment whenever you push changes to your GitHub repository, follow these steps:</p><ol><li><strong>GitHub Webhooks</strong>: go to “App settings” and then “General.” Scroll down to the “Continuous deployment” section.</li><li><strong>Connect Branch</strong>: Under “Branches,” click “Edit” and choose the branch you want to enable for automatic deployments (e.g., main).</li><li><strong>Save Changes</strong>: Click the “Save changes” button to configure the webhook.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uwWhZWcCaKHsyibpDdWayw.png" /></figure><p>Now, whenever you push changes to the selected branch on GitHub, AWS Amplify will automatically trigger a deployment of your static website.</p><p>Once the deployment is complete, you can access your website using the provided Amplify domain or your custom domain (if configured).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VUyWjyVpTJQOdlzTf4dTww.png" /></figure><h4>Conclusion</h4><p>Congratulations! You have successfully hosted your static website on AWS Amplify with GitHub integration. You can now easily manage and deploy updates to your website by pushing changes to your GitHub repository. AWS Amplify will take care of the deployment process automatically.</p><p>For more advanced configurations and features, refer to the <a href="https://docs.aws.amazon.com/amplify/index.html">AWS Amplify documentation</a>.</p><p>I hope this documentation was helpful and informative. Please consider following me as I continue my journey, and I will share more articles like this in the future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfb5a0e3ba6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>