<?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: Brian Mengo</title>
    <description>The latest articles on DEV Community by Brian Mengo (@brian_mengo).</description>
    <link>https://dev.to/brian_mengo</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%2F3844844%2F4aab0841-36fc-4e8f-90f3-a3ded6483e33.jpg</url>
      <title>DEV Community: Brian Mengo</title>
      <link>https://dev.to/brian_mengo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/brian_mengo"/>
    <language>en</language>
    <item>
      <title>Introduction to IAC, how Terraform Works- Day01</title>
      <dc:creator>Brian Mengo</dc:creator>
      <pubDate>Tue, 21 Apr 2026 14:59:00 +0000</pubDate>
      <link>https://dev.to/brian_mengo/introduction-to-iac-how-terraform-works-day01-35lk</link>
      <guid>https://dev.to/brian_mengo/introduction-to-iac-how-terraform-works-day01-35lk</guid>
      <description>&lt;p&gt;Day01 of my 30day AWS terraform challenge, and I begin with highlighting what IaC is and how teams are using it to manage infrastructure in the cloud. &lt;br&gt;
Infrastructure as Code (IaC) is the practice of managing and provisioning computing infrastructure through machine-readable configuration files rather than through manual processes or interactive configuration tools.&lt;br&gt;
Think of it like this: instead of clicking through a cloud console to spin up servers, databases, and networks, you write code that describes exactly what you want — and a tool builds it for you.&lt;/p&gt;

&lt;p&gt;Tools for Infrastrucure as Code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Terraform (Multi-cloud and widely used)&lt;/li&gt;
&lt;li&gt;Pulumi&lt;/li&gt;
&lt;li&gt;AWS CloudFormation, AWS CDK, AWS SAM&lt;/li&gt;
&lt;li&gt;Azure ARM / Bicep&lt;/li&gt;
&lt;li&gt;GCP Deployment Manager, GCP Config Controller&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is Terraform&lt;/strong&gt;&lt;br&gt;
Terraform is an open-source IaC tool created by HashiCorp. It allows you to define, preview, and deploy infrastructure across multiple cloud providers — AWS, Azure, Google Cloud, and hundreds more — using a simple, human-readable language called HCL (HashiCorp Configuration Language).&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%2F26duckq3akmpbnxjqw2k.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%2F26duckq3akmpbnxjqw2k.png" alt=" " width="800" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Manual provisioning of Infrastructure Challenges&lt;/strong&gt;;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Time-consuming: A simple three-tier app infrastructure can take around  2 hours to set up manually.&lt;/li&gt;
&lt;li&gt;Complexity grows exponentially when managing multiple environments&lt;/li&gt;
&lt;li&gt;Human error risks: Manual steps increase chances of misconfiguration, security oversights, or inconsistent environments&lt;/li&gt;
&lt;li&gt;Inconsistency: Different people provisioning environments can lead to "it works on my machine" issues.&lt;/li&gt;
&lt;li&gt;High operational costs and delays affecting dependent teams &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;Benefits of Terraform&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automates the process.&lt;/li&gt;
&lt;li&gt;Reduces time needed to perform the same action again and again.&lt;/li&gt;
&lt;li&gt;Reduces labour resource which was needed to manual perform the process.&lt;/li&gt;
&lt;li&gt;Reduces the chances of human error.&lt;/li&gt;
&lt;li&gt;We can track changes using git.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How Terraform Works&lt;/strong&gt;&lt;br&gt;
Terraform Initialise - Run terraform init to initialize the working directory and download necessary providers.&lt;br&gt;
Validate Configuraion - Run terraform validate to check for syntax or configuration errors.&lt;br&gt;
Terraform Plan - Run terraform plan to preview infrastructure changes before applying.&lt;br&gt;
Terraform apply - Run terraform apply to provision or modify the infrastructure by calling cloud API.&lt;br&gt;
Terraform Destroy - Run terraform destroy to delete resources when no longer needed.&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%2F5nq5yjt6blsr47a36siu.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%2F5nq5yjt6blsr47a36siu.png" alt=" " width="300" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Getting Started&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install Terraform&lt;/strong&gt; → &lt;a href="http://developer.hashicorp.com/terraform/install" rel="noopener noreferrer"&gt;developer.hashicorp.com/terraform/install&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set up a cloud provider account&lt;/strong&gt; (AWS Free Tier is great for learning)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write your first &lt;code&gt;.tf&lt;/code&gt; file&lt;/strong&gt; and run &lt;code&gt;terraform init&lt;/code&gt;, &lt;code&gt;terraform plan&lt;/code&gt;, &lt;code&gt;terraform apply&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore the Terraform Registry&lt;/strong&gt; → &lt;a href="http://registry.terraform.io" rel="noopener noreferrer"&gt;registry.terraform.io&lt;/a&gt; for modules and providers&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/s5fwSG_00P8"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

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