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

Proxy provider in module tagged as error #321

Closed
ZebraFlesh opened this issue May 22, 2020 · 5 comments
Closed

Proxy provider in module tagged as error #321

ZebraFlesh opened this issue May 22, 2020 · 5 comments

Comments

@ZebraFlesh
Copy link

ZebraFlesh commented May 22, 2020

Given a local module that contains a proxy provider definition such as:

provider "aws" {
  alias = "target-environment"
}

This provider is tagged as an error: The argument "region" is required, but no definition was found. Since this is what the docs tell you to do it seems like a bug in the vscode extension.

@apparentlymart
Copy link

I suspect this is related to -- or possibly entirely caused by -- hashicorp/terraform#21408.

@paultyng
Copy link
Contributor

paultyng commented Jun 5, 2020

This issue predates are most recent release (v2.0.0-rc.1) so its probably worth testing it again. Notably, validate is not something the extension will perform any longer, as that functionality is being delegated to the language server.

@radeksimko
Copy link
Member

Also this issue tracks the validation functionality on the language server side: hashicorp/terraform-ls#27

@radeksimko
Copy link
Member

I cannot reproduce this problem anymore which may be in part because the v2 extension does not perform validation in the same way. It only does a minimal validation of HCL. We plan to introduce some schema-based validation as part of #720

With that in mind Im going to close this issue.

@radeksimko radeksimko closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2022
@github-actions
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 Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants