Comprehensive documentation and best practices for building Terraform providers with terraform-plugin-framework (v1.17.0). Covers providers, resources, schemas, types, validators, testing, and common pitfalls.
Overall
score
97%
Build and test incrementally. Do NOT write all code before testing.
For each resource or data source, follow this cycle:
go build ./... to catch compilation errorsTF_ACC=1 go test ./... -run TestAcc<Resource> -v -timeout 120sComplete one resource end-to-end before starting the next.
Run go build ./... after every file change. Do not accumulate unbuilt code.
When a test fails: