Search code examples
visual-studio-codeterraformterraform-provider-azure

How do I Change the Terraform Version in VSCode?


I have installed the latest Terraform version, however in VSCode, in my directory when I type terraform --version I get this.

Terraform v0.11.7
+ provider.azurerm v2.3.0

Your version of Terraform is out of date! The latest version
is 1.1.9. You can update by downloading from www.terraform.io/downloads.html 

I have tried everything, even changed the path to the executable file in the settings, but nothing helped.


Solution

  • Thank You Ervin Szilagyi for your suggestion, Tested in my enviorment working fine for me.

    You need to update the version of terraform exectutable file in the exectable path of terrform. To get the current executable path for Terraform with this command Get-Command terraform.

    enter image description here

    You can use this link to download the exectubale file.

    enter image description here