{"id":15036,"date":"2020-08-20T12:48:25","date_gmt":"2020-08-20T07:18:25","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=15036"},"modified":"2020-08-20T12:51:40","modified_gmt":"2020-08-20T07:21:40","slug":"variables-in-terraform","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/","title":{"rendered":"Variables In Terraform"},"content":{"rendered":"<p><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Variables In Terraform\\r\\n\\r\\nReusability is one of the major benefits of Infrastructure as Code. In Terraform, we can use variables to make our configurations more dynamic. This means we are no longer hard coding every value into the configuration. \\r\\n\\r\\nCheck out this blog at k21academy.com\/terraform13 to know more about types of input variables available in Terraform and how to define them in terraform configuration.\\r\\n\\r\\nThis blog post covers:\\r\\n\u00b7        Input Variables\\r\\n\u00b7        Types of Input Variables in Terraform\\r\\n\u00b7        Use Input Variables\\r\\n\u00b7        Assign Values to Input Variables\\r\\n\u00b7        Define Output Variables\\r\\n\\r\\nBegin your journey towards becoming a Terraform Certified Associate and earn a lot more in 2020 by joining our FREE Class at http:\/\/k21academy.com\/terraform02\\r\\n\\r\\nAlso, don't forget to join our FREE Telegram group at https:\/\/t.me\/ocibeginner and be the first to receive Terraform related news and updates\\r\\n\\r\\n#Terraform #Infrastructure #OCI #Oracle #Azure #AWS #K21Academy&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4993,&quot;3&quot;:[null,4,&quot;\\&quot;$\\&quot;#,##0.00&quot;],&quot;10&quot;:2,&quot;11&quot;:4,&quot;12&quot;:0,&quot;15&quot;:&quot;arial, sans, sans-serif&quot;}\"><strong>Reusability<\/strong> is one of the major benefits of Infrastructure as Code. In Terraform, we can use variables to make our configurations more dynamic. This means we are no longer hard coding every value into the configuration.<\/p>\n<p>Check out this blog at <a href=\"https:\/\/k21academy.com\/terraform-iac\/variables-in-terraform\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform13_aug20\" target=\"_blank\" rel=\"noopener noreferrer\">k21academy.com\/terraform13<\/a> to know more about types of <strong>input variables<\/strong> available in <strong>Terraform<\/strong> and how to define them in terraform configuration.<\/p>\n<p>This blog post covers:<br \/>\n\u00b7 Input Variables<br \/>\n\u00b7 Types of Input Variables in Terraform<br \/>\n\u00b7 Use Input Variables<br \/>\n\u00b7 Assign Values to Input Variables<br \/>\n\u00b7 Define Output Variables<\/p>\n<p>Begin your journey towards becoming a <strong>Terraform Certified Associate<\/strong> and earn a lot more in 2020 by joining our <strong>FREE Class<\/strong> at <a href=\"https:\/\/k21academy.com\/free-class-terraform-automation-and-devops-certification\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform02_aug20\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/k21academy.com\/terraform02<\/a>.<\/span><\/p>\n<p><strong>Click on the below image<\/strong>\u00a0to Register for the FREE\u00a0<a href=\"https:\/\/k21academy.com\/free-class-terraform-automation-and-devops-certification\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform02_aug20\" target=\"_blank\" rel=\"noopener noreferrer\">Masterclass<\/a>\u00a0Now!<\/p>\n<p><a href=\"https:\/\/k21academy.com\/free-class-terraform-automation-and-devops-certification\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform02_aug20\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-38275 size-full\" src=\"https:\/\/k21academy.com\/wp-content\/uploads\/2020\/07\/Terraform_CU-05.gif\" alt=\"Install terraform\" width=\"1353\" height=\"204\" \/><\/a><\/p>\n<p><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Variables In Terraform\\r\\n\\r\\nReusability is one of the major benefits of Infrastructure as Code. In Terraform, we can use variables to make our configurations more dynamic. This means we are no longer hard coding every value into the configuration. \\r\\n\\r\\nCheck out this blog at k21academy.com\/terraform13 to know more about types of input variables available in Terraform and how to define them in terraform configuration.\\r\\n\\r\\nThis blog post covers:\\r\\n\u00b7        Input Variables\\r\\n\u00b7        Types of Input Variables in Terraform\\r\\n\u00b7        Use Input Variables\\r\\n\u00b7        Assign Values to Input Variables\\r\\n\u00b7        Define Output Variables\\r\\n\\r\\nBegin your journey towards becoming a Terraform Certified Associate and earn a lot more in 2020 by joining our FREE Class at http:\/\/k21academy.com\/terraform02\\r\\n\\r\\nAlso, don't forget to join our FREE Telegram group at https:\/\/t.me\/ocibeginner and be the first to receive Terraform related news and updates\\r\\n\\r\\n#Terraform #Infrastructure #OCI #Oracle #Azure #AWS #K21Academy&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4993,&quot;3&quot;:[null,4,&quot;\\&quot;$\\&quot;#,##0.00&quot;],&quot;10&quot;:2,&quot;11&quot;:4,&quot;12&quot;:0,&quot;15&quot;:&quot;arial, sans, sans-serif&quot;}\">Also, don&#8217;t forget to join our <strong>FREE Telegram group<\/strong> at <a href=\"https:\/\/t.me\/ocibeginner\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/t.me\/ocibeginner<\/a> and be the first to receive Terraform related news and updates.<br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Reusability is one of the major benefits of Infrastructure as Code. In Terraform, we can use variables to make our [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":15037,"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-15036","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>Variables in Terraform | Input and Output Variables | K21Academy<\/title>\n<meta name=\"description\" content=\"Reusability is one of the major benefits of Infrastructure as Code. This blog covers variables and how they make configuration more dynamic.\" \/>\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\/2020\/08\/20\/variables-in-terraform\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Variables in Terraform | Input and Output Variables | K21Academy\" \/>\n<meta property=\"og:description\" content=\"Reusability is one of the major benefits of Infrastructure as Code. This blog covers variables and how they make configuration more dynamic.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-20T07:18:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-20T07:21:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2020\/08\/Terraform-IaC_BlogImage.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1125\" \/>\n\t<meta property=\"og:image:height\" content=\"629\" \/>\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\/2020\/08\/20\/variables-in-terraform\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/\",\"name\":\"Variables in Terraform | Input and Output Variables | K21Academy\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2020\/08\/Terraform-IaC_BlogImage.png\",\"datePublished\":\"2020-08-20T07:18:25+00:00\",\"dateModified\":\"2020-08-20T07:21:40+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"description\":\"Reusability is one of the major benefits of Infrastructure as Code. This blog covers variables and how they make configuration more dynamic.\",\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#primaryimage\",\"url\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2020\/08\/Terraform-IaC_BlogImage.png\",\"contentUrl\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2020\/08\/Terraform-IaC_BlogImage.png\",\"width\":1125,\"height\":629,\"caption\":\"Input Variables\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Variables In Terraform\"}]},{\"@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":"Variables in Terraform | Input and Output Variables | K21Academy","description":"Reusability is one of the major benefits of Infrastructure as Code. This blog covers variables and how they make configuration more dynamic.","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\/2020\/08\/20\/variables-in-terraform\/","og_locale":"en_US","og_type":"article","og_title":"Variables in Terraform | Input and Output Variables | K21Academy","og_description":"Reusability is one of the major benefits of Infrastructure as Code. This blog covers variables and how they make configuration more dynamic.","og_url":"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/","article_published_time":"2020-08-20T07:18:25+00:00","article_modified_time":"2020-08-20T07:21:40+00:00","og_image":[{"width":1125,"height":629,"url":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2020\/08\/Terraform-IaC_BlogImage.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\/2020\/08\/20\/variables-in-terraform\/","url":"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/","name":"Variables in Terraform | Input and Output Variables | K21Academy","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#primaryimage"},"image":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#primaryimage"},"thumbnailUrl":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2020\/08\/Terraform-IaC_BlogImage.png","datePublished":"2020-08-20T07:18:25+00:00","dateModified":"2020-08-20T07:21:40+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"description":"Reusability is one of the major benefits of Infrastructure as Code. This blog covers variables and how they make configuration more dynamic.","breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#primaryimage","url":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2020\/08\/Terraform-IaC_BlogImage.png","contentUrl":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2020\/08\/Terraform-IaC_BlogImage.png","width":1125,"height":629,"caption":"Input Variables"},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2020\/08\/20\/variables-in-terraform\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Variables In Terraform"}]},{"@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\/15036","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=15036"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/15036\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media\/15037"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=15036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=15036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=15036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}