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.
—
Does it follow best practices?
Impact
97%
1.04xAverage score across 5 eval scenarios
—
The risk profile of this skill
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: