provider-actions

Implement Terraform Provider actions using the Plugin Framework for lifecycle-triggered operations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building Terraform Provider actions requires navigating experimental Plugin Framework APIs, schema type pitfalls, progress reporting, timeout handling, and lifecycle trigger constraints, which often leads to compile errors and incomplete implementations. ## Core Features & Use Cases - Action Schema Guidance: Defines action schemas with correct framework types, ElementType requirements, validators, and Optional/Computed rules. - Invoke Method Patterns: Provides templates for progress reporting, timeout management, polling with wait loops, and structured error handling. - Testing & Documentation Standards: Covers acceptance tests, sweep functions, changelog entries, and documentation formatting requirements. - Use Case: When adding a new imperative operation (e.g., rebooting a resource after creation) to a Terraform provider, use this Skill to scaffold the action file, tests, docs, and changelog entry following framework conventions. ## Quick Start Implement a new Terraform provider action for restarting a service after resource creation, including schema, invoke logic, tests, and documentation.

Frequently Asked Questions about provider-actions

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

FAQPage Schema
How do I implement a Terraform Provider action with the Plugin Framework?▼

Define a Schema method with framework attribute types, then implement an Invoke method that reads config, creates the provider client, reports progress, and handles errors via diagnostics. Register the action in the service package and add tests, docs, and a changelog entry.

How to trigger Terraform actions on resource lifecycle events?▼

Use an action_trigger block inside a resource's lifecycle block, referencing the action and specifying events like after_create or after_update. Terraform 1.14.0 supports before_create, after_create, before_update, and after_update events.

Which lifecycle events do Terraform actions support in version 1.14.0?▼

Terraform 1.14.0 supports before_create, after_create, before_update, and after_update events. The before_destroy and after_destroy events are not supported and will cause validation errors if used.

Why does my Terraform action schema fail with type mismatch errors?▼

Type mismatches usually come from mixing framework types like fwtypes.String with plugin-framework types like types.String in model structs. Also ensure List and Map attributes define ElementType, and run go build to catch remaining type errors.

How do I test Terraform provider actions with acceptance tests?▼

Write acceptance tests using resource.TestCase with ProtoV5ProviderFactories and a TerraformVersionCheck skipping below 1.14.0. Run them with TF_ACC=1 go test, and add sweep functions to clean up test resources prefixed with tf-acc-test.