implement-terraform-provider-resource

Generate Terraform Plugin Framework resource and data source boilerplates with test scaffolds.

16|5|Updated Jul 19, 2023
One-click install
npx skills add https://github.com/ubie-oss/terraform-provider-lightdash --skill implement-terraform-provider-resource
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-terraform-provider-resource
Source: https://github.com/ubie-oss/terraform-provider-lightdash/tree/main/.claude/skills/implement-terraform-provider-resource
Command: npx skills add https://github.com/ubie-oss/terraform-provider-lightdash --skill implement-terraform-provider-resource

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

This skill standardizes and accelerates the creation of Terraform provider resources and data sources by generating boilerplate code, testing scaffolds, and documentation patterns, enabling consistent provider development.

Core Features & Use Cases

  • Generates resource_<name>.go and data_source_<name>.go boilerplates aligned with the Terraform plugin framework.
  • Provides unit and acceptance test templates, including PreCheck and provider configuration helpers.
  • Supports end-to-end workflows from schema definition to import state, ensuring production-grade provider implementations.

Quick Start

Create a new resource or data source by describing its type, name, and schema, then run the skill to generate the boilerplate and test scaffolds.

Frequently Asked Questions about implement-terraform-provider-resource

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

FAQPage Schema
How do I create a new Terraform provider resource using the plugin framework?

To create a Terraform provider resource, you define the resource type, name, and schema, then generate the resource.go boilerplate aligned with the Terraform Plugin Framework to establish the core structure.

What is the best way to structure acceptance tests for a Terraform provider data source?

The best way to structure acceptance tests for a Terraform provider data source is to use generated testing scaffolds that include PreCheck functions and provider configuration helpers for consistent validation.

Can I generate import state support when implementing a Terraform provider resource?

Yes, you can generate import state support when implementing a Terraform provider resource, as the generated boilerplate covers end-to-end workflows from schema definition through to import state functionality.

Does this Terraform provider boilerplate generation work with Go module layouts?

Yes, this Terraform provider boilerplate generation satisfies requirements for a structured Go module layout, ensuring that provider configuration wiring and code organization follow standard Go conventions.

Why do I need unit and acceptance test templates for Terraform provider development?

You need unit and acceptance test templates for Terraform provider development to ensure production-grade implementations, validate schema behavior, and maintain consistent testing standards across new resources and data sources.

What are the limitations of generating Terraform provider boilerplate automatically?

Generating Terraform provider boilerplate automatically standardizes the initial code layout and testing scaffolds, but you must still manually implement the specific CRUD logic and schema definitions unique to your API endpoints.