{"id":115,"date":"2023-07-31T15:13:17","date_gmt":"2023-07-31T15:13:17","guid":{"rendered":"http:\/\/192.168.0.142\/?p=115"},"modified":"2023-08-03T05:08:39","modified_gmt":"2023-08-03T05:08:39","slug":"installation-of-terraform-on-ubuntu-22-04","status":"publish","type":"post","link":"http:\/\/192.168.0.142\/installation-of-terraform-on-ubuntu-22-04\/","title":{"rendered":"Terraform installation on Ubuntu 22.04"},"content":{"rendered":"\n
Terraform is an open source \u201cInfrastructure as Code\u201d tool, created by HashiCorp.
Terraform is a declarative coding tool, enables developers to use a high-level configuration language called HCL (HashiCorp Configuration Language) to describe the desired \u201cend-state\u201d cloud or on-premises infrastructure for running an application. It then generates a plan for reaching that end-state and executes the plan to provision the infrastructure.<\/p>\n\n\n\n
Update package index files<\/strong><\/p>\n\n\n\n Add the GPG Key<\/strong><\/p>\n\n\n\n Add the Repository<\/strong><\/p>\n\n\n\n Install Terraform by running below command<\/strong><\/p>\n\n\n\n Check the installed version of Terraform by running below command<\/strong><\/p>\n\n\n\n For e.g.<\/strong><\/p>\n\n\n\n Terraform is an open source \u201cInfrastructure as Code\u201d tool, created by HashiCorp.Terraform is a declarative coding tool, enables developers to use a high-level configuration language called HCL (HashiCorp Configuration Language) to describe the desired \u201cend-state\u201d cloud or on-premises infrastructure for running an application. It then generates a plan for reaching that end-state and executes the … Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":263,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[9,12],"_links":{"self":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/115"}],"collection":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":7,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":348,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/115\/revisions\/348"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media\/263"}],"wp:attachment":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}sudo apt update<\/code><\/pre>\n\n\n\n
wget -O- https:\/\/apt.releases.hashicorp.com\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg<\/code><\/pre>\n\n\n\n
echo \"deb [signed-by=\/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg] https:\/\/apt.releases.hashicorp.com $(lsb_release -cs) main\" | sudo tee \/etc\/apt\/sources.list.d\/hashicorp.list<\/code><\/pre>\n\n\n\n
sudo apt update && sudo apt install terraform<\/code><\/pre>\n\n\n\n
terraform version<\/code><\/pre>\n\n\n\n
$ terraform version\nTerraform v1.5.4\non linux_amd64<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"