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

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.

主站蜘蛛池模板: 洪湖市| 濮阳市| 浑源县| 桐柏县| 东安县| 禹州市| 灵宝市| 茌平县| 永州市| 永丰县| 抚松县| 松江区| 涡阳县| 辽阳市| 肃宁县| 南涧| 双桥区| 图木舒克市| 永川市| 盘锦市| 上饶市| 满城县| 嘉善县| 台江县| 罗源县| 哈巴河县| 旬邑县| 旺苍县| 乌海市| 呈贡县| 保德县| 仁化县| 阿勒泰市| 来安县| 江达县| 毕节市| 桦南县| 潮安县| 武威市| 教育| 阜南县|