Terraform Init命令不在Visual Studio代码中工作
Terraform:“ Terraform”一词不被认为是CMDLET的名称,函数,脚本文件或 可操作的程序。检查名称的拼写,或者如果包括路径,请验证该路径是否正确
然后重试。 在线:1个字符:1
- Terraform Init
+ categoryInfo:objectNotFound :( Terraform:string)[],CommandnotFoundException +完全QualifiedErrid:CommandnotFoundException
terraform : The term 'terraform' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
- terraform init
+ CategoryInfo : ObjectNotFound: (terraform:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可以引用此 link 。
,也可以尝试使用Windows的Linux WSL。
You can refer this link.
Or you can try using Linux WSL for windows.
如果您在Windows系统中下载了它,请尝试使用“视觉代码”管理员登录,并且应该有效。
If you have downloaded it in the windows system then try to login with the administrator on visual code and it should work.
如果您安装了Terraform。确保将路径添加到环境变量中。输入搜索>> env>环境变量>>系统变量>>选择路径并编辑。将路径添加到您已下载的Terraform应用程序中。重新启动系统。就是这样。再试一次
If you have installed the terraform. Make sure you add the path to the environment variable. Type in search >> Env > Environment Variables >> System Variables >> Select Path and edit. Add the path to your Terraform application which you have downloaded. Reboot the system. That's it. try again
下载最新的Terraform软件并将其安装在计算机上。对于Windows,请在C:\ Windows \ System32中从此页面下载Terraform.exe,这应该足够了。
Download the latest terraform software and install it on your machine. For windows, keep terraform.exe downloaded from this page in C:\Windows\System32 and that should be enough.
安装Terraform:
从官方网站:Terraform下载下载适当的Terraform版本。
通过按照操作系统的安装说明来安装Terraform。
将Terraform添加到路径上:
安装Terraform后,您需要确保包含Terraform可执行文件的目录在系统的路径中。这使您可以从终端中的任何位置运行Terraform命令。
Install Terraform:
Download the appropriate version of Terraform for your operating system from the official website: Terraform Downloads.
Install Terraform by following the installation instructions for your operating system.
Add Terraform to the PATH:
After installing Terraform, you need to ensure that the directory containing the terraform executable is in your system's PATH. This allows you to run the terraform command from any location in the terminal.