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