terraform init命令会把我们用到的Provider插件下载好,terraform apply命令会根据我们的main.tf描述文件计算出需要执行的操作。上述日志中显示将会创建一个alicloud_cs_managed_kubernetes.default的资源,需要我们输入yes来确认创建。确认创建后,创建大约会耗时五分钟,terraform会输出类似下面的日志。
rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you todosoifnecessary. 这确保了文件能够及时反映当前项目所依赖的资源的最新版本信息。 当Terraform 执行初始化(terraform init)等操作时,会根据versions.tf里的要求去查找并下载符合条件的具体版...
[user@test terraform-test]#terraform init Initializing provider plugins... - Checkingforavailable provider pluginsonhttps://releases.hashicorp.com... - Downloading pluginforprovider"alicloud"(1.25.0)... The following providersdonot have anyversionconstraints in configuration,sothe latestversionwas insta...
- task:charleszipp.azure-pipelines-tasks-terraform.azure-pipelines-tasks-terraform-cli.TerraformCLI@0displayName:'Run terraform init'inputs:command:initworkingDirectory:$(terraformWorkingDirectory) 重點︰ 輸入command會指定要執行的 Terraform 命令。
you run "terraform init" in the future. Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands ...
selections by default when you run "terraform init" in the future. _Terraform has been successfully initialized! ⇽--- 我们真正关心的只有这条信息 __ You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for yourinfrastructure. All Terrafo...
执行terraform init 则会依照版本要求下载最新的插件,存放路径为当前目录的 .terraform 将来要使用其他插件,也是在此文件定义插件版本,执行 init 命令自动下载插件 mkdir test cd test/ # 新建 providers.tf 文件 [root@centos8 test]# cat providers.tf
To initialize the Terraform deployment, runterraform initfrom the working directory containing Terraform configuration files. This command downloads the Azure modules required to create an Azure resource group. Return to the Cloud Shell. It's OK to close Cloud Shell...
并在该目录里做terraform init: 代码语言:txt 复制 ➜ tencent-cloud terraform init Initializing the backend... Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "tencentcloud" (terraform-providers/tencentcloud) 1.16.0... ...
you run "terraform init" in the future. Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands ...