简体   繁体   中英

configuring intellij with terraform plugin to connect to aws

I need to be able to run the terraform plugin to do standard terraform tasks such as terraform plan and terraform apply which would require aws connectivity. i have installed the terrafom plugin but have no idea how to configure it

Terraform Plugin released in JetBrains plugin community is used for HashiCorp Terraform / HCL language support for doing stuffs like:

  • Syntax highlighting.
  • Code formatter with the 'Reformat code'.
  • Report usage of deprecated properties.

And NOT as a substitute for executing terraform binary.

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

My solution: I've installed terraform using chocolatey

  1. Set the path in settings

在此处输入图像描述

from terraform.exe 在此处输入图像描述 to C:\ProgramData\chocolatey\bin\terraform.exe

在此处输入图像描述

Intellij will still display it as terraform.exe but it will now work.

The plugin now supports your requested commands (plan\\apply), make sure you update it.

Regarding Arcones question: the plugin is maintained by Vladislav Rassokhin, therefore we might experience latency in the plugin support for new Terraform features. You may open an issue here: https://github.com/VladRassokhin/intellij-hcl/issues

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