Terraform Installation
Installing Terraform is very simple. It is actually just one executable or binary file. You can download it from the Terraform website. Then you simply need to place it in a subdirectory that is in your path on your machine. Once you do that you can run the terraform cli commands as needed.
Linux installation
For Linux typically the best place to put the file is under the /usr/local/bin directory. This directory is typically in the path, and is generally used as the place for a lot of programs to be installed. If you want to make sure that it is in the path just type echo $PATH at the command prompt and look for the directory in the list. Obviously you could put the file somewhere else. You will just need to update the path on your Linux server accordingly. The best place to make this adjustment will depend on your distro, and the shell you are running. If you are running BASH then your most likely places are the .profile, .bash_profile, or .bashrc files.
Some people prefer to use packages to install programs. You can get information for either yum or apt packages from the terraform.io/download website too.
The Debian/Ubuntu style APT package is specifically designed for Debian and Ubuntu. They have a note that when adding the repository on other APT-based Linux distributions the system will give an error.
The RedHat/YUM style package will work on RHEL 7 and 8, CentOS 7 and 8, as well as AmazonLinux 2.
Windows installation
You have two options here again. You can either put the file into a subdirectory in your path, or add the desired subdirectory to your path. The easiest way to check what is in your path is to use Powershell. Just open up a Powershell session and type in $Env:Path and press enter. You will now see your path.
Linux installation
For Linux typically the best place to put the file is under the /usr/local/bin directory. This directory is typically in the path, and is generally used as the place for a lot of programs to be installed. If you want to make sure that it is in the path just type echo $PATH at the command prompt and look for the directory in the list. Obviously you could put the file somewhere else. You will just need to update the path on your Linux server accordingly. The best place to make this adjustment will depend on your distro, and the shell you are running. If you are running BASH then your most likely places are the .profile, .bash_profile, or .bashrc files.
Some people prefer to use packages to install programs. You can get information for either yum or apt packages from the terraform.io/download website too.
The Debian/Ubuntu style APT package is specifically designed for Debian and Ubuntu. They have a note that when adding the repository on other APT-based Linux distributions the system will give an error.
The RedHat/YUM style package will work on RHEL 7 and 8, CentOS 7 and 8, as well as AmazonLinux 2.
Windows installation
You have two options here again. You can either put the file into a subdirectory in your path, or add the desired subdirectory to your path. The easiest way to check what is in your path is to use Powershell. Just open up a Powershell session and type in $Env:Path and press enter. You will now see your path.
Home |
About |
Services |
Copyright © 2016