hashicorp avatar

Provider Actions

Guide for implementing Terraform provider actions with the Plugin Framework, covering schema, invoke, timeouts, and error handling.

CCM score
75 of 100
skills.sh installs
4.1K
GitHub stars
941
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers first-action scaffolding, action schema definition, the Invoke method, and progress reporting for long operations
  • Includes schema validation checklist items such as ElementType on list and map attributes and Computed on attributes with defaults
  • Enforces a default 1800-second timeout with a 60 to 7200 second range and uses context.WithTimeout() for API calls
  • Designed for provider developers adding imperative operations that run at Terraform create, update, or destroy lifecycle events

Install

$ npx -y skills add hashicorp/agent-skills --skill provider-actions -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

First Action Setup

When adding the first action to a provider that has never had one, several one-time scaffolding steps are required:

Details

Repository
github.com/hashicorp/agent-skills
Categories
Go, DevOps & Cloud

More from hashicorp/agent-skills

All 16

Similar to Provider Actions

More Go