provider-actions

Implement Terraform Provider actions with lifecycle event integration and validation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide for implementing imperative operations within Terraform Providers during specific lifecycle events, enabling more dynamic and responsive infrastructure management.

Core Features & Use Cases

  • Lifecycle Event Integration: Develop actions that trigger before or after resource creation, update, or destruction.
  • Schema Definition & Validation: Learn best practices for defining action schemas, including common pitfalls and validation checklists.
  • Invoke Method Implementation: Understand how to write the core logic for actions, including progress reporting, timeout management, and error handling.
  • Use Case: Automatically notify a Slack channel after a new Kubernetes cluster is created, or perform a pre-deployment check before updating a database instance.

Quick Start

Refer to the 'Action Invoke Method' section for guidance on implementing the core logic of your provider action.

Frequently Asked Questions about provider-actions

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

FAQPage Schema
How do I implement imperative operations during Terraform provider lifecycle events?

Terraform provider actions enable imperative operations during lifecycle events by guiding schema definition, invoke method logic, progress reporting, timeout management, error handling, and polling for completion.

What are Terraform provider actions and when do I need them?

Terraform provider actions are imperative operations triggered at lifecycle events like before or after create, update, and destroy. They are needed for dynamic infrastructure management like pre-deployment checks or post-creation notifications.

How do I write the invoke method logic for a custom Terraform provider action?

Writing the invoke method logic for a Terraform provider action involves implementing core processing, progress reporting, timeout management, error handling, and polling for completion within the provider SDK integration.

Can I trigger custom logic before destroying infrastructure using Terraform plugin framework actions?

Yes, Terraform plugin framework actions support triggering custom imperative logic before or after resource destruction. You implement this by defining the action schema and writing the invoke method logic for the destroy lifecycle event.

What are the limitations of using lifecycle actions in Terraform provider development?

Limitations of Terraform provider lifecycle actions include managing complex polling for completion, handling timeout constraints, and ensuring robust error handling within the invoke method logic to avoid blocking infrastructure deployment.

How do I test and document Terraform provider actions?

Testing and documenting Terraform provider actions requires following specific testing strategies and documentation standards to ensure robust provider development, covering schema validation, invoke method behavior, and lifecycle event integration.