Terraform

Answered

I am new to IntelliJ Idea and have been using VS Code to write Terraform.  I installed the HCL Terraform plug-in and it seems to be working.  However, now I am getting a message when attempting to run Terraform Plan saying that "plugin reinitialization required.  Please run terraform init"  When I click on the Terminal icon at the bottom of the IDE and run Terraform init, I get another message stating "

Terraform initialized in an empty directory!

The directory has no Terraform configuration files. You may begin working
with Terraform immediately by creating Terraform configuration files.

I'm not sure how to create Terraform configuration files.  I am assuming that the configuration files are created in the IntelliJ IDEA IDE?  Any help would be appreciated!

0
3 comments

Hello,

Plugin provides functionality to run Terraform from IDE:
1. Explicitly add Terraform run configurations
2. Green 'run' next to resources
3. File context menu -> Run...

Of course Terraform should be installed on you machine and path to Terraform binary configured in Settings -> Tools -> Terraform

1

Thank you for your help!

0

You are welcome!

0

Please sign in to leave a comment.