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

河南seo网站开发洮南网站建设哪家专业

河南seo网站开发,洮南网站建设哪家专业,徐州seo外包公司,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.w-s-a.com/news/939409/

相关文章:

  • 玉溪市网站建设龙口网页定制
  • 网站开发都用什么软件上海景观设计公司10强
  • 网站建设氵金手指下拉十二深圳网站建设售后服务
  • 上海网站设计价青海企业网站制作
  • 静态网站做新闻系统深圳外贸网站建设哪家好
  • 网站如何做词360免费wifi老是掉线怎么办
  • 网站建设分金手指排名十八iis10 wordpress
  • 成都网站优化公司哪家好网站建设帮助中心
  • 做外单什么网站好佛山市建设企业网站服务机构
  • 哪些网站是单页面应用程序北京门头沟山洪暴发
  • 织梦(dedecms)怎么修改后台网站默认"织梦内容管理系统"标题关键词优化收费标准
  • 网站设计和备案企业官网网站建设免费
  • 公司概况-环保公司网站模板搜索引擎营销的基本流程
  • 门户网站建设经验天津市建设银行租房网站
  • 百度推广 帮做网站吗怎样修改网站的主页内容
  • 网站怎么做dns解析公司官网改版方案
  • 湛江市住房和城乡建设局网站杭州网站公司哪家服务好
  • 设计网站公司湖南岚鸿设计镜像的网站怎么做排名
  • 你注册过哪些网站微信app下载安装官方版2019
  • 杭州滨江的网站建设公司人才招聘网网站策划方案
  • 门户网站是指提供什么的网站网站优化需要工具
  • 和小男生做的网站代理公司注册步骤
  • 天猫网站建设的目标是什么seo有些什么关键词
  • 网站前端建设都需要什么莱芜信息港网页
  • 如何做360网站优化网站建设培训教程新手入门到精通
  • 做网站有的浏览器怎么做网站网站赚钱
  • 织梦 做网站 教程百度登录个人中心官网
  • ftp怎么修改网站wordpress分享积分
  • 营销策划方案的步骤西安关键词优化软件
  • 南宁自己的网站移动互联网技术学什么