terraform-google-modules / terraform-google-project-factory

Creates an opinionated Google Cloud project by using Shared VPC, IAM, and Google Cloud APIs
https://registry.terraform.io/modules/terraform-google-modules/project-factory/google
Apache License 2.0
825 stars 533 forks source link

disable_dependent_services #196

Closed shyamgovardhan closed 5 years ago

shyamgovardhan commented 5 years ago

Error: module.host-project.module.project-factory.google_project_service.project_services: : invalid or unknown key: disable_dependent_services

cft.tfvars organization_id = "12345678790" billing_account = "AAAAA-BBBBB-CCCCC" credentials_path = "demo_credentials_20190430131031.json"

terraform.tfvars host_project_name = "shared-vpc-host-090519" network_name = "shared-vpc-net-090509"

terraform -v Terraform v0.11.13

shyamgovardhan commented 5 years ago

There error is produced when terraform plan is executed from the shared_vpc folder.

https://github.com/terraform-google-modules/terraform-google-project-factory/tree/master/examples/shared_vpc

terraform plan -var-file=cft.tfvars

aaron-lane commented 5 years ago

@ingwarr please take this issue.

ingwarr commented 5 years ago

I've took it

morgante commented 5 years ago

Hi @shyamgovardhan,

It looks like you're using a very old version of the Google Provider (1.2). Can you try upgrading to the 2.1 version of the provider and seeing if your issue is fixed?

shyamgovardhan commented 5 years ago

Thanks Morgante, It worked after changing the provider version. Could you change the provider version in the examples folder.

provider "google" { credentials = "${file(local.credentials_file_path)}" version = "~> 2.1" }

provider "google-beta" { credentials = "${file(local.credentials_file_path)}" version = "~> 2.1" }