provider-actions

Implements imperative Terraform Provider actions with Plugin Framework lifecycle hooks.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/kk0ga/terraform-aws-learning --skill provider-actions-kk0ga
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: provider-actions
Source: https://github.com/kk0ga/terraform-aws-learning/tree/main/.agents/skills/provider-actions
Command: npx skills add https://github.com/kk0ga/terraform-aws-learning --skill provider-actions-kk0ga

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the complexity of implementing imperative operations within the Terraform lifecycle, allowing developers to execute custom logic during resource creation, updates, or destruction.

Core Features & Use Cases

  • Lifecycle Event Hooks: Enables execution of custom code at specific points like before or after resource creation and updates.
  • Progress Reporting: Provides built-in mechanisms for real-time feedback during long-running operations.
  • Use Case: Use this to trigger external API calls or complex state-validation logic that must occur immediately after a resource is provisioned but before Terraform considers the operation complete.

Quick Start

Use the provider-actions skill to scaffold a new action implementation by defining the required Invoke method and schema within your provider service package.

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

To implement imperative Terraform provider actions, use the Plugin Framework to scaffold a new action implementation by defining the required Invoke method and schema within your provider service package to execute custom logic during lifecycle events.

Can I execute custom logic during Terraform lifecycle events like resource creation or destruction?

Yes, you can execute custom logic during Terraform lifecycle events by implementing imperative provider actions. This allows you to trigger external API calls or complex state-validation logic immediately after a resource is provisioned but before the operation completes.

Does this approach support progress reporting and timeout management for long-running infrastructure-as-code operations?

Yes, implementing imperative provider actions provides built-in mechanisms for real-time progress reporting and timeout management, ensuring robust error handling and feedback during long-running infrastructure-as-code operations.

What Terraform version is required to trigger imperative provider actions?

Triggering imperative provider actions requires Terraform 1.14.0 or higher. The implementation ensures compliance with these trigger event standards and schema validation requirements to execute custom lifecycle logic properly.

How do I scaffold a new provider action to trigger external API calls after resource provisioning?

You scaffold a new provider action by defining the required Invoke method and schema within your provider service package. This structure facilitates provider-specific operations that require progress reporting and robust error handling.