<?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: Navyashri P G</title>
    <description>The latest articles on DEV Community by Navyashri P G (@navyabhat).</description>
    <link>https://dev.to/navyabhat</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%2F3153023%2F547ddb4d-f122-4d01-9113-7977c23ac8aa.jpg</url>
      <title>DEV Community: Navyashri P G</title>
      <link>https://dev.to/navyabhat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/navyabhat"/>
    <language>en</language>
    <item>
      <title>Terraform in Real Life — Building Your First Cloud Infrastructure Step by Step</title>
      <dc:creator>Navyashri P G</dc:creator>
      <pubDate>Sat, 06 Jun 2026 09:54:07 +0000</pubDate>
      <link>https://dev.to/navyabhat/terraform-in-real-life-building-your-first-cloud-infrastructure-step-by-step-5bjp</link>
      <guid>https://dev.to/navyabhat/terraform-in-real-life-building-your-first-cloud-infrastructure-step-by-step-5bjp</guid>
      <description>&lt;p&gt;&lt;strong&gt;### Introduction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If Infrastructure as Code (IaC) is the concept of managing infrastructure using code, then Terraform is one of the most powerful tools that brings it to life in the real world.&lt;/p&gt;

&lt;p&gt;Instead of clicking through cloud dashboards, Terraform lets you write what you want once and it builds everything for you automatically.&lt;/p&gt;

&lt;p&gt;🧠 What is Terraform?&lt;br&gt;
Terraform is an open-source IaC tool created by HashiCorp that allows you to:&lt;/p&gt;

&lt;p&gt;Define infrastructure using code&lt;br&gt;
Create cloud resources automatically&lt;br&gt;
Manage AWS, Azure, GCP, and more&lt;br&gt;
Track changes safely over time&lt;/p&gt;

&lt;p&gt;👉 In simple words:&lt;br&gt;
“You describe your infrastructure, Terraform builds it.”&lt;/p&gt;

&lt;p&gt;🏗️ Real-Life Analogy&lt;br&gt;
Think of it like ordering food in a restaurant:&lt;br&gt;
You don’t go to the kitchen and cook yourself&lt;br&gt;
You just place an order (your code)&lt;br&gt;
The kitchen (Terraform) prepares everything&lt;br&gt;
You receive your final dish (working infrastructure)&lt;/p&gt;

&lt;p&gt;☁️ Real Example: AWS EC2 with Terraform&lt;br&gt;
Let’s say you want a virtual machine in AWS.&lt;/p&gt;

&lt;h2&gt;
  
  
  📝 Step 1: Provider setup
&lt;/h2&gt;

&lt;p&gt;provider "aws" {&lt;br&gt;
  region = "us-east-1"&lt;br&gt;
}&lt;br&gt;
👉 This tells Terraform:&lt;/p&gt;

&lt;p&gt;“We are working with AWS in this region.”&lt;/p&gt;

&lt;p&gt;🖥️ Step 2: Create EC2 instance&lt;/p&gt;

&lt;p&gt;resource "aws_instance" "my_server" {&lt;br&gt;
  ami           = "ami-12345678"&lt;br&gt;
  instance_type = "t2.micro"&lt;/p&gt;

&lt;p&gt;tags = {&lt;br&gt;
    Name = "MyFirstServer"&lt;br&gt;
  }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;👉 This tells Terraform:&lt;/p&gt;

&lt;p&gt;“Create a virtual machine for me.”&lt;/p&gt;

&lt;p&gt;⚙️ Step 3: Initialize Terraform&lt;/p&gt;

&lt;p&gt;terraform init&lt;/p&gt;

&lt;p&gt;This downloads required plugins.&lt;/p&gt;

&lt;p&gt;🚀 Step 4: Apply infrastructure&lt;/p&gt;

&lt;p&gt;terraform apply&lt;br&gt;
Terraform will:&lt;/p&gt;

&lt;p&gt;Show what will be created&lt;/p&gt;

&lt;p&gt;Ask for confirmation&lt;/p&gt;

&lt;p&gt;Build your infrastructure in AWS&lt;/p&gt;

&lt;p&gt;🔁 Why Terraform is Powerful in Real Life&lt;/p&gt;

&lt;p&gt;✅ 1. Repeatable Infrastructure&lt;br&gt;
You can rebuild the same setup anytime.&lt;/p&gt;

&lt;p&gt;✅ 2. No Manual Errors&lt;br&gt;
No clicking through AWS console mistakes.&lt;/p&gt;

&lt;p&gt;✅ 3. Version Control&lt;br&gt;
Your infrastructure behaves like code (Git-friendly).&lt;/p&gt;

&lt;p&gt;✅ 4. Scalable&lt;br&gt;
From 1 server → 100 servers easily.&lt;/p&gt;

&lt;p&gt;🏢 Real Industry Use Cases&lt;br&gt;
Terraform is used in companies for:&lt;/p&gt;

&lt;p&gt;Setting up cloud servers&lt;/p&gt;

&lt;p&gt;Creating Kubernetes clusters&lt;/p&gt;

&lt;p&gt;Managing databases&lt;/p&gt;

&lt;p&gt;Automating networking (VPCs, subnets)&lt;/p&gt;

&lt;p&gt;💡 Simple Summary&lt;br&gt;
Terraform is like a remote control for your entire cloud infrastructure.&lt;/p&gt;

&lt;p&gt;Instead of managing things manually, you just define them once and let automation do the work&lt;/p&gt;

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