Google Could Deployment Manager 中的资源级错误

Google Could Deployment Manager 中的资源级错误

我想使用 Google Cloud 中的 Deployment Manager 创建 VPC。运行配置文件后,我收到以下错误。

create-production-vpc has resource level errors
griffin-prod-wp: {"ResourceType":"gcp-types/compute-v1:subnetworks","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Request contains an invalid argument.","status":"INVALID_ARGUMENT","statusMessage":"Bad Request","requestPath":"https://compute.googleapis.com/compute/v1/projects/qwiklabs-gcp-04-d836b08ea5ea/regions/us-east1-b/subnetworks","httpMethod":"POST"}}
griffin-prod-mgmt: {"ResourceType":"gcp-types/compute-v1:subnetworks","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Request contains an invalid argument.","status":"INVALID_ARGUMENT","statusMessage":"Bad Request","requestPath":"https://compute.googleapis.com/compute/v1/projects/qwiklabs-gcp-04-d836b08ea5ea/regions/us-east1-b/subnetworks","httpMethod":"POST"}}

配置文件在这里gs://cloud-training/gsp321/dm

答案1

从错误消息来看,您在创建 VCP 子网时可能使用了区域而不是区域。在 GCP 中,VPC 子网是区域资源。

错误 - /regions/us-east1-b/subnetworks- us-east1-b 是一个区域,等效区域应为 us-east1,如下所示/regions/us-east1/subnetworks

相关内容