gpt4 book ai didi

api - 执行 terraform : Incompatible API version with plugin. 插件版本 : 4, 客户端版本时出现 Terraform 错误消息:[5]

转载 作者:行者123 更新时间:2023-12-04 22:25:53 25 4
gpt4 key购买 nike

terraform plan -var-file=xx给我

Failed to instantiate provider "aws" to obtain schema: Incompatible API version with the plugin. Plugin version: 4, Client versions: [5]


terraform init没有任何问题。
Initializing the backend...

Initializing provider plugins...

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
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.


任何人都知道这里发生了什么,我该如何解决这个问题。
terraform -v
Terraform v0.12.0-dev
+ provider.aws v1.2.0

最佳答案

如果您在一个项目上在 0.11 和 0.12 之间更改了 Terraform 的版本,则您已经下载了 0.11 的插件并且现在使用的是 0.12 版本。

在项目根目录中,

    $ rm -rf .terraform
$ terraform init

它实际上会下载 Terraform 12 的插件版本。
Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "aws" (terraform-providers/aws) 2.13.0...
- ```

关于api - 执行 terraform : Incompatible API version with plugin. 插件版本 : 4, 客户端版本时出现 Terraform 错误消息:[5],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55649859/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com