Community생산성 & 협업github.com

hashicorp/new-terraform-provider

새로운 Terraform 공급자를 스캐폴딩할 때 사용합니다.

new-terraform-provider란 무엇인가요?

이 스킬은 HashiCorp의 공식 `terraform-provider-scaffolding` 템플릿을 기반으로 새로운 Terraform 공급자를 빠르게 생성할 수 있도록 도와줍니다. Terraform 공급자는 Terraform이 다양한 클라우드, 서비스, API와 상호작용할 수 있게 해주는 플러그인으로, 이 스킬을 사용하면 표준 디렉토리 구조, 필수 구성 파일(예: `provider.go`, `resource_*.go`, `data_source_*.go`), Go 모듈 초기화 및 기본 테스트가 포함된 프로젝트를 즉시 스캐폴딩할 수 있습니다. 주로 Terraform 개발자와 DevOps 엔지니어가 새로운 공급자 개발을 시작할 때 시간을 절약하고 모범 사례를 따를 수 있도록 설계되었습니다. 이 스킬은 Terraform CLI 및 Go 개발 환경과 함께 사용되며, 공급자 개발의 초기 설정 과정을 자동화합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hashicorp/agent-skills/tree/main/skills/new-terraform-provider

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

new-terraform-provider은(는) 무엇을 하나요?

새로운 Terraform 공급자를 스캐폴딩할 때 사용합니다.

이 스킬은 terraform-provider-scaffolding 템플릿을 기반으로 새로운 Terraform 공급자의 기본 구조를 생성합니다. 다음 항목을 포함합니다:

  • 표준 provider.go, resource_*.go, data_source_*.go 파일
  • Go 모듈 초기화 (go mod init)
  • 기본적인 리소스 및 데이터 소스 스캐폴딩
  • 테스트 파일 구조

사용법

  1. 새로운 디렉토리에서 이 스킬을 호출합니다.
  2. 공급자 이름과 패키지 경로를 입력합니다.
  3. 생성된 파일을 검토하고 필요에 따라 수정합니다.

요구 사항

  • Go 1.18 이상
  • Terraform 1.0 이상
  • git (선택 사항)

Individual skills in this repo

This repo contains 15 individual skills — each has its own dedicated page.

hashicorp/aws-ami-builder

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

hashicorp/azure-image-builder

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

hashicorp/azure-verified-modules

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/provider-actions

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

hashicorp/provider-docs

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, or guides; when validating generated docs; and when troubleshooting missing or incorrect Registry documentation.

hashicorp/provider-resources

Implement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and acceptance testing for provider resources.

hashicorp/provider-test-patterns

Terraform provider acceptance test patterns using terraform-plugin-testing with the Plugin Framework. Covers test structure, TestCase/TestStep fields, ConfigStateChecks with custom statecheck.StateCheck implementations, plan checks, CompareValue for cross-step assertions, config helpers, import testing with ImportStateKind, sweepers, and scenario patterns (basic, update, disappears, validation, regression), and ephemeral resource testing with the echoprovider package. Use when writing, reviewing, or debugging provider acceptance tests, including questions about statecheck, plancheck, TestCheckFunc, CheckDestroy, ExpectError, import state verification, ephemeral resources, or how to structure test files.

hashicorp/push-to-registry

Push Packer build metadata to HCP Packer registry for tracking and managing image lifecycle. Use when integrating Packer builds with HCP Packer for version control and governance.

hashicorp/refactor-module

Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

hashicorp/run-acceptance-tests

Guide for running acceptance tests for a Terraform provider. Use this when asked to run an acceptance test or to run a test with the prefix `TestAcc`.

hashicorp/terraform-search-import

Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure under Terraform control, auditing cloud resources, or migrating to IaC.

hashicorp/terraform-stacks

Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .tfdeploy.hcl files), working with stack components and deployments from local modules, public registry, or private registry sources, managing multi-region or multi-environment infrastructure, or troubleshooting Terraform Stacks syntax and structure.

hashicorp/terraform-style-guide

Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.

hashicorp/terraform-test

Comprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infrastructure behavior with assertions, mocking providers and data sources, testing module outputs and resource configurations, or troubleshooting Terraform test syntax and execution.

hashicorp/windows-builder

Build Windows images with Packer using WinRM communicator and PowerShell provisioners. Use when creating Windows AMIs, Azure images, or VMware templates.

관련 스킬