provider-resources

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

1|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/anyscale/terraform-provider-anyscale --skill provider-resources-anyscale
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: provider-resources
Source: https://github.com/anyscale/terraform-provider-anyscale/tree/main/.claude/skills/provider-resources
Command: npx skills add https://github.com/anyscale/terraform-provider-anyscale --skill provider-resources-anyscale

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developing Terraform Provider resources requires deep knowledge of CRUD patterns, schema design, state management, and acceptance testing conventions. This Skill provides structured guidance and code patterns for implementing resources and data sources correctly with the Terraform Plugin Framework. ## Core Features & Use Cases - CRUD Implementation Patterns: Complete Go code templates for Create, Read, Update, and Delete operations with proper diagnostics and error handling. - Schema Design Guidance: Attribute types, plan modifiers, validators, and sensitive attribute handling for both Plugin Framework and SDKv2. - Acceptance Testing: Test patterns including basic tests, disappears tests, import verification, and helper functions for existence and destroy checks. - Use Case: When adding a new resource to a Terraform provider (such as an Anyscale cloud or compute configuration), use this Skill to generate the resource implementation, finder functions, state waiters, and acceptance tests following HashiCorp conventions. ## Quick Start Implement a new Terraform provider resource for compute configurations with full CRUD operations, schema validation, and acceptance tests.

Frequently Asked Questions about provider-resources

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

FAQPage Schema
How do I implement a Terraform provider resource with the Plugin Framework?▼

Define a resource struct with Metadata, Schema, Create, Read, Update, and Delete methods. Use schema attributes with validators and plan modifiers, read plan and state via req.Plan.Get and req.State.Get, and report issues through resp.Diagnostics.

How to write acceptance tests for Terraform provider resources?▼

Use resource.ParallelTest with TestCase containing PreCheck, ProtoV5ProviderFactories, CheckDestroy, and Steps. Each step applies a configuration and runs checks like TestCheckResourceAttr, plus an ImportState verification step.

What is the difference between Terraform Plugin Framework and SDKv2?▼

The Plugin Framework uses explicit request/response types, typed attributes, plan modifiers, and validators, while SDKv2 uses schema.Resource with CRUD function fields. The Framework is the recommended modern approach for new providers.

How do I handle resource not found in Terraform Read operations?▼

Detect not-found errors in your finder function and call resp.State.RemoveResource(ctx) with a warning diagnostic. This removes the resource from state so Terraform plans to recreate it on the next apply.

When should I use RequiresReplace plan modifier in Terraform?▼

Use stringplanmodifier.RequiresReplace() on attributes that cannot be updated in place, such as resource names or identifiers. Changing these values forces Terraform to destroy and recreate the resource instead of updating it.