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%
Quick-check before committing terraform-plugin-framework code.
Plan.Get(), State.Get(), Config.Get(), State.Set() calls followed by HasError() check and early returnUseStateForUnknown() on all stable computed attributes (IDs, creation timestamps)resp.State.RemoveResource(ctx)resp.State.Set()Sensitive: trueDescription for generated docstypes.String, types.Int64), not Go primitivesIsNull()/IsUnknown() before calling .ValueString() etc.Configure (plan phase sends unknowns)resource.Test), not unit tests with mocksrequire (not assert)UseStateForUnknown for stable computed values, NOT for values that change on every updateRequiresReplace for immutable attributes only