Open command prompt and run the following commands Setup some basic required user config for git.For VSC, ensure the options ‘Use Git from Windows Command Prompt’ and ‘Enable Git Credential Manager’ are selected so the VSC can find git.exe and secure credential storage. There are lots of options for the install of Git but the defaults are fine. Git integration is included out of the box with VSC but we do need to install Git for Windows first to install the git.exe executable VSC uses. That’s it, you now have a development environment which also includes syntax highlighting and automatic formatting in Terraform files.Click the green ‘Install’ button next to the extension from Mikael Olenfalk.Click the extension button from the left hand menu.Installer will complete and VSC can now be opened from the Start Menu.Run the installer, tick to add an option to open folders with VSC.Download Visual Studio Code (VSC) from.Installing Visual Studio Code with the Terraform Extension You should see the terraform help appear. Open up command prompt and type terraform.Click New and enter the path to where you unzipped terraform.exe.Under System variables select Path and click on Edit.Click the ‘Environment Variables…’ button to the bottom right of the settings box that appears.To that, hit Start, type environment and select the result shown as ‘Edit the system environment variables. Add the location where you unzipped Terraform to your PATH environment variable.For me thats c:\users\chris\tools\terraform Unzip it anywhere, but as we are going to add this to the PATH environment variable, make it somewhere fairly permenant.Installing Terraform is simple – its a self contained binary which needs adding to your PATH variable. The following is how to get all of this setup on Windows. These are obvious things for any developer but as an infrastructure guy I’ve grown into using them as I’ve used Terraform. When working with Terraform there are a few simple things that can make a big difference, using a good development environment and using a source code repository. I’m becoming a huge fan of Terraform, having started using it at work to manage our AWS environment and using it more recently with Virtual Design Master.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |