This project is inspired by hashicorp/terraform-provider-scaffolding and provides you a minimal setup using PseudoDynamic.Terraform.Toolset.
- dotnet CLI + .NET 6.0 SDK
- terraform (TODO: estimate lowest supported version, but v1.2.8+ should be fine)
Assuming your workdir is this repository root directory:
- Run dotnet build
- Set environment variable TF_CLI_CONFIG_FILE=Terraform.Provider.Scaffolding/terraform.tfrc
- Run terraform validate,terraform plan,terraform applyorterraform destroy
❗ Currently not supported, see below.
By following the guide of go-modules-by-example you need to follow these steps
- export GOBIN="<absolute-path-to-repo>/bin"(Bash)
- export PATH=$GOBIN:$PATH(Bash)
- go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
- tfplugindocs generate
❌ At the moment
tfplugindocsdoes not support external provider executables. Thego buildprocedure is a fixed component oftfplugindocs generate. But we generated our own terraform-provider-scaffold binary, so this needs to be fixed at side oftfplugindocs. :D
Read here to get more familiar with PseudoDynamic.Terraform.Toolset.