terrascan
terrascan copied to clipboard
Missing support for Terraform import blocks
- terrascan version: 1.17.0
- Operating System: tenable/[email protected]
Description
Terraform 1.5 introduced the import block. Using this kind of block leads to the following error in Terrascan
/github/workspace/imports.tf:1,1-7: Unsupported block type; Blocks of type "import" are not expected here.
Expectation would be that Terrascan does not throw an error and handles the import block as part of Terraform.
What I Did
Add an import block like the following
import {
to = aws_instance.example
id = "i-abcd1234"
}
Run Terrascan or the terrascan-action. It leads to the error mentioned above.
Experience same issue
+1
Experiencing the same issue
+1
+1