This is just to separate the credentials from actual code. Create one more file to accommodate the variables (file name- “terraform.tfvars”).
(If you do not have resource pool, remove the code block) Edit the following fields according to your requirement. Download the attached Terraform JSON file and save it in the same directory with “*.tf” file extension. Create a new directory and copy terraform.exe into that. I have downloaded windows 64-bit Terraform executable.Ģ. Download Terraform executable from Terraform.io. It is an open source tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.ġ. Terraform is developed widely by the open source community and HashiCorp. Terraform uses HCL (Hasicorp Language) which requires very few lines to create VM. You could download an opensource/free version of Terraform on your laptop or desktop and trigger the VM builds. Terraform doesn’t require any dedicated host. Terraform is an excellent tool to build VM’s on VMware vSphere environment. This article will provide step by step procedure for building “CentOS” /”Redhat Linux” Virtual Machine using Terraform tool on the VMware vSphere environment.