当前位置: 首页 > news >正文

xp系统没有lls组件可以做网站吗百度快速优化排名软件

xp系统没有lls组件可以做网站吗,百度快速优化排名软件,长沙快速建站模板,无棣网页设计terrafrom 是一款常用来实现 IaC(基础设施即代码)的工具。通常的第一个命令往往是 terrafrom init。在执行此命令时,terrafrom 会根据已经配置好的 provdier 信息去下载安装对应云厂商的 provider。比如下面是一个腾讯云的 provider&#xff…

terrafrom 是一款常用来实现 IaC(基础设施即代码)的工具。通常的第一个命令往往是 terrafrom init。在执行此命令时,terrafrom 会根据已经配置好的 provdier 信息去下载安装对应云厂商的 provider。比如下面是一个腾讯云的 provider:

provider "tencentcloud" {secret_id  = "your-secret-id"secret_key = "your-secret-key"region     = "your-region"
}terraform {required_providers {tencentcloud = {source = "tencentcloudstack/tencentcloud"version = "1.81.70"}}
}

接着执行 terraform init

terraform initInitializing the backend...Initializing provider plugins...
- Finding tencentcloudstack/tencentcloud versions matching "1.81.70"...
╷
│ Error: Failed to install provider
│
│ Error while installing tencentcloudstack/tencentcloud v1.81.70: could not query provider registry for registry.terraform.io/tencentcloudstack/tencentcloud: failed to
│ retrieve authentication checksums for provider: the request failed after 2 attempts, please try again later: Get
│ "https://github.com/tencentcloudstack/terraform-provider-tencentcloud/releases/download/v1.81.70/terraform-provider-tencentcloud_1.81.70_SHA256SUMS": net/http: request
│ canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

可以看到,由于要连接 github 去下载对应版本的 plugin。但是 github 在国内访问有网络问题,所以就发生了 timeout 的错误。

查看了 terrafrom 文档后发现 init 是有一个 -plugin-dir 参数的,也就是说可以先将 provider 所需的 plugin 下载下来,然后在执行 init 命令的时候指定该路径即可。但是在尝试之后,会报错:

terraform init -plugin-dir=/root/.terraform.d/pluginsInitializing the backend...Initializing provider plugins...
- Finding tencentcloudstack/tencentcloud versions matching "1.81.70"...
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider tencentcloudstack/tencentcloud: provider registry.terraform.io/tencentcloudstack/tencentcloud was not
│ found in any of the search locations
│
│   - /root/.terraform.d/plugins

最后在腾讯云官方找到了一劳永逸的解决方案。

具体来说,就是设置国内能够访问的 terrafrom registry 源。terraform 默认的 registry 源是 registry.terraform.io。只需要把这个源换成国内可访问的即可。

在用户目录下创建一个 .terrafromrc 文件,写入如下内容:

provider_installation {network_mirror {url = "https://mirrors.tencent.com/terraform/"// 限制只有腾讯云相关Provider, 从url中指定镜像源下载include = ["registry.terraform.io/tencentcloudstack/*"]}direct {// 声明除了腾讯云相关Provider, 其它Provider依然从默认官方源下载exclude = ["registry.terraform.io/tencentcloudstack/*"]}
}

接着重新执行 init 命令即可:

terraform initInitializing the backend...Initializing provider plugins...
- Finding tencentcloudstack/tencentcloud versions matching "1.81.70"...
- Installing tencentcloudstack/tencentcloud v1.81.70...
- Installed tencentcloudstack/tencentcloud v1.81.70 (verified checksum)Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.╷
│ Warning: Incomplete lock file information for providers
│
│ Due to your customized provider installation methods, Terraform was forced to calculate lock file checksums locally for the following providers:
│   - tencentcloudstack/tencentcloud
│
│ The current .terraform.lock.hcl file only includes checksums for linux_amd64, so Terraform running on another platform will fail to install these providers.
│
│ To calculate additional checksums for another platform, run:
│   terraform providers lock -platform=linux_amd64
│ (where linux_amd64 is the platform to generate)
╵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.

timeout 的问题就此得到解决。

http://www.yidumall.com/news/56183.html

相关文章:

  • 郑州做公司网站营销网站优化推广
  • 优秀购物网站搜索引擎优化的作用
  • 公司网站的专题策划网站建设建站在线建站
  • 大连网站哪家做的好?itme收录优美图片官网
  • 做亚马逊有哪些站外折扣网站太原seo关键词排名
  • 武安市住房和城乡规划建设局网站最新国际新闻头条新闻
  • 网站的颜色搭配竞价排名
  • 个人网站做镜像攀枝花seo
  • 站长工具5118衡阳seo优化
  • 湖北网站科技建设seo是什么职位简称
  • 做网站网络如何做网站seo
  • 爱站工具维护台州做优化
  • 手机网站的价值aso应用优化
  • 怎么看网站有没有做推广微信推广怎么弄
  • 做网站有什么语言好网站的优化从哪里进行
  • 个人网站制作视频优化服务公司
  • 淮北网站制作app推广工作靠谱吗
  • 最优惠的郑州网站建设微信引流推广精准粉
  • 备案 网站名求好用的seo软件
  • 建设网站的法律可行性百度关键字优化价格
  • 网站切图怎么切企业seo排名外包
  • 平面设计师的前景和收入百度推广seo自学
  • 亦庄网站开发狼雨seo网站
  • 宁波哪里可以做网站链接购买
  • wordpress themememe wpex南昌seo排名
  • 网站建设的毕业报告seo排名查询工具
  • php的网站模板下载百度app登录
  • 网站做滚动图刷移动关键词优化
  • 专业创业服务平台网站建设需求网站系统
  • mindmanager网站建设流程图百度网址大全下载