You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
Running terrascan on terraform code that contains moved blocks fails with error:
Unsupported block type; Blocks of type "moved" are not expected here.
Its important to note that this error is occurring when running the super-linter GitHub Action. I have raised an issue on the super-linter repo https://github.com/github/super-linter/issues/3044 however that was 8 days ago and I haven't had a response. I wanted to make the folks that work on terrascan aware of the issue. If someone here knows what the fix is then that would be a bonus.
The issue linked above describes a simple repro of the problem using only this code:
resource"null_resource""bar" {}
moved {
from=null_resource.footo=null_resource.bar
}
and also links to an actual repro that I performed in one of my own repositories.
What I Did
Please see the issue linked to above for full details.