Terraform

What is Terraform? Terraform is an Infrastructure provisioning tool. This supports multiple clouds and currently, I am dabbling with it on Amazon Cloud (AWS), Google Cloud (GCP), Azure and Alibaba Cloud (Alicloud)

So how do you set up Terraform? Pretty simple – just go to https://www.terraform.io/downloads.html and download the version you want to work with! It’s that simple!

I installed Terraform on my Ubuntu VM running on Virtualbox in my Mac Pro (gives me a secure test environment and a lab I can separate out from my main workspace) but then, you can just as easily install it on your Mac, Windows or Linux machine!

Installation is pretty simple for the Ubuntu – please check the documentation for your version or OS but I installed the Terraform 0.11.11. Steps I used

Get the file

wget https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip 

Unzip the file

unzip terraform_0.11.11_linux_amd64.zip

Install

#sudo install terraform /usr/local/bin/ 

done 🙂

Now check the install!

$ terraform Usage: terraform [-version] [-help] <command> [args] The available commands for execution are listed below. The most common, useful commands are shown first, followed by less common or more advanced commands. If you're just getting started with Terraform, stick with the common commands. For the other commands, please read the help and docs before usage. Common commands:     apply              Builds or changes infrastructure     console            Interactive console for Terraform interpolations     destroy            Destroy Terraform-managed infrastructure     env                Workspace management     fmt                Rewrites config files to canonical format     get                Download and install modules for the configuration     graph              Create a visual graph of Terraform resources     import             Import existing infrastructure into Terraform     init               Initialize a Terraform working directory     output             Read an output from a state file     plan               Generate and show an execution plan     providers          Prints a tree of the providers used in the configuration     push               Upload this Terraform module to Atlas to run     refresh            Update local state file against real resources     show               Inspect Terraform state or plan     taint              Manually mark a resource for recreation     untaint            Manually unmark a resource as tainted     validate           Validates the Terraform files     version            Prints the Terraform version     workspace          Workspace management All other commands:     debug              Debug output management (experimental)     force-unlock       Manually unlock the terraform state     state              Advanced state management

That’s It!

Simple, straightforward and installed!

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *