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

test to validate the terraform format_version is out of date #980

Open
adegoodyer opened this issue Aug 11, 2021 · 2 comments
Open

test to validate the terraform format_version is out of date #980

adegoodyer opened this issue Aug 11, 2021 · 2 comments

Comments

@adegoodyer
Copy link

  • terrascan version: 1.9.0
  • terraform version: 1.0.1
  • format_version: 0.2

Description

The test to validate the terraform format_version is out of date.

It expects 0.1 but get 0.2 when performed using terraform version 1.0.1.

Pipeline now fails as a result halting CI/CD.

What I Did

Basic scan of a terraform plan

terrascan scan -i tfplan -f tfplan.json

Error

2021-08-11T12:51:32.162Z	error	cli/run.go:117	scan run failed{error 26 0  invalid terraform json file; error: 'terraform format version shoule be '0.1''}
@jshrack-ssi
Copy link

This should be a priority as it renders this useful tool useless on more recent (and actually quite old) Terraform releases.

@bekahmark12
Copy link

Any update on this issue? I am using the latest version of terrascan and am trying to scan a terraform file with format version 1.1. I am running into this same issue with the error stating it must be 0.1 or 0.2. This is preventing me completely from using this product.

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