H
Hashicorp技能
aws-ami-builder
hashicorp
使用Packer的amazon-ebs建置器建立自訂Amazon Machine Images。透過HCL範本自動化從來源AMI建立AMI,並搭配佈建工具(Shell腳本、檔案上傳、組態管理)進行自訂。支援透過ami_regions進行多區域AMI分發,以及依名稱、擁有者和虛擬化類型進行靈活的來源AMI篩選。可透過環境變數、AWS憑證檔案或IAM執行個體設定檔進行驗證;包含範本的驗證與建置命令...
official
aws-ami-builder
hashicorp
使用 amazon-ebs 建置器,透過 Packer 建置 Amazon Machine Images (AMI)。適用於為 EC2 執行個體建立自訂 AMI 時使用。
official
azure-image-builder
hashicorp
使用 Packer 建置 Azure 受控映像與 Azure Compute Gallery 映像。適用於為 Azure VM 建立自訂映像時使用。
official
azure-image-builder
hashicorp
使用 Packer 建置 Azure 受控映像與 Azure Compute Gallery 映像。適用於為 Azure VM 建立自訂映像時使用。
official
azure-verified-modules
hashicorp
認證要求與Azure Terraform模組尋求AVM合規性的最佳實踐。強制執行提供者版本限制(azurerm >= 4.0, < 5.0;azapi >= 2.0, < 3.0),並禁止基於git的模組引用,改為使用固定的Terraform註冊表來源。要求所有識別碼採用小寫蛇形命名法、精確的變數類型、透過防腐層模式實現離散的輸出屬性,以及按字母順序排列的locals。新增資源時需要功能切換變數...
official
azure-verified-modules
hashicorp
Azure Verified Modules (AVM) 的需求與最佳實踐,用於開發經認證的 Azure Terraform 模組。在建立或審查 Azure 模組時使用…
official
new-terraform-provider
hashicorp
使用 Plugin Framework 建立新的 Terraform provider。生成新的 Go 模組工作區,採用標準的「terraform-provider-」命名慣例,並初始化所需的依賴項。提供遵循 HashiCorp Plugin Framework 模式的範本 main.go 檔案,並附有待辦事項標記供自訂使用。透過執行建置與測試指令來驗證設定,確保 provider 能成功編譯並通過初步檢查。在建立新的工作區前,會先確認意圖以管理工作區。
official
new-terraform-provider
hashicorp
在建立新的 Terraform Provider 時使用此功能。
official
provider-actions
hashicorp
使用 Plugin Framework 實作 Terraform Provider 動作。在開發於生命週期事件(前/後…)執行的命令式操作時使用。
official
provider-actions
hashicorp
使用 Plugin Framework 在資源生命週期事件中執行命令式的 Terraform Provider 動作。支援建立前/後與更新前/後的觸發機制(Terraform 1.14.0 不支援銷毀事件)。需以正確的框架類型、集合的 ElementType 及輸入驗證器定義適當的綱要。包含進度回報、逾時管理及長時間操作的全面錯誤處理。實作輪詢與...
official
provider-docs
hashicorp
使用 HashiCorp 推薦的模式、tfplugindocs 模板和 schema,為 Terraform Registry 建立、更新和審查 Terraform provider 文件…
official
provider-docs
hashicorp
使用 HashiCorp 推薦的模式、tfplugindocs 模板和 schema,為 Terraform Registry 建立、更新和審查 Terraform provider 文件。
official
provider-resources
hashicorp
使用完整的CRUD操作與測試來實作Terraform Provider資源與資料來源。涵蓋SDKv2與Plugin Framework的資源實作模式,包括結構設計、計畫修飾器與驗證器。提供完整的CRUD操作範例(建立、讀取、更新、刪除),包含錯誤處理、狀態管理與資源未找到的處理模式。包含驗收測試模式:基本測試、消失測試、輔助函式與測試執行指令...
official
provider-resources
hashicorp
使用 Plugin Framework 實作 Terraform Provider 資源和資料來源。在開發 CRUD 操作、架構設計、狀態管理等時使用,以及…
official
provider-test-patterns
hashicorp
使用 terraform-plugin-testing 與 Plugin Framework 撰寫驗收測試的模式。
official
provider-test-patterns
hashicorp
使用 terraform-plugin-testing 與 Plugin Framework 撰寫驗收測試的模式。
official
push-to-registry
hashicorp
將 Packer 建置中繼資料推送至 HCP Packer 註冊表,以進行映像生命週期追蹤與治理。以極低負擔在 HCP Packer 中註冊建置工件,僅儲存中繼資料(非實際映像),且建置時間增加不到一分鐘。支援儲存桶層級標籤(每次建置更新)及不可變的建置層級標籤(Git SHA、時間戳記),以實現版本控制與合規追蹤。透過 hcp_packer_artifact 資料來源與 Terraform 整合,可跨環境查詢與部署映像。
official
push-to-registry
hashicorp
將 Packer 建置中繼資料推送至 HCP Packer 註冊表,以追蹤和管理映像生命週期。在將 Packer 建置與 HCP Packer 整合以進行版本管理時使用…
official
refactor-module
hashicorp
將單體式 Terraform 配置拆分為可重複使用、結構清晰的模組,並具備明確的合約與遷移路徑。分析現有程式碼以識別重構候選項目,按邏輯功能分組資源,並在設計前評估複雜度。生成包含型別變數、驗證規則及描述性輸出的模組介面,遵循 HashiCorp 最佳實踐。提供使用 moved 區塊(Terraform 1.1+)或手動 terraform state mv 指令的狀態遷移策略...
official
refactor-module
hashicorp
將單體式 Terraform 配置轉換為可重複使用、易於維護的模組,遵循 HashiCorp 的模組設計原則與社群最佳實踐。
official
run-acceptance-tests
hashicorp
We need to translate the given text from English to Traditional Chinese. The text is about executing and diagnosing Go acceptance tests for Terraform providers. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "run-acceptance-tests" is not in the text, so we don't include it. We should not add any extra commentary or labels. The text: "Execute and diagnose Go acceptance tests for Terraform providers with structured troubleshooting. Run focused acceptance tests using go test -run=TestAccFeatureHappyPath with TF_ACC=1 environment variable Diagnose failures progressively: retry with -count=1 , enable verbose output with -v , activate debug logging via TF_LOG=debug , and persist Terraform workspace with TF_ACC_WORKING_DIR_PERSIST=1 Validate test reliability by intentionally breaking a TestCheckFunc, re-running the test to..." We need to translate this into Traditional Chinese. Keep technical terms like "go test", "TF_ACC=1", "-count=1", "-v", "TF_LOG=debug",
official
run-acceptance-tests
hashicorp
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`.
official
terraform-search-import
hashicorp
使用 Terraform Search 查詢發現現有雲端資源,並大量匯入至 Terraform 管理。適用於將未受管理的基礎設施納入管理時…
official
terraform-search-import
hashicorp
使用 Terraform Search 查詢發現現有雲端資源,並大量匯入至 Terraform 管理。適用於將未受管理的基礎設施納入管理時…
official
terraform-stacks
hashicorp
建立、驗證及管理跨環境 Terraform Stack 配置的全面指南。涵蓋 Stack 語言基礎:元件定義 (.tfcomponent.hcl)、部署實例 (.tfdeploy.hcl)、檔案組織,以及所需的 Terraform v1.13+。支援使用 for_each 於提供者與元件進行多區域及多環境部署,並具備元件間自動相依性推斷。包含工作負載身分 (OIDC) 驗證、身分權杖...
official
terraform-stacks
hashicorp
使用 HashiCorp Terraform Stacks 的全面指南。在建立、修改或驗證 Terraform Stack 配置(.tfcomponent.hcl、…)時使用。
official
terraform-style-guide
hashicorp
We need to translate the given text from English to Traditional Chinese. The text describes a skill for generating and maintaining Terraform code following HashiCorp's style conventions. It mentions specific file names, naming conventions, and requirements. We must preserve product names (Terraform, HashiCorp), protocol names, URLs, numbers, technical terms. No extra commentary. The name "terraform-style-guide" is not in the text, so we don't include it. Translate the entire <text> content. Let's break down the text: "Generate and maintain Terraform code following HashiCorp's official style conventions. Enforces two-space indentation, lowercase underscore naming, and standard file organization across terraform.tf , providers.tf , main.tf , variables.tf , outputs.tf , and locals.tf Requires type and description on all variables and outputs, with validation rules and sensitive flag support for credentials Prioritizes for_each over count for dynamic resources, applies security hardening (encryption, private..." Note: The text seems cut off at the end. We
official
terraform-style-guide
hashicorp
根據 HashiCorp 官方風格慣例與最佳實務,生成 Terraform HCL 程式碼。適用於撰寫、審查或生成 Terraform…
official
terraform-test
hashicorp
撰寫與執行 Terraform 測試的完整指南,涵蓋斷言、模擬及模組驗證。使用 .tftest.hcl 語法編寫測試檔案,透過 run 區塊在 plan 或 apply 模式下執行,支援順序與平行執行,並可選擇隔離狀態。對資源屬性、輸出及資料來源進行條件斷言;使用 expect_failures 驗證無效輸入是否被正確拒絕。模擬提供者(Terraform 1.7.0 以上版本)可模擬基礎設施行為,無需...
official
terraform-test
hashicorp
撰寫與執行 Terraform 測試的全面指南。適用於建立測試檔案(.tftest.hcl)、使用 run 區塊撰寫測試情境、驗證…
official
windows-builder
hashicorp
使用 Packer 搭配 WinRM 通訊器與 PowerShell 佈建工具來建置 Windows 映像。適用於建立 Windows AMI、Azure 映像或 VMware 範本。
official
windows-builder
hashicorp
使用 Packer 搭配 WinRM 通訊器與 PowerShell 佈建工具來建置 Windows 映像。適用於建立 Windows AMI、Azure 映像或 VMware 範本。
official