<?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: Pranjal Singh</title>
    <description>The latest articles on DEV Community by Pranjal Singh (@innocentpranjal).</description>
    <link>https://dev.to/innocentpranjal</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%2F3633809%2F43a30ce2-8891-4ebb-91a3-4935dba2d36c.jpg</url>
      <title>DEV Community: Pranjal Singh</title>
      <link>https://dev.to/innocentpranjal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/innocentpranjal"/>
    <language>en</language>
    <item>
      <title>My first project on aws using terraform</title>
      <dc:creator>Pranjal Singh</dc:creator>
      <pubDate>Fri, 28 Nov 2025 06:01:14 +0000</pubDate>
      <link>https://dev.to/innocentpranjal/my-first-project-on-aws-using-terraform-2ko3</link>
      <guid>https://dev.to/innocentpranjal/my-first-project-on-aws-using-terraform-2ko3</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;I build my first project using terraform it was amazing and cool to start my journey on AWS using terraform&lt;/li&gt;
&lt;li&gt;I wanted to direct the traffic using the load balancer to both of the instances&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Load Balancer?
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
Load balance helps to distribute the incoming traffic from the internet such as HTTP/HTTPs to multiple targets (i.e. EC2 instances, Container or IP addresses)&lt;/p&gt;

&lt;p&gt;So here in my project in have used Application Load Balancer to distribute the incoming traffic&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Architecture Diagram&lt;/strong&gt;
&lt;/h2&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.amazonaws.com%2Fuploads%2Farticles%2Fmgo85il1zlcmmnze31qx.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.amazonaws.com%2Fuploads%2Farticles%2Fmgo85il1zlcmmnze31qx.png" alt="architecture diagram" width="800" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Folder Structure&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.amazonaws.com%2Fuploads%2Farticles%2F3zlf262if8j590w68cdr.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.amazonaws.com%2Fuploads%2Farticles%2F3zlf262if8j590w68cdr.png" alt="Folder Structure" width="324" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Components I have used while doing the project
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
VPC&lt;br&gt;
Subnet (Public/Private)&lt;br&gt;
Internet gateway and NAT gateway (IGW+NAT)&lt;br&gt;
Route Table&lt;br&gt;
Security Groups&lt;br&gt;
EC2 Instances&lt;br&gt;
Application Load Balancer&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo Output
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I installed Apache on the both the public Amazon EC2 instances so whenever we are hitting the URL of Load Balancer it is distributing the traffic to both of my instances currently 50-50&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.amazonaws.com%2Fuploads%2Farticles%2Fykx3ask34nzh38ho2nmp.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.amazonaws.com%2Fuploads%2Farticles%2Fykx3ask34nzh38ho2nmp.png" alt="Successful Output" width="800" height="242"&gt;&lt;/a&gt;&lt;br&gt;
&lt;code&gt;PS- There are few more services I have used while learning so that why there is 29 added&lt;/code&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.amazonaws.com%2Fuploads%2Farticles%2F1loxzpul98pqcvowq0qq.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.amazonaws.com%2Fuploads%2Farticles%2F1loxzpul98pqcvowq0qq.png" alt="First Instance" width="800" height="137"&gt;&lt;/a&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.amazonaws.com%2Fuploads%2Farticles%2Fqsi2f2lug0y0e0nxaq9i.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.amazonaws.com%2Fuploads%2Farticles%2Fqsi2f2lug0y0e0nxaq9i.png" alt="Second Instance" width="800" height="196"&gt;&lt;/a&gt;&lt;br&gt;
**&lt;/p&gt;

&lt;h2&gt;
  
  
  What Next
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;I wanted to use Variable in the code the Code to increase the modularity.&lt;/p&gt;

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