Setting up IntelliJ Community Edition To setup IntelliJ Community Edition for Terraform:
Navigate to the JetBrains IntelliJ download page
Click on the Community Edition download button
Install it by running the download
Run IntelliJ and click on the IntelliJ IDEA Menu, select Preferences
On the Preferences menu go to Plugins
In the Plugins search box type HCL, there should be a plugin for Hashicorp Markup Language Support, click Install then click Apply
IntelliJ will now be configured to understand Terraform files