首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >CVM运行Terraform init 报错?

CVM运行Terraform init 报错?

提问于 2022-09-06 09:24:06
回答 1关注 0查看 222

在provider.tf 中

代码语言:js
复制
terraform {
  required_providers {
    tencentcloud = {
      source = "tencentcloudstack/tencentcloud"
      #version = "1.77.6"
    }
  }
}

但在CVM上运行terraform init时出现如下报错。

代码语言:js
复制
ubuntu@VM-0-6-ubuntu:~/tencentcloud$ terraform init

Initializing the backend...

Initializing provider plugins...
- Finding latest version of tencentcloudstack/tencentcloud...
╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider tencentcloudstack/tencentcloud: could not connect to registry.terraform.io:
│ Failed to request discovery document: Get "https://registry.terraform.io/.well-known/terraform.json": net/http: request canceled while
│ waiting for connection (Client.Timeout exceeded while awaiting headers)

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档