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
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