{"id":1906,"date":"2024-01-28T13:05:22","date_gmt":"2024-01-28T13:05:22","guid":{"rendered":"https:\/\/devdynamic.io\/blog\/?p=1906"},"modified":"2024-01-28T13:05:24","modified_gmt":"2024-01-28T13:05:24","slug":"how-to-install-terraform-on-windows-linux-or-macos","status":"publish","type":"post","link":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/","title":{"rendered":"How to install Terraform on Windows\/Linux or macOS?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"361\" src=\"https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb-1024x361.png\" alt=\"\" class=\"wp-image-1907\" srcset=\"https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb-1024x361.png 1024w, https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb-300x106.png 300w, https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb-768x271.png 768w, https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb-1536x542.png 1536w, https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb-2048x723.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you work in DevOps you need to use Terraform, because it is one of the leaders in Infrastructure as Code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Terraform?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">HashiCorp Terraform is an infrastructure as a code tool that lets you define both cloud and on-prem resources in human-readable configuration files that you can version, reuse, and share. You can then use a consistent workflow to provision and manage all of your infrastructure throughout its lifecycle. Terraform can manage low-level components like computing, storage, and networking resources, as well as high-level components like DNS entries and SaaS features.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to install Terraform on Windows?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/chocolatey.org\/\">Chocolatey<\/a>\u00a0is a free and open-source package management system for Windows. Install the\u00a0<a href=\"https:\/\/chocolatey.org\/packages\/terraform\">Terraform package<\/a>\u00a0from the command line.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>choco install terraform<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">How to install Terraform on Linux?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ubuntu<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update &amp;&amp; sudo apt-get install -y gnupg software-properties-common\nwget -O- https:\/\/apt.releases.hashicorp.com\/gpg | \\\ngpg --dearmor | \\\nsudo tee \/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg\ngpg --no-default-keyring \\\n--keyring \/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg \\\n--fingerprint\necho \"deb &#91;signed-by=\/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg] \\\nhttps:\/\/apt.releases.hashicorp.com $(lsb_release -cs) main\" | \\\nsudo tee \/etc\/apt\/sources.list.d\/hashicorp.list\nsudo apt update\nsudo apt-get install terraform<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">How to Install Terraform on macOS?<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>brew tap hashicorp\/tap\nbrew install hashicorp\/tap\/terraform\nbrew update<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Verify Terraform installing<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>terraform -help<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you work in DevOps you need to use Terraform, because it is one of the leaders in Infrastructure as Code. What is Terraform? HashiCorp Terraform is an infrastructure as a code tool that lets you define both cloud and on-prem resources in human-readable configuration files that you can version, reuse, and share. You can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1907,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202],"tags":[],"class_list":["post-1906","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hashicorp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to install Terraform on Windows\/Linux or macOS? - DevDynamic - DevOps and SRE services<\/title>\n<meta name=\"description\" content=\"How to install Terraform on Windows, Ubuntu Linux or macOS?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Terraform on Windows\/Linux or macOS? - DevDynamic - DevOps and SRE services\" \/>\n<meta property=\"og:description\" content=\"How to install Terraform on Windows, Ubuntu Linux or macOS?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/\" \/>\n<meta property=\"og:site_name\" content=\"DevDynamic - DevOps and SRE services\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/devdynamic\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-28T13:05:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-28T13:05:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2992\" \/>\n\t<meta property=\"og:image:height\" content=\"1056\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/#\\\/schema\\\/person\\\/89e32fbe94bbb1aa559fcbb132675df1\"},\"headline\":\"How to install Terraform on Windows\\\/Linux or macOS?\",\"datePublished\":\"2024-01-28T13:05:22+00:00\",\"dateModified\":\"2024-01-28T13:05:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/\"},\"wordCount\":143,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/terraform_primarylogo_color_rgb.png\",\"articleSection\":[\"HashiCorp\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/\",\"url\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/\",\"name\":\"How to install Terraform on Windows\\\/Linux or macOS? - DevDynamic - DevOps and SRE services\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/terraform_primarylogo_color_rgb.png\",\"datePublished\":\"2024-01-28T13:05:22+00:00\",\"dateModified\":\"2024-01-28T13:05:24+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/#\\\/schema\\\/person\\\/89e32fbe94bbb1aa559fcbb132675df1\"},\"description\":\"How to install Terraform on Windows, Ubuntu Linux or macOS?\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/#primaryimage\",\"url\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/terraform_primarylogo_color_rgb.png\",\"contentUrl\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/terraform_primarylogo_color_rgb.png\",\"width\":2992,\"height\":1056},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/2024\\\/01\\\/how-to-install-terraform-on-windows-linux-or-macos\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Terraform on Windows\\\/Linux or macOS?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/\",\"name\":\"DevDynamic - DevOps and SRE services\",\"description\":\"blog, devops\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/#\\\/schema\\\/person\\\/89e32fbe94bbb1aa559fcbb132675df1\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09a0841c4204437d708495f0224966f0ec14c1e3ff967223906d0442710f22ef?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09a0841c4204437d708495f0224966f0ec14c1e3ff967223906d0442710f22ef?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09a0841c4204437d708495f0224966f0ec14c1e3ff967223906d0442710f22ef?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/devdynamic.io\\\/blog\"],\"url\":\"https:\\\/\\\/devdynamic.io\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Terraform on Windows\/Linux or macOS? - DevDynamic - DevOps and SRE services","description":"How to install Terraform on Windows, Ubuntu Linux or macOS?","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:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/","og_locale":"en_US","og_type":"article","og_title":"How to install Terraform on Windows\/Linux or macOS? - DevDynamic - DevOps and SRE services","og_description":"How to install Terraform on Windows, Ubuntu Linux or macOS?","og_url":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/","og_site_name":"DevDynamic - DevOps and SRE services","article_publisher":"https:\/\/www.facebook.com\/devdynamic","article_published_time":"2024-01-28T13:05:22+00:00","article_modified_time":"2024-01-28T13:05:24+00:00","og_image":[{"width":2992,"height":1056,"url":"https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/#article","isPartOf":{"@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/"},"author":{"name":"admin","@id":"https:\/\/devdynamic.io\/blog\/#\/schema\/person\/89e32fbe94bbb1aa559fcbb132675df1"},"headline":"How to install Terraform on Windows\/Linux or macOS?","datePublished":"2024-01-28T13:05:22+00:00","dateModified":"2024-01-28T13:05:24+00:00","mainEntityOfPage":{"@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/"},"wordCount":143,"commentCount":0,"image":{"@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/#primaryimage"},"thumbnailUrl":"https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb.png","articleSection":["HashiCorp"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/","url":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/","name":"How to install Terraform on Windows\/Linux or macOS? - DevDynamic - DevOps and SRE services","isPartOf":{"@id":"https:\/\/devdynamic.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/#primaryimage"},"image":{"@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/#primaryimage"},"thumbnailUrl":"https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb.png","datePublished":"2024-01-28T13:05:22+00:00","dateModified":"2024-01-28T13:05:24+00:00","author":{"@id":"https:\/\/devdynamic.io\/blog\/#\/schema\/person\/89e32fbe94bbb1aa559fcbb132675df1"},"description":"How to install Terraform on Windows, Ubuntu Linux or macOS?","breadcrumb":{"@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/#primaryimage","url":"https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb.png","contentUrl":"https:\/\/devdynamic.io\/blog\/wp-content\/uploads\/2024\/01\/terraform_primarylogo_color_rgb.png","width":2992,"height":1056},{"@type":"BreadcrumbList","@id":"https:\/\/devdynamic.io\/blog\/2024\/01\/how-to-install-terraform-on-windows-linux-or-macos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devdynamic.io\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install Terraform on Windows\/Linux or macOS?"}]},{"@type":"WebSite","@id":"https:\/\/devdynamic.io\/blog\/#website","url":"https:\/\/devdynamic.io\/blog\/","name":"DevDynamic - DevOps and SRE services","description":"blog, devops","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devdynamic.io\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/devdynamic.io\/blog\/#\/schema\/person\/89e32fbe94bbb1aa559fcbb132675df1","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09a0841c4204437d708495f0224966f0ec14c1e3ff967223906d0442710f22ef?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09a0841c4204437d708495f0224966f0ec14c1e3ff967223906d0442710f22ef?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09a0841c4204437d708495f0224966f0ec14c1e3ff967223906d0442710f22ef?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/devdynamic.io\/blog"],"url":"https:\/\/devdynamic.io\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/posts\/1906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/comments?post=1906"}],"version-history":[{"count":1,"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/posts\/1906\/revisions"}],"predecessor-version":[{"id":1908,"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/posts\/1906\/revisions\/1908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/media\/1907"}],"wp:attachment":[{"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/media?parent=1906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/categories?post=1906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devdynamic.io\/blog\/wp-json\/wp\/v2\/tags?post=1906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}