【发布时间】:2022-08-04 00:31:26
【问题描述】:
每次我运行 terraform 命令时,它都会首先自动运行init。我在 Azure 存储帐户中使用远程状态。这似乎是在几个月没有接触该项目后随机开始的。
否则一切正常,但它很烦人并且减慢了我们的速度。
有什么方法可以调试为什么会发生这种情况以便我可以修复它?
myhost$ terraform plan
Initializing the backend...
Initializing provider plugins...
- Reusing previous version of hashicorp/azuread from the dependency lock file
- Reusing previous version of hashicorp/random from the dependency lock file
- Reusing previous version of azure/azapi from the dependency lock file
- Reusing previous version of hashicorp/azurerm from the dependency lock file
- Using previously-installed hashicorp/azuread v2.26.1
- Using previously-installed hashicorp/random v3.1.3
- Using previously-installed azure/azapi v0.4.0
- Using previously-installed hashicorp/azurerm v3.14.0
Terraform has been successfully initialized!
版本信息:
Terraform v1.2.4
on windows_amd64
+ provider registry.terraform.io/azure/azapi v0.4.0
+ provider registry.terraform.io/hashicorp/azuread v2.26.1
+ provider registry.terraform.io/hashicorp/azurerm v3.14.0
+ provider registry.terraform.io/hashicorp/random v3.1.3
-
这不是默认行为,甚至不是内在行为,因此这里必须发生某种包装器、别名、环境覆盖等。
-
@MattSchuchard 谢谢你,这很有帮助,我现在看到 terraform 别名为 terragrunt 所以我猜这是罪魁祸首
-
刚刚在一个新租户上使用了同样的 TF 项目,它表现出同样的问题。已升级 terragrunt 和提供程序无济于事。
标签: terraform terraform-provider-azure