'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



Solution 1:[1]

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

Solution 2:[2]

My solution: I've installed terraform using chocolatey

  1. Set the path in settings

enter image description here

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

enter image description here

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

Solution 3:[3]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Raj Bettaswamy
Solution 2 Koroslak
Solution 3 Julian