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

Terraform init: Unsupported block type; Blocks of type "moved" are not expected here #1615

Open
ShrishmaL7 opened this issue Sep 20, 2023 · 2 comments

Comments

@ShrishmaL7
Copy link

  • terrascan version: v0.14.4

Description

I am facing similar issue as like described here:
#1182

Error: Unsupported block type
on .terraform/modules/website_with_cname.logs/moved.tf line 7:
7: moved {
Blocks of type "moved" are not expected here.

@lisenet
Copy link

lisenet commented Dec 6, 2023

Similar issue here using Terrascan v1.18.5 on Ubuntu 20.04 LTS.

$ terraform version
Terraform v1.6.5
on linux_amd64

$ terrascan version
version: v1.18.5

$ terrascan scan -i terraform -f resources-codepipeline/s3.tf 
2023-12-06T10:47:13.043Z	error	cli/run.go:141	scan run failed{error 26 0  failed to load iac file 'resources-codepipeline/s3.tf'. error:
resources-codepipeline/s3.tf:49,1-6: Unsupported block type; Blocks of type "moved" are not expected here.
}

Example Terraform code causing the issue:

moved {
  from = aws_s3_bucket_acl.codepipeline_bucket_acl
  to   = aws_s3_bucket_acl.codepipeline_bucket
}

This is blocking me from using Terrascan as there is no way to skip the Terraform moved block check.

@mjnowen
Copy link

mjnowen commented Dec 29, 2023

+1 this issue is a blocker. Duplicate: #1262

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

3 participants