provider-resources

Implement Terraform Provider resources and data sources with the Plugin Framework.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/benonions/dotfiles --skill provider-resources-benonions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: provider-resources
Source: https://github.com/benonions/dotfiles/tree/main/codex/.codex/skills/community/hashicorp-agent-skills/terraform/provider-development/skills/provider-resources
Command: npx skills add https://github.com/benonions/dotfiles --skill provider-resources-benonions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and best practices for developing custom resources and data sources for Terraform providers using the Plugin Framework, streamlining infrastructure as code development.

Core Features & Use Cases

  • Resource & Data Source Development: Implement CRUD operations, schema design, and state management for new Terraform resources.
  • Acceptance Testing: Learn how to write robust acceptance tests to ensure provider stability.
  • Use Case: A cloud engineer needs to create a new Terraform provider for a custom internal service. This Skill will guide them through defining resources, implementing their lifecycle, and testing them thoroughly.

Quick Start

Use the provider-resources skill to implement a new Terraform resource following the Plugin Framework pattern.

Frequently Asked Questions about provider-resources

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement CRUD operations for a Terraform provider resource using the Plugin Framework?

Implement CRUD operations for a Terraform provider resource by defining schema and state management logic within the Plugin Framework's resource interfaces. This Skill guides mapping API lifecycle methods to Create, Read, Update, and Delete functions using Go.

How do I write acceptance tests for a custom Terraform provider?

Write acceptance tests for a custom Terraform provider by following the Plugin Framework's testing patterns to verify resource lifecycle stability. This Skill provides best practices for structuring tests that validate CRUD operations and state management behavior.

Do I need to know Go to develop Terraform provider resources with the Plugin Framework?

Yes, you need to know Go to develop Terraform provider resources with the Plugin Framework. Understanding Go and Terraform's plugin architecture is required to implement schema design, state management, and error handling correctly.

What's the best way to design state management for a new Terraform resource?

Design state management for a new Terraform resource by mapping API responses to the Plugin Framework's schema types and handling state upgrades explicitly. This Skill outlines how to manage state transitions during CRUD operations to prevent drift.

How does schema design work for Terraform data sources in the Plugin Framework?

Schema design for Terraform data sources in the Plugin Framework works by defining attributes and blocks that describe the data structure returned by the read operation. This Skill covers structuring schemas to accurately represent external service data.

Why is my Terraform provider resource not handling errors correctly during CRUD operations?

Terraform provider resources fail to handle errors correctly during CRUD operations when Plugin Framework diagnostics are not properly implemented. This Skill guides structured error handling practices to surface clear API failures and validation issues.