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

江西锦宇建设集团有限公司网站小程序如何推广

江西锦宇建设集团有限公司网站,小程序如何推广,wordpress免费强大主题,钦州市网站建设terrafrom 是一款常用来实现 IaC#xff08;基础设施即代码#xff09;的工具。通常的第一个命令往往是 terrafrom init。在执行此命令时#xff0c;terrafrom 会根据已经配置好的 provdier 信息去下载安装对应云厂商的 provider。比如下面是一个腾讯云的 provider#xff…terrafrom 是一款常用来实现 IaC基础设施即代码的工具。通常的第一个命令往往是 terrafrom init。在执行此命令时terrafrom 会根据已经配置好的 provdier 信息去下载安装对应云厂商的 provider。比如下面是一个腾讯云的 provider provider tencentcloud {secret_id your-secret-idsecret_key your-secret-keyregion your-region }terraform {required_providers {tencentcloud {source tencentcloudstack/tencentcloudversion 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 -platformlinux_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.yayakq.cn/news/1451/

相关文章:

  • 在线制作手机网站mukioplayerwp wordpress
  • wordpress设置多站点微信链接制作软件
  • 网站建设和网站设计一样吗甘肃省住房和城乡建设厅网站职称证查询
  • 鞍山网站制作一般多少钱wordpress多国语言设置
  • 互联网网站解决方案私密浏览器免费版图片
  • 网站代理备案步骤网站设计公司杭州
  • wordpress 网站积分打赏找做牙工作上哪个网站
  • 网站论坛建设网络营销资格证网络营销证书
  • 世纪佳缘网站开发公司建设部二级结构工程师注销网站
  • 中国乐清做网站需要找人优化吗
  • 网站会员注册系统源码北京智能模板建站
  • 山西做网站运营的公司网站没更新
  • 学ps做兼职的网站有哪些做网站设计赚钱吗
  • 美食网站开发步骤如何百度搜索到自己的网站
  • iis 多网站安全设置淘宝详情页模板
  • asp.net搭建网站搭建棋牌工具
  • 文库网站开发建设seochinaz查询
  • 国外做的好的医疗网站阿里云wordpress root
  • 现在网站建设用到哪些技术wordpress右侧悬浮搜索菜单
  • 容县网站开发上海装修网站大全
  • 微企免费网站建设微信h5的制作方法
  • 免得做网站智能建设网站
  • 循化网站建设公司济宁建设工程信息网站
  • 网站建设及 维护电子产品外贸交易平台
  • 微网站免费开发平台手机优化助手怎么删除
  • 北京网站建设公司司文创产品设计作品欣赏
  • 网站撤销备案个人怎么注册公司需要多少钱
  • 网站专题页面设计欣赏wordpress网站如何app
  • 自己做的视频可以传别的网站去吗广州商务网站建设电话
  • 提供网站建设服务菜谱分享网站开发开题报告