使用 Terraform 插件配置 Intellij 以连接到 AWS

问题描述 投票:0回答:3

我需要能够运行 Terraform 插件来执行标准任务,例如

terraform plan
terraform apply
,这需要 AWS 连接。我已经安装了 Terraform 插件,但不知道如何配置它。

amazon-web-services intellij-idea terraform
3个回答
1
投票

JetBrains 插件社区中发布的 Terraform 插件用于 HashiCorp Terraform / HCL 语言支持,以执行以下操作:

  • 语法突出显示。
  • 带有“重新格式化代码”的代码格式化程序。
  • 报告已弃用属性的使用情况。

并且NOT作为执行 terraform 二进制文件的替代品。

参考:https://plugins.jetbrains.com/plugin/7808-hashicorp-terraform--hcl-language-support


1
投票

我的解决方案: 我已经使用巧克力安装了 terraform

  1. 在设置中设置路径

enter image description here

来自

terraform.exe
enter image description here
C:\ProgramData\chocolatey\bin\terraform.exe

enter image description here

Intellij 仍会将其显示为

terraform.exe
,但现在可以工作了。


0
投票

该插件现在支持您请求的命令(计划应用),请确保更新它。

关于 Arcones 问题:该插件由 Vladislav Rassokhin 维护,因此我们可能会在插件对新 Terraform 功能的支持中遇到延迟。您可以在这里提出问题:https://github.com/VladRassokhin/intellij-hcl/issues

© www.soinside.com 2019 - 2024. All rights reserved.