provider-resources

Installation
Summary

Implement Terraform Provider resources and data sources with complete CRUD operations and testing.

  • Covers both SDKv2 and Plugin Framework patterns for resource implementation, including schema design, plan modifiers, and validators
  • Provides complete CRUD operation examples (Create, Read, Update, Delete) with error handling, state management, and resource not-found patterns
  • Includes acceptance testing patterns: basic tests, disappears tests, helper functions, and test execution commands
  • Demonstrates schema design with attribute types, sensitive attributes, plan modifiers for replacement and state preservation, and validation rules
  • Covers state management including finder functions, wait-for-state logic, and proper error classification for API responses
SKILL.md

Terraform Provider Resources Implementation Guide

Overview

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

References:

File Structure

Resources follow the standard service package structure:

internal/service/<service>/
├── <resource_name>.go           # Resource implementation
├── <resource_name>_test.go      # Acceptance tests
Related skills

More from hashicorp/agent-skills

Installs
1.4K
GitHub Stars
613
First Seen
Jan 26, 2026