terraform - terraform 尝试安装未在模块或子模块中的任何地方描述的提供程序
问题描述
下面是我的 terraform init 和 terraform providers 输出。我什至没有提到任何名为“web”的提供程序仍在尝试安装。同样的模块我没有得到“terraform -v”的输出
haresh@haresh:~/Downloads/cpinfra/terraform$ terraform init
Initializing modules...
Initializing the backend...
Initializing provider plugins...
- Using previously-installed hashicorp/local v1.4.0
- Using previously-installed hashicorp/tls v2.2.0
- Using previously-installed hashicorp/aws v3.14.1
- Finding latest version of hashicorp/web...
Error: Failed to install provider
Error while installing hashicorp/web: provider registry registry.terraform.io
does not have a provider named registry.terraform.io/hashicorp/web
haresh@haresh:~/Downloads/cpinfra/terraform$
haresh@haresh:~/Downloads/cpinfra/terraform$
haresh@haresh:~/Downloads/cpinfra/terraform$
haresh@haresh:~/Downloads/cpinfra/terraform$ terraform providers
Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/external] ~> 1.2
├── provider[registry.terraform.io/hashicorp/local] ~> 1.4
├── provider[registry.terraform.io/hashicorp/null] ~> 2.1
├── provider[registry.terraform.io/hashicorp/random] ~> 2.2
├── provider[registry.terraform.io/hashicorp/aws]
├── provider[registry.terraform.io/hashicorp/web]
├── provider[registry.terraform.io/hashicorp/tls] ~> 2.1
haresh@haresh:~/Downloads/cpinfra/terraform$ terraform -v
Terraform v0.13.2
+ provider registry.terraform.io/hashicorp/aws v3.14.1
+ provider registry.terraform.io/hashicorp/external v1.2.0
+ provider registry.terraform.io/hashicorp/local v1.4.0
+ provider registry.terraform.io/hashicorp/null v2.1.2
+ provider registry.terraform.io/hashicorp/random v2.3.1
+ provider registry.terraform.io/hashicorp/tls v2.2.0
解决方案
如果您搜索https://registry.terraform.io 该提供程序无法下载。
如果您没有在 TF 中的任何地方指定它,请完全删除 .terraform 并尝试再次初始化
推荐阅读
- css - CSS Grid:无法自动调整工作
- jasonette - 如何在不水平滚动的情况下将 html 页面设置为 $webcontainer
- html - 将 Django 模板中的多个文件名传递给 python 中的视图
- c# - 打破 Hub 中的无限循环
- python - 如何从 Paperspace Free GPU 下载 kaggle 数据集
- javascript - 有什么方法可以用 JS 给很多用户创建邮件?
- c# - 如何使用 Coypu 和 C# 获取 InnerText?
- javascript - 如何在反应表中添加新的可编辑文本字段行?
- android - FCM 在我的活动中每次都生成相同的令牌
- javascript - 轴 #0 的数据列不能是字符串类型 Javascript 错误