[英]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 版本,但是在 VSCode 中,当我在我的目录中键入 terraform --version 时,我得到了这个。
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.谢谢Ervin Szilagyi的建议,在我的环境中测试对我来说工作正常。
You need to update the version of terraform exectutable file in the exectable path of terrform.需要更新terrform可执行路径下terraform可执行文件的版本。 To get the current executable path for Terraform with this command
Get-Command terraform
.要使用此命令
Get-Command terraform
Terraform 的当前可执行路径。
You can use this link to download the exectubale file.您可以使用此链接下载可执行文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.