-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
No provider config schema available message for builtin provider should not be labelled ERROR in output #34207
Comments
Hi @thewileyriley, Thanks for filing the issue! The log message is correct in most cases, except it does produce an erroneous message for the |
@jbardin Is it possible to change the label so we can keep the log output clean? |
The label is probably not going to change, since it would be an error in most cases, but we can probably avoid this situation with the terraform provider in a future release. I'm not sure what the reasoning for the log output in that task is, any errors (or even warnings) which are actionable by a user will be output in the normal diagnostics. The logs are targeted at developers, however if a user is having a problem the |
Same issue here but in my case using a "terraform_data" resource. Code:
Error:
|
Terraform noob here. Am I right in reading this issue and thinking that there is nothing actionable for me when I see this output? I am hearing that this is targeted at "the developers" who in this case would be Terraform itself? And the solution is to "make sure the internal provider has an empty schema" which is something that would happen within Terraform and not something I would do as a user? Thanks for any clarification. |
@hitsthings Correct. The message is meant for developers of providers for Terraform. So for example the team that develops the AWS provider or Azure provider (etc) must define a schema for their providers. If you were developing a new provider for the In the case of the |
Facing the same issue here. |
I forgot to add the customary: Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again! |
Terraform Version
Terraform Configuration Files
Debug Output
2023-11-08T14:34:04.205+0200 [DEBUG] ProviderTransformer: "data.terraform_remote_state.this" (*terraform.NodeValidatableResource) needs provider["terraform.io/builtin/terraform"]
2023-11-08T14:34:04.205+0200 [ERROR] AttachSchemaTransformer: No provider config schema available for provider["terraform.io/builtin/terraform"]
2023-11-08T14:34:04.210+0200 [DEBUG] ReferenceTransformer: "data.terraform_remote_state.this" references: []
Expected Behavior
[ERROR] AttachSchemaTransformer: No provider config schema available for provider["terraform.io/builtin/terraform"]
The above message should:
Actual Behavior
Steps to Reproduce
export TF_LOG=DEBUG
terraform init
terraform plan
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: