provider-resources

Guides implementation of Terraform Plugin Framework resources and data sources.

5|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill provider-resources-lidge-jun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: provider-resources
Source: https://github.com/lidge-jun/cli-jaw-skills/tree/main/terraform/provider-development/skills/provider-resources
Command: npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill provider-resources-lidge-jun

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 within Terraform providers using the Plugin Framework, streamlining infrastructure as code development.

Core Features & Use Cases

  • Resource & Data Source Development: Covers the implementation of CRUD operations, schema design, and state management for Terraform resources.
  • Testing & Documentation: Includes guidance on writing acceptance tests, handling errors, and adhering to documentation standards.
  • Use Case: A developer needs to create a new Terraform provider for a custom cloud service. This Skill will guide them through defining resources, implementing their lifecycle, and ensuring they are well-tested and documented.

Quick Start

Refer to the Terraform Plugin Framework documentation for resource development patterns.

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 using the Plugin Framework?

To implement CRUD operations for a Terraform provider using the Plugin Framework, you must define resource schemas and manage state transitions within the Create, Read, Update, and Delete lifecycle methods. This process also involves handling errors and reporting diagnostics correctly during infrastructure deployments.

What is the best way to design schemas and manage state for Terraform custom resources?

Designing schemas and managing state for Terraform custom resources requires defining attribute types within the Plugin Framework and mapping them to internal infrastructure components. Proper state management ensures configuration consistency and accurate resource tracking across deployments.

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

Writing acceptance tests for custom Terraform provider resources involves executing real infrastructure operations to verify CRUD behavior and state consistency. The Skill provides guidance on structuring these tests to ensure custom cloud services function correctly before documentation.

Does the Terraform Plugin Framework support diagnostic reporting for resource development errors?

The Terraform Plugin Framework supports diagnostic reporting for resource development errors by allowing developers to attach detailed diagnostics to CRUD operations. This mechanism helps identify common error patterns and communicate infrastructure issues clearly during execution.

When should I create a custom data source instead of a resource in Terraform provider development?

You should create a custom data source instead of a resource in Terraform provider development when you need to query and read existing infrastructure components without managing their lifecycle. Resources handle full CRUD operations, while data sources focus solely on reading state.

What documentation standards are required for Terraform provider resources and data sources?

Documentation standards for Terraform provider resources require clear descriptions of schemas, arguments, and attributes for custom infrastructure components. Adhering to these standards ensures that users can correctly implement and reference the provider resources within their configurations.