Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

terrascan in super-linter failing on moved blocks #1302

@jamiet-msm

Description

@jamiet-msm
  • terrascan version: v1.15.1
  • Operating System: linux

Description

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.foo
  to = 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions