跳到正文
cccskills
HashiCorp 官方免费在 GitHub 公开

new-terraform-provider

Use this when scaffolding a new Terraform provider with the Plugin Framework: workspace layout, go module setup, provider server main.go, and a provider.go with schema and Configure. Also use when a user wants to start building a provider for a new API or asks how to begin a terraform-provider-* project.

中文简介正在准备中。当前显示原文说明。

集成工具Terraform

实测评分 未实测

查看安装方法

包含的文件(3)

  • SKILL.md1.8 KB
  • assets/main.go1.1 KB
  • assets/provider.go4.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

To scaffold a new Terraform provider with Plugin Framework:

  1. If I am already in a Terraform provider workspace, then confirm that I want to create a new workspace. If I do not want to create a new workspace, then skip all remaining steps.
  2. Create a new workspace root directory. The root directory name should be prefixed with "terraform-provider-". Perform all subsequent steps in this new workspace.
  3. Initialize a new Go module.
  4. Run go get -u github.com/hashicorp/terraform-plugin-framework@latest.
  5. Write a main.go file that follows the example.
  6. Write an internal/provider/provider.go file that follows the example. Rename the demo provider, the DEMO_* environment variables, and the authentication attributes to match the target API.
  7. Remove TODO comments from main.go and provider.go.
  8. Run go mod tidy
  9. Run go build -o /dev/null
  10. Run go test ./... The scaffold resolves credentials as explicit config with environment variable fallback. To grow that into a full credential provider chain (shared credentials files, profiles, platform identity, configure-time validation), use the provider-configuration skill (if available). To add the first resource or data source, use the provider-resources skill (if available).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

aws-ami-builder

HashiCorp 官方免费

Build Amazon Machine Images (AMIs) with Packer using the amazon-ebs builder. Use when creating custom AMIs for EC2 instances.

中文简介正在准备中。当前显示原文说明。

hashicorp/agent-skills9042026年10月5日 更新

azure-image-builder

HashiCorp 官方免费

Build Azure managed images and Azure Compute Gallery images with Packer. Use when creating custom images for Azure VMs.

中文简介正在准备中。当前显示原文说明。

hashicorp/agent-skills9042026年10月5日 更新

azure-verified-modules

HashiCorp 官方免费

Azure Verified Modules (AVM) requirements and best practices for developing certified Azure Terraform modules. Use when creating or reviewing Azure modules that need AVM certification.

中文简介正在准备中。当前显示原文说明。

hashicorp/agent-skills9042026年10月5日 更新

provider-actions

HashiCorp 官方免费

Implement Terraform Provider actions using the Plugin Framework. Use when developing imperative operations that execute at lifecycle events (before/after create, update, destroy).

中文简介正在准备中。当前显示原文说明。

hashicorp/agent-skills9042026年10月5日 更新

provider-configuration

HashiCorp 官方免费

Implement Terraform provider configuration and authentication with the Plugin Framework: provider schema for credentials (Optional + Sensitive attributes), environment variable fallbacks, credential provider chains (static config, then environment variables, shared credentials file, and platform identity), unknown-value guards in Configure(), secret redaction, configure-time credential validation, and diagnostics that name every source tried. Use when implementing or reviewing a provider's Configure method or provider schema, adding authentication options (API keys, tokens, profiles, credentials files, assume-role), deciding how a provider should resolve credentials, debugging "no valid credential sources" or missing-credentials errors, or unit testing credential resolution.

中文简介正在准备中。当前显示原文说明。

hashicorp/agent-skills9042026年10月5日 更新

provider-docs

HashiCorp 官方免费

Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema descriptions. Use when adding or changing provider configuration, resources, data sources, ephemeral resources, list resources, functions, actions, or guides; when validating generated docs; and when troubleshooting missing or incorrect Registry documentation.

中文简介正在准备中。当前显示原文说明。

hashicorp/agent-skills9042026年10月5日 更新

查看 hashicorp 的全部技能

报告此技能的问题