new-terraform-provider

Scaffold a Terraform provider workspace with the Plugin Framework.

Updated Jul 30, 2024
One-click install
npx skills add https://github.com/twidxuga/dotfiles --skill new-terraform-provider-twidxuga
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-terraform-provider
Source: https://github.com/twidxuga/dotfiles/tree/main/opencode/dot-config/opencode/skills/terraform-new-provider
Command: npx skills add https://github.com/twidxuga/dotfiles --skill new-terraform-provider-twidxuga

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill helps DevOps/Developers bootstrap a new Terraform provider project quickly, ensuring a standard setup and correct plugin framework configuration.

Core Features & Use Cases

  • Scaffold a new provider workspace with a predictable structure.
  • Initialize a Go module and fetch the Terraform Plugin Framework.
  • Create main.go from a template and validate the build.

Quick Start

Create a new Terraform provider workspace named terraform-provider-<your-provider>, initialize the Go module, fetch the Terraform Plugin Framework, implement main.go per the example, and build.

Frequently Asked Questions about new-terraform-provider

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

FAQPage Schema
How do I scaffold a new Terraform provider using the Plugin Framework?

To scaffold a new Terraform provider, this Skill initializes the Go module, fetches the Terraform Plugin Framework dependencies, generates a main.go template, and validates the build for standard project readiness.

What is the standard project structure for a Terraform provider?

The standard project structure for a Terraform provider includes an initialized Go module, fetched Plugin Framework dependencies, and a generated main.go file, ensuring reproducibility and basic build readiness.

Do I need Golang to create a Terraform provider workspace?

Yes, you need Golang to create a Terraform provider workspace because this Skill initializes a Go module, fetches the Terraform Plugin Framework, and compiles the main.go template to validate the build.

What's the best way to bootstrap a Terraform provider quickly?

The best way to bootstrap a Terraform provider quickly is using a scaffolding workflow that automates module initialization, Plugin Framework dependency fetching, and main.go template generation for immediate build validation.

Can I validate my Terraform provider build right after scaffolding?

Yes, you can validate your Terraform provider build immediately because this scaffolding process generates main.go from a template and runs a build validation step to ensure common provider setups compile correctly.

Why does my Terraform provider setup lack a predictable structure?

Your Terraform provider setup lacks a predictable structure if it was built manually; using a scaffolding workflow standardizes the project structure, initializes the Go module correctly, and configures the Plugin Framework reproducibly.