![]() ![]() if you do, you're good to go! Usage: terraform Now confirm that Terraform will run from Bash by typing in terraform and hitting enter. $ mv /Users/user1/Downloads/terraform /usr/ local/bin/terraform In the video, mine stated "/Users/stefana/". NOTE: make sure you sub out "/Users/user1" with what returned from above. Then type the move command to move the terraform file from the Downloads directory to the /usr/bin/ directory. ![]() Now type pwd to remember where you are in Bash :) $ pwd Use O to insert a line and type in the export line below: export PATH=/usr/ local/bin: $PATH If you don't have it there, here's how to quickly edit the file using vi. In the video, I already had edited that file so the export line was there. Now change directories back to your home directory and check the contents of the existing /bash_profile file using the cat command. $ cd Downloadsĭownloads$ unzip terraform_ 0. For me it was in Downloads on my local user (stefana). but stuff I forget all the time since I don't sit in Bash each day.īasically, change directories to where your Terraform zip file is located. For Mac, you want to edit ~/.bash_profile and not ~/.profile.įor those of you dabbling in this area and hitting the same issue, here's a quick video to show you how to set your PATH and move Terraform to the correct directory so that it runs via Terminal.īasic stuff my friends. So when I do, I'm usually searching for answers to very basic questions like what are the basic " vi commands" or " how to set a PATH in bash".Īfter spending 2 hours on Friday night trying to figure out how to set my PATH correctly and follow the supposed "5 minute" instructions from HashiCorp, I realized I was editing the wrong file. I spend a ton of time on the business side of tech and can sometimes go months before touching Terminal or Bash commands. ![]() We often train customers on how to write Infrastructure as Code and the tool seems to do it well for most scenarios.Īs I build out new service offerings in this area, I thought I'd learn a bit about this tool so I can speak intelligently about it. My new team is all about Terraform from HashiCorp. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |