官术网_书友最值得收藏!

  • Learning DevOps
  • Mikael Krief
  • 146字
  • 2021-06-24 12:32:06

Initialization

The initialization step allows Terraform to do the following:

  • Initialize the Terraform context to check and make the connection between the Terraform provider and remote service—in our case, with Azure.
  • Download the plugin(s) of the provider(s)—in our case, it will be the azurerm provider.
  • Check the code variables.

To execute the initialization, run the init command:

terraform init

The following is a screenshot of terraform init:

As can be seen during its execution of the preceding command, Terraform does the following:

  • It downloads the latest version of the azurerm plugin.
  • It creates a working .terraform directory.

The following is a screenshot of the .terraform directory:

For more information about the init command line, see the documentation: https://www.terraform.io/docs/commands/init.html.

Once the initialization step is done, we can proceed to the next step, which is previewing the changes.

主站蜘蛛池模板: 祁东县| 肇东市| 通道| 平泉县| 浑源县| 佛坪县| 富平县| 敦煌市| 内江市| 武平县| 广灵县| 边坝县| 泰来县| 石渠县| 涞水县| 茌平县| 白银市| 永新县| 台南县| 蓝山县| 武功县| 无极县| 百色市| 石景山区| 鲁山县| 长武县| 庆阳市| 三原县| 武定县| 犍为县| 贵州省| 凭祥市| 安丘市| 利津县| 东乌珠穆沁旗| 镇坪县| 建始县| 康保县| 太白县| 全州县| 浦县|