terraform-plugin-docs icon indicating copy to clipboard operation
terraform-plugin-docs copied to clipboard

configuration is invalid

Open adejoux opened this issue 2 years ago • 1 comments

Hello,

When running tfplugindocs inside my terraform plugin I have this error:

tfplugindocs.exe generate 
rendering website for provider "terraform_ccc_provider"
exporting schema from Terraform
compiling provider "terraform_ccc_provider"
using Terraform CLI binary from PATH if available, otherwise downloading latest Terraform CLI binary
running terraform init
Error executing command: unable to generate website: configuration is invalid

I cannot get any information on what is invalid and what this tool is expecting. Would be nice to have more informations on this kind of errors.

Can you help me?

Regards

adejoux avatar May 12 '22 08:05 adejoux

Hello @adejoux, if https://github.com/hashicorp/terraform-plugin-docs/pull/174 is merged, it should help improve the error output from terraform itself.

I believe the issue you are likely running into is the provider name, which I don't believe can have an underscore. When I tried locally with an underscore, terraform threw an error.

lrstanley avatar Aug 12 '22 04:08 lrstanley