Comments (11)
this isn't just you; i'm also hitting this. somewhere between 0.5.1 and 0.9.0 something is now causing this individual resource templates to fail. i'm still trying to put together a test case to bisect.
from terraform-plugin-docs.
looks like there is more nuance here than "doesn't work with 0.9.0" as https://github.com/OctopusDeployLabs/terraform-provider-octopusdeploy works with individual resource templates and is using 0.9.0. still digging...
from terraform-plugin-docs.
narrowing this down further; tfplugindocs
by itself works but tfplugindocs generate
does not.
from terraform-plugin-docs.
here are my findings so far.
to have individual templates rendered you need to:
- use
tfplugindocs
directly, nottfplugindocs generate
- have the template filename wthout the provider name prefixed (i.e.
access_application.md.tmpl
notcloudflare_access_application.md.tmpl
like when you want to copy the file verbatim.
will need to dig into why this is and doesn't meet the same criteria as the tfplugindocs generate
command as it also means you cannot pass in configuration flags with the default commands.
from terraform-plugin-docs.
from terraform-plugin-docs.
I wouldn't suspect it is intended. Now that I've found where it works, I can have a look into why this isn't working.
from terraform-plugin-docs.
found the cause of this and addressed in #148; blame past Jacob. feel free to pull that locally and give it a whirl.
from terraform-plugin-docs.
Hey Guys,
Seems something still a miss here. Related to naming, I believe 0.10.0 is unable to find some resource it created itself. This provider doesn't have any actual template defined.. so tfplugindocs creates all the templates, then complains it can't find them.. Any thoughts?
elXaptation:~/terraform-provider-plat$ ../tfplugindocs_0100
rendering website for provider "terraform-provider-plat" (as "terraform-provider-plat")
copying any existing content to tmp dir
exporting schema from Terraform
compiling provider "plat"
using Terraform CLI binary from PATH if available, otherwise downloading latest Terraform CLI binary
running terraform init
getting provider schema
rendering missing docs
generating missing resource content
generating template for "cloud_router_bgp_session"
generating template for "cloud_services_aws_create_backbone_dedicated_cr"
generating template for "cloud_services_aws_hosted_connection"
generating template for "cloud_services_aws_req_hosted_conn"
generating template for "interface"
generating template for "aws_cloud_router_connection"
generating template for "cloud_router"
generating template for "cloud_router_bgp_prefixes"
generating template for "cloud_services_aws_dedicated"
generating template for "cloud_services_aws_hosted_marketplace"
generating template for "cloud_services_aws_provision_requested_mkt_conn"
generating missing data source content
generating template for "cloud_services_aws_connection_info"
generating template for "cloud_services_aws_dedicated_conn"
generating template for "locations"
generating template for "aws_cloud_router_connection"
generating template for "billing"
generating template for "cloud_router"
generating template for "cloud_router_bgp_prefixes"
generating template for "cloud_router_bgp_session"
generating missing provider content
provider "terraform-provider-plat" template exists, skipping
rendering static website
cleaning rendered website dir
rendering templated website to static markdown
rendering "data-sources/aws_cloud_router_connection.md.tmpl"
Error executing command: unable to generate website: unable to find resource for provider (plat) and template (aws_cloud_router_connection.md.tmpl)
I verified the md.tmpl files where created in the tmp directory. Any suggestions on how to trouble shoot this further?
from terraform-plugin-docs.
can you link me to your repository? I suspect the filename is incorrect and not matching what the schema expects for this resource as the others work just fine.
from terraform-plugin-docs.
Hi @jacobbednarz , thanks for the responses.
Unfortunately I can't share a link to the repo. Not public yet, and its not mine to share. Should go public once I figure out how to finish the docs.
However this is the directory/file structure that exists after running tfplugindocs version 0.10.0
You'll find I have a Directory: tmpls-notworking, where I'm keeping my intended, manually created, tmpls that were not working properly with schema discovery in 0.9.0.
I was thinking the error is coming from not being able to find the template tfplugindocs created. But perhaps I'm thinking about the wrong file names aligning.
elXaptation:~/terraform-provider-plat$ ../tfplugindocs_0100 generate
rendering website for provider "terraform-provider-plat" (as "terraform-provider-plat")
copying any existing content to tmp dir
exporting schema from Terraform
compiling provider "plat"
using Terraform CLI binary from PATH if available, otherwise downloading latest Terraform CLI binary
running terraform init
getting provider schema
rendering missing docs
generating missing resource content
generating template for "cloud_services_aws_hosted_marketplace"
generating template for "interface"
generating template for "cloud_router_bgp_prefixes"
generating template for "cloud_router_bgp_session"
generating template for "cloud_services_aws_dedicated"
generating template for "cloud_services_aws_hosted_connection"
generating template for "cloud_services_aws_req_hosted_conn"
generating template for "aws_cloud_router_connection"
generating template for "cloud_router"
generating template for "cloud_services_aws_create_backbone_dedicated_cr"
generating template for "cloud_services_aws_provision_requested_mkt_conn"
generating missing data source content
generating template for "aws_services_hosted_requested_mkt_conn"
generating template for "billing"
generating template for "cloud_router_bgp_prefixes"
generating template for "cloud_router_bgp_session"
generating template for "cloud_services_aws_connection_info"
generating template for "cloud_services_aws_dedicated_conn"
generating template for "aws_cloud_router_connection"
generating template for "locations"
generating template for "cloud_router"
generating missing provider content
provider "terraform-provider-plat" template exists, skipping
rendering static website
cleaning rendered website dir
rendering templated website to static markdown
rendering "data-sources/aws_cloud_router_connection.md.tmpl"
Error executing command: unable to generate website: unable to find resource for provider (plat) and template (aws_cloud_router_connection.md.tmpl)
elXaptation:~/terraform-provider-plat$ tree .
.
|-- LICENSE
|-- Makefile
|-- README.md
|-- docs
| `-- data-sources
| `-- aws_cloud_router_connection.md
|-- examples
| |-- cloud_router_aws_conn.tf
| |-- data-sources
| | |-- aws_cloud_router_connection
| | | `-- data-source.tf
| | |-- billing
| | | `-- data-source.tf
| | |-- cloud_router
| | | `-- data-source.tf
| | |-- cloud_router_bgp_prefixes
| | | `-- data-source.tf
| | |-- cloud_router_bgp_session
| | | `-- data-source.tf
| | |-- cloud_services_aws_connection_info
| | | `-- data-source.tf
| | |-- cloud_services_aws_dedicated_conn
| | | `-- data-source.tf
| | `-- locations
| | `-- data-source.tf
| |-- env_vars_source.sh
| |-- env_vars_source_private.sh
| |-- main_aws.tf
| |-- provider
| | `-- provider.tf
| |-- resources
| | |-- aws_cloud_router_connection
| | | `-- resource.tf
| | |-- cloud_router
| | | `-- resource.tf
| | |-- cloud_router_bgp_prefixes
| | | `-- resource.tf
| | |-- cloud_router_bgp_session
| | | `-- resource.tf
| | |-- cloud_services_aws_create_backbone_dedicated_cr
| | | `-- resource.tf
| | |-- cloud_services_aws_dedicated
| | | `-- resource.tf
| | |-- cloud_services_aws_hosted_connections
| | | `-- resource.tf
| | |-- cloud_services_aws_hosted_marketplace
| | | `-- resource.tf
| | |-- cloud_services_aws_provision_requested_mkt_conn
| | | `-- resource.tf
| | |-- cloud_services_aws_req_hosted_conn
| | | `-- resource.tf
| | `-- interface
| | `-- resource.tf
| `-- variables.tf
|-- examples_test
| |-- aws_cloud_router.tf
| |-- aws_cloud_router_conn_bgp.tf
| |-- aws_cloud_router_connection.tf
| |-- aws_dedicated_conn.tf
| |-- aws_hosted_mkt.tf
| |-- aws_provision_requested_mkt.tf
| |-- billings.tf
| |-- interface.tf
| `-- locations.tf
|-- go.mod
|-- go.sum
|-- internal
| |-- plat
| | |-- aws_backbone.go
| | |-- aws_backbone_test.go
| | |-- bgp_session.go
| | |-- bgp_session_test.go
| | |-- billing.go
| | |-- client.go
| | |-- cloud_router.go
| | |-- cloud_router_connection.go
| | |-- cloud_router_connection_test.go
| | |-- cloud_router_test.go
| | |-- cloud_service_aws.go
| | |-- interfaces.go
| | |-- locations.go
| | `-- service_status_check.go
| `-- provider
| |-- datasource_aws_dedicated_conn.go
| |-- datasource_aws_hosted_service.go
| |-- datasource_bgp_prefixes.go
| |-- datasource_bgp_session.go
| |-- datasource_billing.go
| |-- datasource_cloud_conn_aws.go
| |-- datasource_cloud_router.go
| |-- datasource_cloud_service_aws.go
| |-- datasource_locations.go
| |-- provider.go
| |-- resource_aws_backbone.go
| |-- resource_aws_hosted_mkt.go
| |-- resource_aws_hosted_mkt_conn.go
| |-- resource_aws_provision_mkt.go
| |-- resource_aws_request_dedicated_conn.go
| |-- resource_aws_request_hosted_conn.go
| |-- resource_bgp_refixes.go
| |-- resource_bgp_session.go
| |-- resource_cloud_router.go
| |-- resource_interfaces.go
| `-- resource_router_connection.go
|-- main.go
|-- main.tf
|-- templates
| |-- data-sources
| |-- index.md.tmpl
| `-- resources
|-- terraform-registry-manifest.json
|-- tmpls-notworking
| |-- data-sources
| | |-- aws_cloud_router_connection.md.tmpl
| | |-- billing.md.tmpl
| | |-- cloud_router.md.tmpl
| | |-- cloud_router_bgp_prefixes.md.tmpl
| | |-- cloud_router_bgp_session.md.tmpl
| | |-- cloud_services_aws_connection_info.md.tmpl
| | |-- cloud_services_aws_dedicated_conn.md.tmpl
| | `-- locations.md.tmpl
| `-- resources
| |-- aws_cloud_router_connection.md.tmpl
| |-- cloud_router.md.tmpl
| |-- cloud_router_bgp_prefixes.md.tmpl
| |-- cloud_router_bgp_session.md.tmpl
| |-- cloud_services_aws_create_backbone_dedicated_cr.md.tmpl
| |-- cloud_services_aws_dedicated.md.tmpl
| |-- cloud_services_aws_hosted_connection.md.tmpl
| |-- cloud_services_aws_hosted_marketplace.md.tmpl
| |-- cloud_services_aws_provision_requested_mkt_conn.md.tmpl
| |-- cloud_services_aws_req_hosted_conn.md.tmpl
| `-- interface.md.tmpl
`-- tools
`-- tools.go
from terraform-plugin-docs.
This issue is resolved in 0.10.1 #150
from terraform-plugin-docs.
Related Issues (20)
- Consider Warning/Error With Mismatched Terraform Architecture HOT 11
- Support Provider-Defined Function Documentation HOT 3
- Migrate from mitchellh/cli to hashicorp/cli HOT 1
- Bug: generate fails with "Provider registry.terraform.io/hashicorp/mongodbatlas v0.0.1 does not have a package available for your current platform, darwin_arm64." HOT 6
- Switch to `github.com/yuin/goldmark` library for all Markdown processing HOT 1
- [Question] Why do we have to provide the `--tf-version` to the `generate` command? HOT 2
- tfplugindocs migrate command outputs absolute file paths HOT 1
- Add a GitHub Action tutorial
- Improve documentation of `object` type for provider-defined functions
- Consider Tuple support for doc generator HOT 1
- The plugin has issue with id field. It marks all id fields as readonly HOT 2
- Adding `CustomType` to a `ListAttribute` changes generated description to `List of Dynamic` HOT 6
- Unexpected error `NestingSet blocks may not contain attributes of cty.DynamicPseudoType` HOT 4
- Go generate seems to be not picking up latest changes from the current project directory, somehow .git directory seems to overshadow the current project directory HOT 3
- Duplicate docs are generated when template names have `<provider-name>_` prefix HOT 4
- [BUG] Generation with version v0.19.0 removes links and bulletpoints HOT 4
- Nested schema is omitted in v0.19.0 HOT 1
- Odd documentation generation with upgrade to version 0.19.0 HOT 3
- `Migrate` appends a new copy of the file each time it is executed. HOT 2
- Required blocks in resources implemented with `terraform-plugin-framework` are listed as optional HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-plugin-docs.