terraform尝试安装模块或子模块中未描述的提供程序

terraform尝试安装模块或子模块中未描述的提供程序,terraform,Terraform,下面是我的terraform init和terraform providers输出。我甚至没有提到任何名为“web”的提供商,但它仍在尝试安装。同样,我在“terraform-v”的输出中没有得到相同的模块 不知道以前还试过什么。如果删除.terraform文件夹并重试,您会得到什么。如果搜索 提供程序无法下载 如果您没有在TF中的任何地方指定它,请完全删除.terraform并再次尝试初始化您可以共享terraform代码吗 haresh@haresh:~/Downloads/cpinfra/

下面是我的terraform init和terraform providers输出。我甚至没有提到任何名为“web”的提供商,但它仍在尝试安装。同样,我在“terraform-v”的输出中没有得到相同的模块


不知道以前还试过什么。如果删除.terraform文件夹并重试,您会得到什么。

如果搜索 提供程序无法下载


如果您没有在TF中的任何地方指定它,请完全删除.terraform并再次尝试初始化

您可以共享terraform代码吗
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