Vscode-terraform: terraform statement without a required_version attribute

Created on 25 Sep 2018  Â·  8Comments  Â·  Source: hashicorp/vscode-terraform

Hi,

I opened my terraform repo today with vscode and got 360 problems about a missing required_version attribute.

How do I disable this check?

Thanks :-)

Most helpful comment

Sorry you can't disable this check. but I will remove it and release 1.3.6 as soon as possible.

Also you have 360 terraform {} statements in your workspace? Can I look at the templates? I would like to see how people are organizing the templates/workspaces.

All 8 comments

Sorry you can't disable this check. but I will remove it and release 1.3.6 as soon as possible.

Also you have 360 terraform {} statements in your workspace? Can I look at the templates? I would like to see how people are organizing the templates/workspaces.

Well it's because it also includes my /.terragrunt-cache /* subdirectories (which should not happen). They are in my .gitignore but apprently still indexed by the plugin.

I use a multi-account, multi-region structure, like this: account/region/family/component

What do you mean exactly with template/workspaces?

You can use terraform.indexing.exclude to ignore paths from indexing. It might make sense to also look at .gitignore but I do not do that right now.

What do you mean exactly with template/workspaces?

I would like to see how people are organizing their template files, good to know when designing features :)

Thanks for the indexing tip, now I only have 16 notifications

+1 for me as well, I have 61 problems related to statement without a required_version attribute do you have an ETA of when you will be updating?

will hopefully update today

On Mon, Oct 1, 2018 at 5:34 AM Michael Saraceno notifications@github.com
wrote:

+1 for me as well, I have 61 problems related to "statement without a
required_version attribute" do you have an ETA of when you will be updating?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mauve/vscode-terraform/issues/132#issuecomment-425781034,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAwkmNdyMHodzxc_Xh41tTMW026-Xk8eks5ugY09gaJpZM4W4c6R
.

Hi

This error comes from every single state.tf file that we use in our projects.

terraform { backend "s3" { key = "environmen/service/terraform.tfstate" } }

Fixed in 1.3.6

Was this page helpful?
0 / 5 - 0 ratings

Related issues

renanaraujo picture renanaraujo  Â·  5Comments

tillig picture tillig  Â·  4Comments

brodster2 picture brodster2  Â·  5Comments

jacobisaliveandwell picture jacobisaliveandwell  Â·  3Comments

vfab picture vfab  Â·  4Comments