小编Sha*_*asi的帖子

当我从 plan -out=file 执行 terraform apply 时,依赖性不一致

我正在尝试使用远程后端在 GCP 上创建新资源\n执行 terraform init plan -out=tfplan 然后 terraform apply tfplan 后,出现以下错误:

\n
Error: Inconsistent dependency lock file\n\xe2\x94\x82 \n\xe2\x94\x82 The following dependency selections recorded in the lock file are\n\xe2\x94\x82 inconsistent with the configuration in the saved plan:\n\xe2\x94\x82 Terraform 0.13 and earlier allowed provider version constraints inside the\n\xe2\x94\x82 provider configuration block, but that is now deprecated and will be\n\xe2\x94\x82 removed in a future version of Terraform. To silence this warning, move the\n\xe2\x94\x82 provider version constraint into the required_providers block.\n\xe2\x94\x82 \n\xe2\x94\x82 (and …
Run Code Online (Sandbox Code Playgroud)

lockfile terraform hashicorp

12
推荐指数
2
解决办法
5万
查看次数

标签 统计

hashicorp ×1

lockfile ×1

terraform ×1