Helper to build terraform provider autocompletion for Intellij HCL plugin.
It starts the provider, gets it schema using GRPC, saves to $HOME/.terraform.d/metadata-repo/terraform/model/providers
(path from which Intellij HCL plugin loads custom providers schemas)
Example:
intellij-hcl-schema -path ./terraform-provider-hashicups -name hashicups
Flags:
-name string
Name to use for provider
-path string
Path to already build terraform provider
-ver string
Version to use for provider (default "0.0.0")
Development Notes
Terraform Provider Protocol updates
In future new protocol version might be incompatible with tfplugin5.3, which is currently
used for obtaining provider schema. In order to get latest schema support: