【发布时间】:2018-06-29 12:16:16
【问题描述】:
这是setup.tf
data "google_compute_network" "selected" {
name = "${var.network}"
}
这是非常基本的。我只想在 Google Cloud 中创建一个网络。 我运行这个:
terraform apply -var 'network=net1'
但我仍然收到如下错误:
Error: resource 'data.google_compute_network.selected' config: unknown variable referenced: 'network'; define it with a 'variable' block
当我没有像预期的那样在作品中使用变量时。
【问题讨论】:
标签: google-cloud-platform terraform