标签: terraform-provider

去安装 github.com/dmacvicar/terraform-provider-libvirt@latest - 显示错误

我正在尝试使用 Terraform 在 KVM 上配置虚拟机。安装的步骤之一是下载并安装提供程序,购买命令:

去安装 github.com/dmacvicar/terraform-provider-libvirt@latest

但它错误:

提供命名包的模块的 go.mod 文件包含一个或多个替换指令。它不得包含会导致其解释方式与主模块不同的指令。

我没有找到解决办法,有人遇到过吗?谢谢

kvm libvirt go terraform-provider

8
推荐指数
1
解决办法
4690
查看次数

在 terraform 中为 azure-devops 和 mysql 提供程序使用第三方提供程序时出现问题

在执行 terraform init 时出现错误,按照 terraform 官方文档,我尝试通过 terraform 创建 azure-pipeline 并为其创建了模块,但无法初始化,如果我直接在 .tf 文件中传递它,它的工作正常,但是添加到模块时,terraform init 命令本身失败。

\n
\xe2\x95\xb7\n\xe2\x94\x82 Error: Failed to query available provider packages\n\xe2\x94\x82\n\xe2\x94\x82 Could not retrieve the list of available versions for provider hashicorp/mysql: provider registry registry.terraform.io does not have a provider named       \n\xe2\x94\x82 registry.terraform.io/hashicorp/mysql\n\xe2\x94\x82\n\xe2\x94\x82 Did you intend to use terraform-providers/mysql? If so, you must specify that source address in each module which requires that provider. To see which       \n\xe2\x94\x82 modules are currently depending on hashicorp/mysql, run the following command:\n\xe2\x94\x82 …
Run Code Online (Sandbox Code Playgroud)

terraform terraform-provider-azure terraform-provider

3
推荐指数
1
解决办法
2164
查看次数