【发布时间】:2021-11-05 16:56:40
【问题描述】:
我拥有最新的 Google Cloud Platform (GCP) Cloud SDK (gcloud):
gcloud version
#=>
Google Cloud SDK 356.0.0
beta 2021.09.03
bq 2.0.71
core 2021.09.03
gsutil 4.67
以及最新的 Terraform CLI (terraform):
terraform version
#=>
Terraform v1.0.6
已安装。当我尝试 apply、plan 或 refresh 一个 Terraformed Google Kubernetes Engine (GKE) 集群时:
terraform plan -target=google_container_cluster.test
#=>
google_container_cluster.test: Refreshing state... [id=projects/. . ./test]
╷
│ Error: Error when reading or editing Container Cluster "test": Get "https://container.googleapis.com/v1beta1/projects/. . ./test?alt=json&prettyPrint=false": dial tcp [xxxx:xxxx:xxxx:xxx::xxx]:443: connect: no route to host
│
│ with google_container_cluster.test,
│ on container_cluster.tf line 1, in resource "google_container_cluster" "test":
│ 1: resource "google_container_cluster" "test" {
│
╵
我遇到了上面的错误。
为什么?
【问题讨论】:
标签: google-cloud-platform terraform terraform-provider-gcp