You need to enable JavaScript to run this app.
导航
安装 Terraform
最近更新时间:2024.12.12 10:24:16首次发布时间:2024.12.12 10:24:16

本文介绍 Terraform 的安装配置。

注意事项

Terraform 安装时,需要安装 Provider volcengine,您可以在 Terraform 安装完成后通过执行 terraform init 命令初始化,来安装 Provider Release。详情请参见安装 Terraform
但由于 Provider Release 版本存放在海外服务器,安装可能会失败。因此火山引擎还为您提供了其他三种安装方式,详情请参见快速安装 Terraform Provider volcengine

操作步骤

进入 Terraform 官网,按照官网引导进行安装。
安装结束后,可通过执行 terraform 命令确认是否安装成功。执行后如显示以下信息,则说明安装成功。

$ terraform
Usage: terraform [global options] <subcommand> [args]
The available commands for execution are listed below.
The primary workflow commands are given first, followed by
less common or more advanced commands.
Main commands:
  init          Prepare your working directory for other commands
  validate      Check whether the configuration is valid
  plan          Show changes required by the current configuration
  apply         Create or update infrastructure
  destroy       Destroy previously-created infrastructure
All other commands:
  console       Try Terraform expressions at an interactive command promptfmt           Reformat your configuration in the standard style
  force-unlock  Release a stuck lock on the current workspace
...