{"id":18412,"date":"2023-03-27T17:14:20","date_gmt":"2023-03-27T11:44:20","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=18412"},"modified":"2023-03-27T17:14:20","modified_gmt":"2023-03-27T11:44:20","slug":"what-are-terraform-modules-and-their-purposes","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/","title":{"rendered":"\ud835\udc16\ud835\udc21\ud835\udc1a\ud835\udc2d \ud835\udc1a\ud835\udc2b\ud835\udc1e \ud835\udc13\ud835\udc1e\ud835\udc2b\ud835\udc2b\ud835\udc1a\ud835\udc1f\ud835\udc28\ud835\udc2b\ud835\udc26 \ud835\udc0c\ud835\udc28\ud835\udc1d\ud835\udc2e\ud835\udc25\ud835\udc1e\ud835\udc2c \ud835\udc1a\ud835\udc27\ud835\udc1d \ud835\udc2d\ud835\udc21\ud835\udc1e\ud835\udc22\ud835\udc2b \ud835\udc29\ud835\udc2e\ud835\udc2b\ud835\udc29\ud835\udc28\ud835\udc2c\ud835\udc1e\ud835\udc2c?"},"content":{"rendered":"<p>\ud83d\udcdd If you&#8217;re new to infrastructure-as-code (IAC), you may have heard of Terraform, a popular IAC tool used to build and manage infrastructure in the cloud. One of the most powerful features of Terraform is the use of modules, which help organize your code and make it reusable.<\/p>\n<p>\u27a1 In this blog post, we&#8217;ll dive into what Terraform modules are, how they work, and their purposes.<\/p>\n<p>\ud83d\udc49 What are Terraform modules?<br \/>\n\ud83d\udc49 Why use Terraform modules?<br \/>\n\ud83d\udc49 Common use cases for Terraform modules<br \/>\n\ud83d\udc49 How to create Terraform modules&#8230;<\/p>\n<p>\ud83d\udcda With modules, you can organize your code and make it reusable, saving time and effort in the long run. By understanding what Terraform modules are, how they work, and their purposes, you can take your infrastructure-as-code skills to the next level.<\/p>\n<p>\ud83e\udd14 So, want to know more about \ud835\udc13\ud835\udc1e\ud835\udc2b\ud835\udc2b\ud835\udc1a\ud835\udc1f\ud835\udc28\ud835\udc2b\ud835\udc26 \ud835\udc0c\ud835\udc28\ud835\udc1d\ud835\udc2e\ud835\udc25\ud835\udc1e\ud835\udc2c?<\/p>\n<p>\u26a1 Checkout this blog \ud83d\udc49 <a href=\"https:\/\/k21academy.com\/terraform-iac\/what-are-terraform-modules-and-their-purposes\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform29_march2023\" target=\"_blank\" rel=\"noopener\">https:\/\/k21academy.com\/terraform29<\/a><\/p>\n<p>\u26a1 Want more in-depth training?<\/p>\n<p>\u26a1 Register for the \ud835\udc05\ud835\udc11\ud835\udc04\ud835\udc04 \ud835\udc02\ud835\udc0b\ud835\udc00\ud835\udc12\ud835\udc12 \ud83d\udc49 <a href=\"https:\/\/k21academy.com\/free-class-terraform-for-beginners-and-certification\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform02_march2023\" target=\"_blank\" rel=\"noopener\">k21academy.com\/terraform02<\/a><\/p>\n<p><a href=\"https:\/\/k21academy.com\/free-class-terraform-for-beginners-and-certification\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform02_march2023\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/k21academy.com\/wp-content\/uploads\/2020\/08\/Terraform_CU_GIF1_ed.gif\" alt=\"Terrafrom free class\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udcdd If you&#8217;re new to infrastructure-as-code (IAC), you may have heard of Terraform, a popular IAC tool used to build [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":18413,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[531],"tags":[],"class_list":["post-18412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terraform-iac"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Terraform Modules &amp; Their Purposes<\/title>\n<meta name=\"description\" content=\"Modules are groups of .tf files that are kept in a different directory from the configuration as a whole &amp; encompasses all of its resources.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Terraform Modules &amp; Their Purposes\" \/>\n<meta property=\"og:description\" content=\"Modules are groups of .tf files that are kept in a different directory from the configuration as a whole &amp; encompasses all of its resources.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-27T11:44:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2023\/03\/Terraform-Modules-Their-Purposes.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/\",\"name\":\"Terraform Modules & Their Purposes\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2023\/03\/Terraform-Modules-Their-Purposes.png\",\"datePublished\":\"2023-03-27T11:44:20+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"description\":\"Modules are groups of .tf files that are kept in a different directory from the configuration as a whole & encompasses all of its resources.\",\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#primaryimage\",\"url\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2023\/03\/Terraform-Modules-Their-Purposes.png\",\"contentUrl\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2023\/03\/Terraform-Modules-Their-Purposes.png\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ud835\udc16\ud835\udc21\ud835\udc1a\ud835\udc2d \ud835\udc1a\ud835\udc2b\ud835\udc1e \ud835\udc13\ud835\udc1e\ud835\udc2b\ud835\udc2b\ud835\udc1a\ud835\udc1f\ud835\udc28\ud835\udc2b\ud835\udc26 \ud835\udc0c\ud835\udc28\ud835\udc1d\ud835\udc2e\ud835\udc25\ud835\udc1e\ud835\udc2c \ud835\udc1a\ud835\udc27\ud835\udc1d \ud835\udc2d\ud835\udc21\ud835\udc1e\ud835\udc22\ud835\udc2b \ud835\udc29\ud835\udc2e\ud835\udc2b\ud835\udc29\ud835\udc28\ud835\udc2c\ud835\udc1e\ud835\udc2c?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Terraform Modules & Their Purposes","description":"Modules are groups of .tf files that are kept in a different directory from the configuration as a whole & encompasses all of its resources.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/","og_locale":"en_US","og_type":"article","og_title":"Terraform Modules & Their Purposes","og_description":"Modules are groups of .tf files that are kept in a different directory from the configuration as a whole & encompasses all of its resources.","og_url":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/","article_published_time":"2023-03-27T11:44:20+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2023\/03\/Terraform-Modules-Their-Purposes.png","type":"image\/png"}],"author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/","url":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/","name":"Terraform Modules & Their Purposes","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#primaryimage"},"image":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#primaryimage"},"thumbnailUrl":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2023\/03\/Terraform-Modules-Their-Purposes.png","datePublished":"2023-03-27T11:44:20+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"description":"Modules are groups of .tf files that are kept in a different directory from the configuration as a whole & encompasses all of its resources.","breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#primaryimage","url":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2023\/03\/Terraform-Modules-Their-Purposes.png","contentUrl":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2023\/03\/Terraform-Modules-Their-Purposes.png","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2023\/03\/27\/what-are-terraform-modules-and-their-purposes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"\ud835\udc16\ud835\udc21\ud835\udc1a\ud835\udc2d \ud835\udc1a\ud835\udc2b\ud835\udc1e \ud835\udc13\ud835\udc1e\ud835\udc2b\ud835\udc2b\ud835\udc1a\ud835\udc1f\ud835\udc28\ud835\udc2b\ud835\udc26 \ud835\udc0c\ud835\udc28\ud835\udc1d\ud835\udc2e\ud835\udc25\ud835\udc1e\ud835\udc2c \ud835\udc1a\ud835\udc27\ud835\udc1d \ud835\udc2d\ud835\udc21\ud835\udc1e\ud835\udc22\ud835\udc2b \ud835\udc29\ud835\udc2e\ud835\udc2b\ud835\udc29\ud835\udc28\ud835\udc2c\ud835\udc1e\ud835\udc2c?"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/18412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=18412"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/18412\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media\/18413"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=18412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=18412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=18412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}