小编Dav*_*ide的帖子

使用 Terraform Plan 和 Google Provider 时出现错误“无法确定区域”

当我执行“地形计划”时,出现以下错误:

\n
\n

\xe2\x94\x82 错误:无法确定区域:在此资源中设置,或设置提供程序级别的“区域”或“区域”。
\n\xe2\x94\x82
\n\xe2\x94\x82
\n\xe2\x94\x82 错误:无法确定区域:在此资源中设置,或设置提供程序级别“区域”或“区域”。
\n\xe2\x94\x82
\n\xe2\x94\x82
\n操作失败:运行 terraform 计划失败(退出 1)

\n
\n

我的提供商看起来像这样

\n
provider "google" { \n  project = "test" \n  region = "europe-west2" \n  zone = "europe-west2-c"\n}\n
Run Code Online (Sandbox Code Playgroud)\n

资源的一个例子是

\n
resource "google_bigquery_dataset" "test" {\n  location = "EU"\n  dataset_id = "test"\n  friendly_name = "test"\n}\n
Run Code Online (Sandbox Code Playgroud)\n

google-cloud-platform terraform

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

标签 统计

google-cloud-platform ×1

terraform ×1