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_remote_state config incorrectly flagged with errors #1580

Closed
1 task
gdmoore85 opened this issue Oct 6, 2023 · 5 comments
Closed
1 task

terraform_remote_state config incorrectly flagged with errors #1580

gdmoore85 opened this issue Oct 6, 2023 · 5 comments
Assignees
Labels
bug Something isn't working diagnostics

Comments

@gdmoore85
Copy link

Extension Version

v2.28.1

VS Code Version

Version: 1.82.2 (Universal)
Commit: abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
Date: 2023-09-14T05:59:47.790Z
Electron: 25.8.1
ElectronBuildId: 23779380
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.6.0

Operating System

macOS Ventura 13.6

Terraform Version

Terraform v1.5.7 on darwin_arm64

Steps to Reproduce

Creating remote datasource generates unexpected attribute errors. This does not generate an error in v2.27.2.
Screenshot 2023-10-06 at 3 05 39 PM

Expected Behavior

Would expect extension to not generate error.

Actual Behavior

Unexpected attribute error is generated

Terraform Configuration

No response

Project Structure

No response

Gist

No response

Anything Else?

No response

Workarounds

None as this does not impact the terraform run

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@gdmoore85 gdmoore85 added the bug Something isn't working label Oct 6, 2023
@ghs

This comment was marked as off-topic.

@radeksimko radeksimko changed the title terraform_remote_state incorrectly flagged with errors terraform_remote_state config incorrectly flagged with errors Oct 9, 2023
@radeksimko radeksimko self-assigned this Oct 9, 2023
@radeksimko
Copy link
Member

Thank you for the report @gdmoore85

I was able to reproduce this with Terraform CLI uninstalled.

Screenshot 2023-10-09 at 09 59 30
data "terraform_remote_state" "name" {
  backend = "remote"
  config = {
    organization = "value"
  }
}

I can confirm this is indeed a bug and will investigate it further and hopefully find a fix.

While we investigate, you can either install Terraform CLI (e.g. via brew install hashicorp/tap/terraform) or temporarily disable the validation via "terraform.validation.enableEnhancedValidation": false in settings.

@radeksimko
Copy link
Member

I have two PRs resolving the bug, which are both currently pending review:

We will post updates when they reach a release.

@dbanck
Copy link
Member

dbanck commented Oct 13, 2023

A new version 2.28.2 was just released. This fixes the reported bug. The update should appear automatically in VS Code.

Thank you for the report @gdmoore85


In case you experience any different validation related bug, please do let us know through a new issue.

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working diagnostics
Projects
None yet
Development

No branches or pull requests

4 participants