小编sta*_*ner的帖子

Terraform 初始化失败。错误:无法查询可用的提供程序包

安装的 terraform 和 init 失败。

\n
- Finding hashicorp/aws versions matching "~> 4.16"...\n\xe2\x95\xb7\n\xe2\x94\x82 Error: Failed to query available provider packages\n\xe2\x94\x82 \n\xe2\x94\x82 Could not retrieve the list of available versions for provider hashicorp/aws: could not connect to registry.terraform.io: Failed to request discovery document: Get\n\xe2\x94\x82 "https://registry.terraform.io/.well-known/terraform.json": x509: \xe2\x80\x9ccf-registry.tf-registry-prod-use1.terraform.io\xe2\x80\x9d certificate is not standards compliant\n
Run Code Online (Sandbox Code Playgroud)\n
terraform {\n  required_providers {\n    aws = {\n      source  = "hashicorp/aws"\n      version = "~> 4.16"\n    }\n  }\n\n  required_version = ">= 1.2.0"\n}\n\nprovider "aws" {\n  region  = "us-west-2"\n}\n\nresource "aws_instance" "app_server" {\n …
Run Code Online (Sandbox Code Playgroud)

infrastructure terraform terraform-provider-aws hashicorp

5
推荐指数
1
解决办法
2306
查看次数