Terraform is used for provisioning infrastructure on Cloud. You don't need to
create manually any resource in AWS. Please find steps for installing Terraform on Apple machine or laptop.
cd /opt/terraform
Download Terraform from Hasicorp website
Please go to https://www.terraform.io/downloads.html
Download Terraform installable zip file for MacOS
sudo curl -O https://releases.hashicorp.com/terraform/1.3.9/terraform_1.3.9_darwin_amd64.zip
Now unzip the above file by executing below command:
sudo unzip terraform_1.3.9_darwin_amd64.zip after you unzip, you should see terraform file as shown above.
Add terraform to PATH
Execute below command to edit bash profile. Go to home directory.
cd ~
sudo vi ~/.bash_profile
Go all the way to end of the file. Add below lines as shown in screenshot below:
PATH="/opt/terraform:${PATH}"
export PATH
Execute the file
source ~/.bash_profile
Now make sure terraform is available from anywhere to execute.
terraform --version
Terraform v1.3.9
That's it! You have successfully installed Terraform on Mac OS. You can also watch the steps in my YouTube channel as well.
Create a working directory
sudo mkdir -p /opt/terraform
cd /opt/terraform
Download Terraform from Hasicorp website
Please go to https://www.terraform.io/downloads.html
Download Terraform installable zip file for MacOS
sudo curl -O https://releases.hashicorp.com/terraform/1.3.9/terraform_1.3.9_darwin_amd64.zip
Now unzip the above file by executing below command:
sudo unzip terraform_1.3.9_darwin_amd64.zip after you unzip, you should see terraform file as shown above.
Add terraform to PATH
Execute below command to edit bash profile. Go to home directory.
cd ~
sudo vi ~/.bash_profile
Go all the way to end of the file. Add below lines as shown in screenshot below:
PATH="/opt/terraform:${PATH}"
export PATH
Execute the file
source ~/.bash_profile
Now make sure terraform is available from anywhere to execute.
terraform --version
Terraform v1.3.9
That's it! You have successfully installed Terraform on Mac OS. You can also watch the steps in my YouTube channel as well.
very helpful thanks :)
ReplyDeleteThank you so much.
ReplyDeletePls add some instructions to come out from VIM editor
ReplyDeletepress esc key and press :wq to save the current existing file
ReplyDeleteA Mac's working framework, Mac operating system X v10.5 Panther, is quicker, simpler to utilize, and more solid than Windows. A Mac's working framework, Mac operating system X v10.5 Panther, is quicker, simpler to utilize, and more solid than Windows. https://macosxtutorial.com
ReplyDelete