provider-actions

Installation
Summary

Implement imperative Terraform Provider actions at resource lifecycle events using the Plugin Framework.

  • Supports before/after create and before/after update lifecycle triggers (destroy events not available in Terraform 1.14.0)
  • Requires proper schema definition with correct framework types, ElementType for collections, and validators for input validation
  • Includes progress reporting, timeout management, and comprehensive error handling for long-running operations
  • Implements polling and waiting patterns for async operations with configurable intervals and success/transitional states
  • Demands acceptance tests with trigger-based invocation, sweep functions for cleanup, and documentation with examples and prerequisites
SKILL.md

Terraform Provider Actions Implementation Guide

Overview

Terraform Actions enable imperative operations during the Terraform lifecycle. Actions are experimental features that allow performing provider operations at specific lifecycle events (before/after create, update, destroy).

References:

File Structure

Actions follow the standard service package structure:

internal/service/<service>/
├── <action_name>_action.go       # Action implementation
├── <action_name>_action_test.go  # Action tests
└── service_package_gen.go        # Auto-generated service registration
Related skills

More from hashicorp/agent-skills

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