{"id":2720,"date":"2024-03-27T14:29:00","date_gmt":"2024-03-27T14:29:00","guid":{"rendered":"https:\/\/blog.samarthya.me\/wps\/?p=2720"},"modified":"2024-03-27T14:29:01","modified_gmt":"2024-03-27T14:29:01","slug":"terraform-iac","status":"publish","type":"post","link":"https:\/\/blog.samarthya.me\/wps\/2024\/03\/27\/terraform-iac\/","title":{"rendered":"Terraform (IaC)"},"content":{"rendered":"<div class=\"wp-block-image is-style-rounded\">\n<figure class=\"alignleft size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2024\/03\/iac1-1024x1024.jpeg\" alt=\"\" class=\"wp-image-2721\" style=\"aspect-ratio:3\/2;object-fit:cover\" srcset=\"https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2024\/03\/iac1-1024x1024.jpeg 1024w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2024\/03\/iac1-150x150@2x.jpeg 300w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2024\/03\/iac1-150x150.jpeg 150w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2024\/03\/iac1.jpeg 1536w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2024\/03\/iac1-300x300@2x.jpeg 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>IaC stands for <strong>Infrastructure as Code<\/strong>. It&#8217;s a concept where you define and manage your infrastructure using code files instead of manually provisioning resources through a web interface or command-line tools. This approach offers several benefits like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Repeatability:<\/strong>&nbsp;You can easily recreate your infrastructure from scratch or in different environments by simply running the code again.<\/li>\n\n\n\n<li><strong>Version control:<\/strong>&nbsp;You can track changes to your infrastructure configuration over time, similar to how you would with software code.<\/li>\n\n\n\n<li><strong>Consistency:<\/strong>&nbsp;IaC ensures all your infrastructure deployments follow the same specifications, reducing errors.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">What is Terraform?<\/h3>\n\n\n\n<p><strong>Terraform<\/strong> is a popular open-source tool that implements the IaC concept. It allows you to define your infrastructure resources (like servers, virtual networks, databases) in human-readable configuration files written in <code>HashiCorp<\/code> Configuration Language (HCL). Terraform then provisions and manages those resources on various cloud platforms and on-premises infrastructure.<\/p>\n\n\n\n<p>In simpler terms, IaC is the overall philosophy, and Terraform is a specific tool that lets you put IaC into practice.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IaC stands for Infrastructure as Code. It&#8217;s a concept where you define and manage your infrastructure using code files instead of manually provisioning resources through a web interface or command-line tools. This approach offers several benefits like: What is Terraform? Terraform is a popular open-source tool that implements the IaC concept. It allows you to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2722,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[34],"tags":[235],"class_list":["post-2720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical","tag-terraform"],"_links":{"self":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/2720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/comments?post=2720"}],"version-history":[{"count":1,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/2720\/revisions"}],"predecessor-version":[{"id":2723,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/2720\/revisions\/2723"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/media\/2722"}],"wp:attachment":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/media?parent=2720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/categories?post=2720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/tags?post=2720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}