{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/596","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/596/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/596/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/596/events","html_url":"https://github.com/terraform-providers/terraform-provider-google/issues/596","id":266072413,"number":596,"title":"google_project_services inconsistent behaviour","user":{"login":"hashibot","id":26720499,"avatar_url":"https://avatars1.githubusercontent.com/u/26720499?v=4","gravatar_id":"","url":"https://api.github.com/users/hashibot","html_url":"https://github.com/hashibot","followers_url":"https://api.github.com/users/hashibot/followers","following_url":"https://api.github.com/users/hashibot/following{/other_user}","gists_url":"https://api.github.com/users/hashibot/gists{/gist_id}","starred_url":"https://api.github.com/users/hashibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashibot/subscriptions","organizations_url":"https://api.github.com/users/hashibot/orgs","repos_url":"https://api.github.com/users/hashibot/repos","events_url":"https://api.github.com/users/hashibot/events{/privacy}","received_events_url":"https://api.github.com/users/hashibot/received_events","type":"User","site_admin":false},"labels":[{"id":620326519,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/labels/bug","name":"bug","color":"f7c6c7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-17T10:26:38Z","updated_at":"2017-10-23T13:09:33Z","closed_at":null,"author_association":"NONE","body":"_This issue was originally opened by @jp as hashicorp/terraform#16341. It was migrated here as a result of the [provider split](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/). The original body of the issue is below._\r\n\r\n<hr>\r\n\r\nHi there,\r\n\r\nI'm having some issues with an inconsistent behaviour of the google_project_services module.\r\nI want to restrict a GCP project to only three services, but terraform will not comply.\r\n\r\n### Terraform Version\r\n```\r\nTerraform v0.10.7 \r\n```\r\n### Terraform Configuration Files\r\n```hcl\r\n\r\nvariable \"gcp_services\" {\r\n  default = [\r\n    \"container.googleapis.com\",\r\n    \"compute.googleapis.com\",\r\n    \"servicemanagement.googleapis.com\",\r\n  ]\r\n}\r\n\r\nresource \"google_project_services\" \"project\" {\r\n  project = \"terraform-test-project\"\r\n  services   = \"${var.gcp_services}\"\r\n}\r\n\r\n```\r\n\r\n### Expected Behavior\r\nAfter apply the TF file above I should find the following result:\r\n```\r\n$ gcloud service-management list --enabled\r\nNAME                               TITLE\r\ncompute.googleapis.com             Google Compute Engine API\r\ncontainer.googleapis.com           Google Container Engine API\r\nservicemanagement.googleapis.com   Google Service Management API\r\n```\r\n\r\n### Actual Behavior\r\nAfter running terraform apply, I'm either having those services enabled:\r\n```\r\n$ gcloud service-management list --enabled\r\nNAME                               TITLE\r\ndeploymentmanager.googleapis.com   Google Cloud Deployment Manager V2 API\r\ncontainerregistry.googleapis.com   Google Container Registry API\r\ncompute.googleapis.com             Google Compute Engine API\r\npubsub.googleapis.com              Google Cloud Pub/Sub API\r\ncontainer.googleapis.com           Google Container Engine API\r\nservicemanagement.googleapis.com   Google Service Management API\r\nstorage-api.googleapis.com         Google Cloud Storage JSON API\r\nresourceviews.googleapis.com       Google Compute Engine Instance Groups API\r\nreplicapool.googleapis.com         Google Compute Engine Instance Group Manager API\r\nreplicapoolupdater.googleapis.com  Google Compute Engine Instance Group Updater API\r\n```\r\n\r\nOr those services:\r\n```\r\n$ gcloud service-management list --enabled\r\nNAME                              TITLE\r\nservicemanagement.googleapis.com  Google Service Management API\r\ncompute.googleapis.com            Google Compute Engine API\r\n```\r\n\r\n### Steps to Reproduce\r\nPlease list the full steps required to reproduce the issue, for example:\r\n1. `terraform init`\r\n2. `terraform apply`\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/comments/338653317","html_url":"https://github.com/terraform-providers/terraform-provider-google/issues/596#issuecomment-338653317","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-google/issues/596","id":338653317,"user":{"login":"eilgin","id":1125661,"avatar_url":"https://avatars0.githubusercontent.com/u/1125661?v=4","gravatar_id":"","url":"https://api.github.com/users/eilgin","html_url":"https://github.com/eilgin","followers_url":"https://api.github.com/users/eilgin/followers","following_url":"https://api.github.com/users/eilgin/following{/other_user}","gists_url":"https://api.github.com/users/eilgin/gists{/gist_id}","starred_url":"https://api.github.com/users/eilgin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eilgin/subscriptions","organizations_url":"https://api.github.com/users/eilgin/orgs","repos_url":"https://api.github.com/users/eilgin/repos","events_url":"https://api.github.com/users/eilgin/events{/privacy}","received_events_url":"https://api.github.com/users/eilgin/received_events","type":"User","site_admin":false},"created_at":"2017-10-23T13:09:33Z","updated_at":"2017-10-23T13:09:33Z","author_association":"NONE","body":"Besides, i found that some APIs enabled \"private APIs\" such as \"storage.googleapis.com\" which prevents me from deleting the project since i don't have permissions to disable those private services."}}
{"actor":{"display_login":"eilgin"}}