GoogleCloudPlatform / terraform-google-managed-instance-group

Modular Google Compute Engine managed instance group for Terraform.
Apache License 2.0
63 stars 138 forks source link

project is not set for google_compute_zones #20

Closed Yanson closed 6 years ago

Yanson commented 6 years ago

Error: data.google_compute_zones.available: project: required field is not set

Fix: Project should be set here: https://github.com/GoogleCloudPlatform/terraform-google-managed-instance-group/blob/master/main.tf#L124

E.g.:

data "google_compute_zones" "available" {
  region = "${var.region}"
  project = "${var.project}"
}
Yanson commented 6 years ago

FYI

$ terraform -version
Terraform v0.11.7
+ provider.google v1.16.0
danisla commented 6 years ago

Thanks for reporting, and for fixing! Fixed with #21

MicroMicroZhang commented 6 years ago

you also can add the project in provider, so that you do not need to add project in each data section.