<?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>Forem: Rishabh Verma</title>
    <description>The latest articles on Forem by Rishabh Verma (@rishabh_verma_1fdfa7f9c0d).</description>
    <link>https://forem.com/rishabh_verma_1fdfa7f9c0d</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1491722%2F16e7179b-eed4-4c73-886c-4e691f26b6e1.png</url>
      <title>Forem: Rishabh Verma</title>
      <link>https://forem.com/rishabh_verma_1fdfa7f9c0d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rishabh_verma_1fdfa7f9c0d"/>
    <language>en</language>
    <item>
      <title>A Secret Trick to Solve Hard Problems!</title>
      <dc:creator>Rishabh Verma</dc:creator>
      <pubDate>Wed, 14 Aug 2024 13:43:50 +0000</pubDate>
      <link>https://forem.com/rishabh_verma_1fdfa7f9c0d/a-secret-trick-to-solve-hard-problems-ll2</link>
      <guid>https://forem.com/rishabh_verma_1fdfa7f9c0d/a-secret-trick-to-solve-hard-problems-ll2</guid>
      <description>&lt;p&gt;The &lt;strong&gt;Trick&lt;/strong&gt; I Am About To Tell You, will literally solve almost &lt;strong&gt;every problem&lt;/strong&gt; you face in development. &lt;/p&gt;

&lt;p&gt;I am using this trick in each problem i am facing. Trust me this works wonder. &lt;/p&gt;

&lt;p&gt;This trick will give you &lt;strong&gt;extra edge&lt;/strong&gt; over other so read this carefully!&lt;/p&gt;




&lt;p&gt;At the beginning of 2024, I was trying to transfer data from my website to AWS. &lt;/p&gt;

&lt;p&gt;It was the first time I encountered CORS. I thought to myself, "Meh, this will probably take me a few minutes."&lt;/p&gt;

&lt;p&gt;But oh boy, I was so wrong!&lt;/p&gt;

&lt;p&gt;This line &lt;strong&gt;"access-control-allow-origin"&lt;/strong&gt; still gives me nightmares. &lt;/p&gt;

&lt;p&gt;I don’t know about you, but personally, I hate CORS. My brain just can’t handle it — it’s too much for me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgh50jp9ds9pqtgvdbc2o.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgh50jp9ds9pqtgvdbc2o.gif" alt="Image description" width="426" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, like all developers, I searched for a solution. But my problem seemed unique, like no one had addressed it on the internet. No amount of tutorials, Stack Overflow threads, or blog posts seemed to help.&lt;/p&gt;

&lt;p&gt;It was frustrating, to say the least. I spent literally days trying to solve this stupid CORS problem.&lt;/p&gt;

&lt;p&gt;But then, I took a step back and tried to relax. I thought to myself, How am I going to solve this problem?&lt;/p&gt;

&lt;p&gt;That’s when I stumbled upon this trick!&lt;/p&gt;

&lt;p&gt;The trick? Embrace systematic, iterative problem-solving. Sounds simple, right? But it’s incredibly effective. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here’s how it works&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Clearly define the problem&lt;/strong&gt;. Write it down and be as specific as possible. The more detailed, the better. This step is crucial because a well-defined problem is halfway solved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Make an educated guess about the root cause&lt;/strong&gt;. What’s the most likely reason you’re facing this issue? Don’t overthink it—go with your gut. Remember, it’s just a hypothesis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test your hypothesis&lt;/strong&gt;. Implement a solution based on your guess and observe the results. If it works, great! If not, move on to the next possible cause.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Seek out targeted information&lt;/strong&gt;. If you don’t have the necessary knowledge to solve the issue, look it up—but be laser-focused. Don’t waste time reading irrelevant content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repeat the process&lt;/strong&gt;. Keep testing and refining your approach until you solve the problem. &lt;/p&gt;

&lt;p&gt;Lets take an example, Lets say  your webpage is loading slowly, you could guess that the following things might be contributing to the issue:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The page is loading too many large images or videos, causing a delay in rendering.&lt;/li&gt;
&lt;li&gt;Your CSS and JavaScript files are not minified, leading to longer download and processing times.&lt;/li&gt;
&lt;li&gt;There are too many HTTP requests being made for different resources, increasing the load time.&lt;/li&gt;
&lt;li&gt;The server response time is slow, possibly due to poor backend performance or a lack of caching mechanisms&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We’ve already stated the problem, so that’s a good start.&lt;/p&gt;

&lt;p&gt;Our initial tests show that the page is indeed loading slowly, and any of the factors mentioned could be contributing to this issue, so we have no choice but to test them all.&lt;/p&gt;

&lt;p&gt;Brute force it is.&lt;/p&gt;

&lt;p&gt;We therefore start at the top: large media files could be the issue. We specifically seek out techniques to optimize images and videos for the web, like compressing images or using lazy loading. We implement these changes and observe the results. If the page still loads slowly, then it’s on to the next thing.&lt;/p&gt;

&lt;p&gt;We know very little about minifying files, so we spend some time researching tools and methods to minify our CSS and JavaScript files. After finding the right tools, we minify our files and deploy the changes. We observe the results, and if the problem persists, we move on to the next potential cause.&lt;/p&gt;

&lt;p&gt;Next, we investigate the number of HTTP requests. We look for ways to combine files, use sprites, or implement HTTP/2 to reduce the number of requests. We apply these optimizations and monitor the loading speed.&lt;/p&gt;

&lt;p&gt;If server response time is suspected, we might examine the backend, implement caching strategies, or optimize database queries. We make these changes and check the impact on loading time.&lt;/p&gt;

&lt;p&gt;By systematically addressing each potential issue, we gradually improve the page’s loading speed. If it still doesn’t reach the desired performance, we continue the process by revisiting each factor and making further refinements until the problem is fully resolved.&lt;/p&gt;

&lt;p&gt;To summarize, this is how you solve problems:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Isolate the problem.&lt;br&gt;
Guess the root cause of the problem.&lt;br&gt;
Address each root cause in turn.&lt;br&gt;
Acquire any new skills needed to solve those specific problems&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;**&lt;br&gt;
&lt;strong&gt;But here’s the catch: this approach needs practice. You’ll probably scroll past this after reading it, instead of actually implementing it. I recommend you either write it down on your computer or save this post.&lt;/strong&gt;**&lt;/p&gt;




&lt;p&gt;This Trick saved me countless hours and headaches. It’s the difference between floundering in a sea of information and making steady, measurable progress. &lt;/p&gt;

&lt;p&gt;And the best part? It’s applicable to almost any problem in development—whether you’re debugging code, optimizing performance, or designing a new feature.&lt;/p&gt;

&lt;p&gt;Since adopting this method, my productivity has skyrocketed. I’m solving problems faster and with more confidence than ever before.&lt;/p&gt;

&lt;p&gt;It’s like having a &lt;strong&gt;superpower that puts you ahead of the curve&lt;/strong&gt;, giving you that extra edge.&lt;/p&gt;

&lt;p&gt;So, the next time you’re stuck, don’t panic. Instead, systematically break down the problem, hypothesize, test, and iterate. You’ll be amazed at how quickly you start crushing those roadblocks.&lt;/p&gt;

&lt;p&gt;Now, get out there and start applying this trick. I guarantee it’ll change the way you approach development challenges.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In Next Few Days, I will be sharing quality post just like this, so dont miss out&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>softwaredevelopment</category>
      <category>career</category>
    </item>
    <item>
      <title>Automate Your Cloud In 15 Minutes | Terraform Guide</title>
      <dc:creator>Rishabh Verma</dc:creator>
      <pubDate>Mon, 12 Aug 2024 14:33:53 +0000</pubDate>
      <link>https://forem.com/rishabh_verma_1fdfa7f9c0d/automate-your-cloud-in-15-minutes-terraform-guide-4cjm</link>
      <guid>https://forem.com/rishabh_verma_1fdfa7f9c0d/automate-your-cloud-in-15-minutes-terraform-guide-4cjm</guid>
      <description>&lt;p&gt;I am tired of reading so much crap whenever I read an article.&lt;/p&gt;

&lt;p&gt;They just yap about all the unnecessary stuff and waste so much time.&lt;/p&gt;

&lt;p&gt;I decided to create a quality post that will save your valuable time.&lt;/p&gt;

&lt;p&gt;So I spent &lt;strong&gt;3 hours&lt;/strong&gt; compressing knowledge about Terraform and Simplify as much as possible and presented to you in a format that will give you unfair advantage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here we goooo-&amp;gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnjixp6domd82j1abe4rb.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnjixp6domd82j1abe4rb.gif" alt="Image description" width="498" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What if you execute a lines of script and the whole damn website is hosted with proper Https, security, backend and all?? &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;yeah thats what terraform is capable of&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Lets take an example to better understand.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Imagine you have a GF. (I say 'imagine' for a reason ☺️)&lt;/li&gt;
&lt;li&gt;You're tired of making your own sandwich daily.&lt;/li&gt;
&lt;li&gt;You ask your GF  to make one but she doesn't know how to make a sandwich.&lt;/li&gt;
&lt;li&gt;so you write a instruction and give it to her.&lt;/li&gt;
&lt;li&gt;Now, every time you want one, you just tell your GF to make a sandwich, and she reads the instructions and make it for you.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;so Terraform works similar to this.&lt;/p&gt;

&lt;p&gt;Terraform in &lt;strong&gt;4 Simple Commands&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1) terraform init:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This command is basically like buying food from the store before actually cooking the sandwich.&lt;/li&gt;
&lt;li&gt;The terraform init command is the first command you run when you start a new Terraform project. &lt;strong&gt;It downloads necessary plugins and libraries.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Run this command the &lt;strong&gt;first time&lt;/strong&gt; you set up a project or whenever you &lt;strong&gt;add new providers.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2) terraform plan:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Before actually making the sandwich, your GF tells you, "Hey, I'm making a spicy sandwich with some pineapple on it. Is that okay?"&lt;/li&gt;
&lt;li&gt;So this command tells you what changes it will make to your cloud. &lt;strong&gt;Remember to use this command before making changes.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Run this command to see a preview of the changes before applying them. It helps you avoid mistakes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3) terraform apply:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You might answer your GF, "Hell yeah! I like sandwiches with pineapple on them."&lt;/li&gt;
&lt;li&gt;This command is like you confirming that the action Terraform is about to take is okay with you. It’s like giving permission to make changes to your cloud.&lt;/li&gt;
&lt;li&gt;Run this command when you’re &lt;strong&gt;ready to make the changes&lt;/strong&gt; to your cloud infrastructure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;4) terraform destroy:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Yo, WTF! Why did you add apple to my sandwich? Please throw this shit in the dustbin where it belongs."&lt;/li&gt;
&lt;li&gt;Basically This command &lt;strong&gt;deletes the resources&lt;/strong&gt; it created.&lt;/li&gt;
&lt;li&gt;Run this command when you want to *&lt;em&gt;remove all the resources *&lt;/em&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now let's roll up our sleeves and get our hands dirty with Terraform!😈&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17pf25zwuwzycq6ifeju.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17pf25zwuwzycq6ifeju.gif" alt="Image description" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sure! Here’s a step-by-step guide to installing Terraform and writing your first Terraform code.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Install Terraform
&lt;/h3&gt;

&lt;h4&gt;
  
  
  For Windows
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Download Terraform&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to the &lt;a href="https://www.terraform.io/downloads.html" rel="noopener noreferrer"&gt;Terraform download page&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Download the appropriate &lt;code&gt;.zip&lt;/code&gt; file for Windows.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Extract the Zip File&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Extract the downloaded &lt;code&gt;.zip&lt;/code&gt; file to a location of your choice.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Add Terraform to System Path&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open the folder where you extracted &lt;code&gt;terraform.exe&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copy the path to this folder.&lt;/li&gt;
&lt;li&gt;Open the Start Menu, search for "Environment Variables", and select "Edit the system environment variables".&lt;/li&gt;
&lt;li&gt;In the System Properties window, click on "Environment Variables".&lt;/li&gt;
&lt;li&gt;In the "System variables" section, find and select the &lt;code&gt;Path&lt;/code&gt; variable, then click "Edit".&lt;/li&gt;
&lt;li&gt;Click "New" and paste the path you copied. Click "OK" to close all windows.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Verify Installation&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open Command Prompt and type:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;terraform --version&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzjrcuqq6q5hixqk37ax4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzjrcuqq6q5hixqk37ax4.png" alt="Image description" width="595" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;you will see something like this.&lt;/li&gt;
&lt;li&gt;Since Terraform is added to your computer. I recommend you to download Terraform Extension in VS code&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2: Writing Your First Terraform Code
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Inside your project directory, create a file named &lt;code&gt;**main.tf**&lt;/code&gt;. &lt;/li&gt;
&lt;li&gt; Open &lt;code&gt;main.tf&lt;/code&gt; in a Vs Code (terraform files always have .tf extension) and add the following code to create a simple AWS EC2 instance:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjaavwjvejpavzwdvkjdw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjaavwjvejpavzwdvkjdw.png" alt="Image description" width="800" height="212"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To get Ami id you have to create your own ami by starting an ec2 instance and then creating ami of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Initialize Terraform&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After you write the above code.&lt;/li&gt;
&lt;li&gt;Run the following command to initialize the project. 
&lt;code&gt;terraform init&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;This downloads the necessary provider plugins and sets up the environment:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Preview the Changes&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;To see what Terraform will do before applying changes, run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;terraform plan&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Apply the Configuration&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;To create the resources defined in your &lt;code&gt;main.tf&lt;/code&gt; file, run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;terraform apply&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Terraform will show you a summary of what will be created and ask for your confirmation. Type &lt;code&gt;yes&lt;/code&gt; to proceed.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Verify the Resources&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Log into your AWS Management Console (or the cloud provider’s console) and check that the resources (e.g., EC2 instance) have been created as specified.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Removing the Resources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run this Command to delete the resource you just have created&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terraform destroy&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Terraform will prompt you to confirm before deleting anything. &lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;yes&lt;/code&gt; to proceed.&lt;/li&gt;
&lt;li&gt;Remember to run the Terraform Destroy after you done. or you get charged for running EC2 Instance
.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to become Elite terraformer Or want to  get some help.&lt;br&gt;
&lt;strong&gt;Just Connect me on Linkedin!. I will be glad to help you :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="//www.linkedin.com/in/rishabh-verma-6757532ba"&gt;My linkedin profile&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>terraform</category>
      <category>cloud</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Host Your Website With Only $0.50 A Month</title>
      <dc:creator>Rishabh Verma</dc:creator>
      <pubDate>Fri, 28 Jun 2024 02:28:16 +0000</pubDate>
      <link>https://forem.com/rishabh_verma_1fdfa7f9c0d/host-your-website-with-only-050-a-month-4hki</link>
      <guid>https://forem.com/rishabh_verma_1fdfa7f9c0d/host-your-website-with-only-050-a-month-4hki</guid>
      <description>&lt;h2&gt;
  
  
  How to Host Your Website for Just $0.50!
&lt;/h2&gt;

&lt;p&gt;Do you want to host your website for just $0.50? You heard me right! It’s not clickbait—just keep reading.&lt;/p&gt;

&lt;p&gt;I’m in my final year, and I have a dream of building my own portfolio website. However, there’s a significant hurdle: hosting a website is expensive. If you check out GoDaddy’s prices, you’ll be shocked&lt;/p&gt;

&lt;p&gt;Determined to find a more affordable solution, I started researching alternatives. And guess what? I found an incredible workaround.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The actual cost may vary slightly based on usage, but it’s still incredibly affordable compared to traditional hosting options.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Here’s the Plan:&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;We use an AWS Free Tier account, which provides dozens of services for free. Our website content is stored in an S3 bucket, which is a storage service (also free). This way, you only pay for DNS (Route 53).&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;So Let's Get Started:&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Steps:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create an AWS Account&lt;/li&gt;
&lt;li&gt;Buy a domain from any domain site like GoDaddy&lt;/li&gt;
&lt;li&gt;Upload your website content to S3&lt;/li&gt;
&lt;li&gt;Point your domain name to the S3 bucket via CloudFront&lt;/li&gt;
&lt;li&gt;Enjoy your website :)&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 1: Creating an AWS Account
&lt;/h3&gt;

&lt;p&gt;Type "AWS Console" in your browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Febzp8z9y8nwp5lqqtq86.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Febzp8z9y8nwp5lqqtq86.png" alt="Image description" width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now create your account (you can do it! It’s easy). Remember, you have to provide your payment method before you can use AWS services, even though the services we’re using are free or very low cost.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Buying a Domain
&lt;/h3&gt;

&lt;p&gt;Buy a domain from your favorite domain registrar. I chose GoDaddy But you can choose any registrar you like.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Uploading Content to AWS S3
&lt;/h3&gt;

&lt;p&gt;Once you open the AWS Console, type "S3" in the search bar.&lt;/p&gt;

&lt;p&gt;Click on &lt;strong&gt;Buckets&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnf2myk8z6pph8o17hv5e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnf2myk8z6pph8o17hv5e.png" alt="Image description" width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give your bucket a unique name.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0dbdhum7fjkgz2tldeit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0dbdhum7fjkgz2tldeit.png" alt="Image description" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To allow users to access your website, uncheck all public access restrictions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd9xyp95asjmqv8h4t71v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd9xyp95asjmqv8h4t71v.png" alt="Image description" width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inside your bucket, click on the &lt;strong&gt;Upload&lt;/strong&gt; button to upload your website content.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi10ujtmtnrfmsa81s24s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi10ujtmtnrfmsa81s24s.png" alt="Image description" width="800" height="145"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before uploading your website files to AWS, ensure that your main file, like &lt;code&gt;index.html&lt;/code&gt;, is directly visible and not inside a folder. For example, if your website files are in a folder named "my website," upload the files inside it, not the whole folder. Otherwise, AWS won’t be able to find the &lt;code&gt;index.html&lt;/code&gt; to display your website.&lt;/p&gt;

&lt;p&gt;Next, we need to enable &lt;strong&gt;static web hosting&lt;/strong&gt; to turn your bucket into a basic web server for serving HTML, CSS, JavaScript, and images.&lt;/p&gt;

&lt;p&gt;Go to &lt;strong&gt;Properties&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyllhp3rt0fx0h4ftqlvv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyllhp3rt0fx0h4ftqlvv.png" alt="Image description" width="800" height="114"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on &lt;strong&gt;Edit&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F634hfn7u3k5ov2ylg0up.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F634hfn7u3k5ov2ylg0up.png" alt="Image description" width="800" height="154"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fill in the options as shown below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm7g6j3uk251308pt1ibb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm7g6j3uk251308pt1ibb.png" alt="Image description" width="800" height="563"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;Bucket website endpoint&lt;/strong&gt; to check if your website is visible. &lt;/p&gt;

&lt;p&gt;If it’s not, don’t worry! Head over to the &lt;strong&gt;Permissions&lt;/strong&gt; tab.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fme16wyk6tjg13ynktgk6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fme16wyk6tjg13ynktgk6.png" alt="Image description" width="800" height="99"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Scroll down to find the &lt;strong&gt;Bucket Policy&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0lrfl9drek3xrc8n552k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0lrfl9drek3xrc8n552k.png" alt="Image description" width="800" height="124"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here’s where we’ll add a policy to make your content publicly accessible. You can use the following policy snippet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"Version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"Statement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Sid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"PublicReadGetObject"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Principal"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"s3:GetObject"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Resource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"arn:aws:s3:::your-bucket-name/*"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;your-bucket-name&lt;/code&gt; with the actual name of your S3 bucket. This policy allows anyone to read (download) objects from your bucket, which is necessary for public web access.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Pointing Your Domain to the S3 Bucket via Route 53
&lt;/h3&gt;

&lt;p&gt;To make your domain point to your S3 bucket, use Route 53&lt;br&gt;
Here’s a step-by-step guide &lt;br&gt;
&lt;strong&gt;Create a Hosted Zone in Route 53&lt;/strong&gt;: For your domain to manage DNS settings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7awra204les5tsjqoav1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7awra204les5tsjqoav1.png" alt="Image description" width="800" height="67"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Add DNS Records:&lt;/strong&gt; Set up the necessary DNS records (usually A or CNAME records) in Route 53 that point to your S3 bucket. &lt;strong&gt;Remember Route charge 0.50$ for each A record&lt;/strong&gt; ( so be careful).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update Name Servers&lt;/strong&gt;: If your domain is registered with another provider, update the name servers to those provided by Route 53.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 5: Enjoy Your Website!
&lt;/h3&gt;

&lt;p&gt;You’re all set! Your website should now be live and accessible via your custom domain. Hosting for just $0.50? Mission accomplished!&lt;/p&gt;




&lt;p&gt;If you are facing any issues, just write in the comments, and I will help you.&lt;/p&gt;

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