hashicorp avatar

Provider Resources

Terraform Plugin Framework guide for building provider resources, data sources, CRUD, schema, and acceptance tests.

CCM score
75 of 100
skills.sh installs
4.3K
GitHub stars
941
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers resource and data source implementation: CRUD operations, schema design, plan modifiers, validators, and import support
  • Includes Go code patterns for Create, Read (not-found removal from state), and Update (API calls only on changed attributes)
  • Enforces Framework-first development for new resources, with guidance on muxing and avoiding naive SDKv2 migrations
  • Designed for provider developers adding or reviewing resources, deciding resource boundaries, or handling eventual consistency

Install

$ npx -y skills add hashicorp/agent-skills --skill provider-resources -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Terraform Provider Resources Implementation Guide

Overview

This guide covers developing Terraform Provider resources and data sources. Resources represent infrastructure objects that Terraform manages through Create, Read, Update, and Delete (CRUD) operations.

Use the Plugin Framework for all net-new resources and data sources. Plugin SDKv2 is for maintaining resources that already exist on it; do not write new code against it. A provider can serve both during migration by muxing (terraform-plugin-mux), so adopting the Framework never requires a big-bang rewrite. To tell which mode an existing provider is in, check go.mod: terraform-plugin-mux present means it serves both SDKv2 and Framework code; only terraform-plugin-sdk/v2 means SDKv2-only; only terraform-plugin-framework means Framework-only. Be cautious about migrating existing SDKv2 resources: the Framework distinguishes null from zero values, so naive migrations change behavior for existing users (use the provider-framework-migration skill, if available).

Details

Repository
github.com/hashicorp/agent-skills
Categories
Go, DevOps & Cloud

More from hashicorp/agent-skills

All 16

Similar to Provider Resources

More Go