VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

Support "moved" blocks introduced in Terraform v1.1.0 #366

Open vladholubiev opened 2 years ago

vladholubiev commented 2 years ago

Prerequisites

Installation details

Terraform Configuration Files

moved {
  from = aws_s3_bucket.main
  to = module.s3_bucket.aws_s3_bucket.main
}

Exception

No autocomplete. Highlights as errors.

CleanShot 2021-12-15 at 20 56 03@2x

Expected Behavior

Syntax is highlighted. Code completions are suggested.

Actual Behavior

Described above

Steps to Reproduce

Described above

See https://learn.hashicorp.com/tutorials/terraform/move-config#move-your-resources-with-the-moved-configuration-block

jfirebaugh commented 2 years ago

It would be extra cool if the "Rename" refactoring automatically generated the appropriate moved block!

Razorr1996 commented 2 years ago

Any updates on this issue?