简体   繁体   中英

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.

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 .

在此处输入图像描述

You can use this link to download the exectubale file.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM