
Terraform
CLIHashiCorp 出品的基础设施即代码工具,用声明式配置管理多云与 SaaS 资源,先 plan 预览变更再 apply 执行,provider 覆盖主流云厂商。采用 BSL 1.1 许可。
Terraform
- Website: https://developer.hashicorp.com/terraform
- Forums: HashiCorp Discuss
- Documentation: https://developer.hashicorp.com/terraform/docs
- Tutorials: HashiCorp's Learn Platform
- Certification Exam: HashiCorp Certified: Terraform Associate
Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.
The key features of Terraform are:
-
Infrastructure as Code: Infrastructure is described using a high-level configuration syntax. This allows a blueprint of your datacenter to be versioned and treated as you would any other code. Additionally, infrastructure can be shared and re-used.
-
Execution Plans: Terraform has a "planning" step where it generates an execution plan. The execution plan shows what Terraform will do when you call apply. This lets you avoid any surprises when Terraform manipulates infrastructure.
-
Resource Graph: Terraform builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, Terraform builds infrastructure as efficiently as possible, and operators get insight into dependencies in their infrastructure.
-
Change Automation: Complex changesets can be applied to your infrastructure with minimal human interaction. With the previously mentioned execution plan and resource graph, you know exactly what Terraform will change and in what order, avoiding many possible human errors.
For more information, refer to the What is Terraform? page on the Terraform website.
Getting Started & Documentation
Documentation is available on the Terraform website:
If you're new to Terraform and want to get started creating infrastructure, please check out our Getting Started guides on HashiCorp's learning platform. There are also additional guides to continue your learning.
Show off your Terraform knowledge by passing a certification exam. Visit the certification page for information about exams and find study materials on HashiCorp's learning platform.
Developing Terraform
This repository contains only Terraform core, which includes the command line interface and the main graph engine. Providers are implemented as plugins, and Terraform can automatically download providers that are published on the Terraform Registry. HashiCorp develops some providers, and others are developed by other organizations. For more information, refer to Plugin development.
-
To learn more about compiling Terraform and contributing suggested changes, refer to the contributing guide.
-
To learn more about how we handle bug reports, refer to the bug triage guide.
-
To learn how to contribute to the Terraform documentation, refer to the Web Unified Docs repository.
License
相关资源

Terraform
PluginHashiCorp 官方 Terraform 插件:用 Docker 运行 Terraform MCP Server,对接 Terraform Registry 与 HCP Terraform API,查询 Provider 与模块文档并辅助编写 IaC。需 Docker,可选 TFE_TOKEN。
anthropics/claude-plugins-official40.4k
Terraform MCP Server
MCPHashiCorp 官方:查询 Terraform Registry 的 provider、模块与策略文档,辅助编写 IaC;配置 HCP Terraform 令牌后还能管理工作区、变量与运行。默认以 Docker 运行。
hashicorp/terraform-mcp-server1.6k
HashiCorp Agent Skills
SkillHashiCorp 官方 Terraform 与 Packer 技能集:按官方风格写 HCL、模块重构、terraform test、Provider 开发、Stacks 与策略,以及 AWS/Azure 镜像构建。
hashicorp/agent-skills898
HashiCorp Agent Skills
PluginHashiCorp 官方插件市场:terraform 插件含 16 个技能(配置编写、模块、Provider 开发、测试、导入、Stacks 与策略),packer 插件含 4 个镜像构建与 HCP Packer 技能。
hashicorp/agent-skills898
OpenTofu
CLI开源的基础设施即代码工具,Terraform 的社区分支:用声明式配置描述云资源,先 plan 生成执行计划再 apply 变更,并按依赖图并行创建资源。社区治理,MPL-2.0 许可。
opentofu/opentofu30.5k
Infracost
CLI在部署前估算 Terraform、Terragrunt、CloudFormation 与 AWS CDK 变更的云资源费用,并按 FinOps 策略做检查,可接入终端、编辑器、AI agent 与 CI。需登录 Infracost 账号,有免费额度。
infracost/infracost12.6k