Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for Terraform import blocks #1590

Open
HorizonNet opened this issue Jul 24, 2023 · 4 comments
Open

Missing support for Terraform import blocks #1590

HorizonNet opened this issue Jul 24, 2023 · 4 comments

Comments

@HorizonNet
Copy link
Contributor

  • terrascan version: 1.17.0
  • Operating System: tenable/terrascan-action@v1.5.0

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.

@stefenAMZ
Copy link

Experience same issue

@cgreen-q-wow
Copy link

+1

@cwsaunders
Copy link

Experiencing the same issue

@jplanckeel-ep
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants