{"id":4061,"date":"2020-09-04T04:13:27","date_gmt":"2020-09-04T04:13:27","guid":{"rendered":"http:\/\/jameseduard.com\/?p=4061"},"modified":"2020-09-04T04:13:27","modified_gmt":"2020-09-04T04:13:27","slug":"how-to-install-terraform-on-centos-8","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=4061","title":{"rendered":"How To Install Terraform on CentOS 8"},"content":{"rendered":"\n\n\n<p class=\"wp-block-paragraph\">In this article I will guide you on how to install terraform on CentOS 8 \/ RHEL 8<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>Terraform<\/strong><br>Use Infrastructure as Code to provision and manage any cloud, infrastructure, or service Terraform allows you build, change, and version infrastructure deployed on popular cloud environments and on premise .<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install Terraform on CentOS 8<\/strong><br>Please note that before get started ensure you have privileged to install and configured the system with a sudo user that will be used to install Terraform on CentOS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> Install wget,wget command to download the latest binary archive of <strong>Terraform.<\/strong><br><\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">sudo dnf -y install wget<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong>&nbsp;Install Terraform on CentOS 8 and download it via wget&nbsp;<a href=\"https:\/\/github.com\/hashicorp\/terraform\/releases\">download binary archive<\/a>&nbsp;file.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">TER_VER=`curl -s https:\/\/api.github.com\/repos\/hashicorp\/terraform\/releases\/latest | grep tag_name | cut -d: -f2 | tr -d \\\u201d\\,\\v | awk \u2018{$1=$1};1\u2019`<\/pre>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">wget https:\/\/releases.hashicorp.com\/terraform\/${TER_VER}\/terraform_${TER_VER}_linux_amd64.zip<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Extract the downloaded archive<br><\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">unzip terraform_${TER_VER}_linux_amd64.zip\nArchive: terraform_xxx_linux_amd64.zip\ninflating: terraform<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then move the binary file to directory in your PATH.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">sudo mv terraform \/usr\/local\/bin\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:<\/strong> Confirm Terraform Installation on CentOS 8<br>Check the version of Terraform to validate our installation:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">terraform -v\nTerraform v0.13.2<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can then refer to some of the guides we have on using Terraform.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article I will guide you on how to install terraform on CentOS 8 \/ RHEL 8 TerraformUse Infrastructure as Code to provision and manage any cloud, infrastructure, or service Terraform allows you build, change, and version infrastructure deployed on popular cloud environments and on premise . Install Terraform on CentOS 8Please note that<\/p>\n","protected":false},"author":1,"featured_media":4062,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-4061","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-application"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/4061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4061"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/4061\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}