Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot apply google_bigquery_dataset_access #6176

Closed
rlopezl-c4 opened this issue Apr 23, 2020 · 4 comments
Closed

Cannot apply google_bigquery_dataset_access #6176

rlopezl-c4 opened this issue Apr 23, 2020 · 4 comments
Assignees
Labels
bug forward/review In review; remove label to forward service/bigquery

Comments

@rlopezl-c4
Copy link

rlopezl-c4 commented Apr 23, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

Terraform v0.12.24

Affected Resource(s)

  • google_bigquery_dataset_access

Terraform Configuration Files

terraform {
  required_version = ">=0.12.16"
  backend "gcs" {}
}

provider "google" {
  version     = "3.18.0"
  region      = var.gcp_region
}

resource "google_bigquery_dataset_access" "access" {
  project        = lookup(var.projects, var.project)
  dataset_id     = var.dataset_id
  role           = var.dataset_access_role
  group_by_email = var.members
}

Debug Output

2020/04/23 15:57:30 [INFO] Terraform version: 0.12.24
2020/04/23 15:57:30 [INFO] Go runtime version: go1.12.13
2020/04/23 15:57:30 [INFO] CLI args: []string{"/usr/bin/terraform", "output", "-json"}
2020/04/23 15:57:30 [DEBUG] Attempting to open CLI config file: /home/rlopez/.terraformrc
2020/04/23 15:57:30 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/04/23 15:57:30 [INFO] CLI command args: []string{"output", "-json"}
2020/04/23 15:57:30 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.

2020/04/23 15:57:30 [DEBUG] checking for provider in "."
2020/04/23 15:57:30 [DEBUG] checking for provider in "/usr/bin"
2020/04/23 15:57:30 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2020/04/23 15:57:30 [DEBUG] found provider "terraform-provider-google_v3.18.0_x5"
2020/04/23 15:57:30 [DEBUG] found valid plugin: "google", "3.18.0", "/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-resources/dlp/.terragrunt-cache/8pvaeRDuDTyJ9QVW7YPb0dBg8F8/ZBVw6xjE7GO3q-JJEwztleLUDhU/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5"
2020/04/23 15:57:30 [DEBUG] checking for provisioner in "."
2020/04/23 15:57:30 [DEBUG] checking for provisioner in "/usr/bin"
2020/04/23 15:57:30 [DEBUG] checking for provisioner in ".terraform/plugins/linux_amd64"
[terragrunt] [/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles] 2020/04/23 15:57:31 Running command: terraform --version
[terragrunt] 2020/04/23 15:57:31 WARNING: no double-slash (//) found in source URL /home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/terraform-modules/tem_bigquery-roles. Relative paths in downloaded Terraform code may not work.
[terragrunt] 2020/04/23 15:57:31 Downloading Terraform configurations from file:///home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/terraform-modules/tem_bigquery-roles into /home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q
[terragrunt] 2020/04/23 15:57:31 Copying files from /home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles into /home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q
[terragrunt] 2020/04/23 15:57:31 Setting working directory to /home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q
[terragrunt] 2020/04/23 15:57:31 Skipping var-file /home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/ignore as it does not exist
[terragrunt] 2020/04/23 15:57:32 Running command: terraform apply -var-file=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/../../../env.tfvars -var-file=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/../../../../global.tfvars
2020/04/23 15:57:32 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.

2020/04/23 15:57:32 [INFO] Terraform version: 0.12.24
2020/04/23 15:57:32 [INFO] Go runtime version: go1.12.13
2020/04/23 15:57:32 [INFO] CLI args: []string{"/usr/bin/terraform", "apply", "-var-file=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/../../../env.tfvars", "-var-file=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/../../../../global.tfvars"}
2020/04/23 15:57:32 [DEBUG] Attempting to open CLI config file: /home/rlopez/.terraformrc
2020/04/23 15:57:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/04/23 15:57:32 [INFO] CLI command args: []string{"apply", "-var-file=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/../../../env.tfvars", "-var-file=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/../../../../global.tfvars"}
2020/04/23 15:57:32 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.

2020/04/23 15:57:32 [DEBUG] checking for provider in "."
2020/04/23 15:57:32 [DEBUG] checking for provider in "/usr/bin"
2020/04/23 15:57:32 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2020/04/23 15:57:32 [DEBUG] found provider "terraform-provider-google_v3.18.0_x5"
2020/04/23 15:57:32 [DEBUG] found valid plugin: "google", "3.18.0", "/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5"
2020/04/23 15:57:32 [DEBUG] checking for provisioner in "."
2020/04/23 15:57:32 [DEBUG] checking for provisioner in "/usr/bin"
2020/04/23 15:57:32 [DEBUG] checking for provisioner in ".terraform/plugins/linux_amd64"
2020/04/23 15:57:32 [INFO] backend/local: starting Apply operation
2020-04-23T15:57:33.640+0200 [INFO] plugin: configuring client automatic mTLS
2020-04-23T15:57:33.672+0200 [DEBUG] plugin: starting plugin: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 args=[/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5]
2020-04-23T15:57:33.672+0200 [DEBUG] plugin: plugin started: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 pid=15124
2020-04-23T15:57:33.673+0200 [DEBUG] plugin: waiting for RPC address: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5
2020-04-23T15:57:33.692+0200 [INFO] plugin.terraform-provider-google_v3.18.0_x5: configuring server automatic mTLS: timestamp=2020-04-23T15:57:33.691+0200
2020-04-23T15:57:33.734+0200 [DEBUG] plugin: using plugin: version=5
2020-04-23T15:57:33.734+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: plugin address: address=/tmp/plugin582357552 network=unix timestamp=2020-04-23T15:57:33.734+0200
2020-04-23T15:57:33.839+0200 [DEBUG] plugin: plugin process exited: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 pid=15124
2020-04-23T15:57:33.839+0200 [DEBUG] plugin: plugin exited
2020/04/23 15:57:33 [INFO] terraform: building graph: GraphTypeValidate
2020/04/23 15:57:33 [DEBUG] ProviderTransformer: "google_bigquery_dataset_access.access" (*terraform.NodeValidatableResource) needs provider.google
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "var.gcp_region" references: []
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "var.members" references: []
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "var.vpc_name" references: []
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "var.projects" references: []
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "var.project" references: []
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "var.dataset_id" references: []
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "google_bigquery_dataset_access.access" references: [var.projects var.project var.dataset_id var.dataset_access_role var.members]
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "var.dataset_access_role" references: []
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "var.location" references: []
2020/04/23 15:57:33 [DEBUG] ReferenceTransformer: "provider.google" references: [var.gcp_region]
2020/04/23 15:57:33 [DEBUG] Starting graph walk: walkValidate
2020-04-23T15:57:33.840+0200 [INFO] plugin: configuring client automatic mTLS
2020-04-23T15:57:33.872+0200 [DEBUG] plugin: starting plugin: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 args=[/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5]
2020-04-23T15:57:33.873+0200 [DEBUG] plugin: plugin started: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 pid=15137
2020-04-23T15:57:33.873+0200 [DEBUG] plugin: waiting for RPC address: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5
2020-04-23T15:57:33.901+0200 [INFO] plugin.terraform-provider-google_v3.18.0_x5: configuring server automatic mTLS: timestamp=2020-04-23T15:57:33.901+0200
2020-04-23T15:57:33.941+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: plugin address: address=/tmp/plugin091842118 network=unix timestamp=2020-04-23T15:57:33.941+0200
2020-04-23T15:57:33.941+0200 [DEBUG] plugin: using plugin: version=5
2020-04-23T15:57:34.089+0200 [DEBUG] plugin: plugin process exited: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 pid=15137
2020-04-23T15:57:34.089+0200 [DEBUG] plugin: plugin exited
2020/04/23 15:57:34 [INFO] backend/local: apply calling Refresh
2020/04/23 15:57:34 [INFO] terraform: building graph: GraphTypeRefresh
2020/04/23 15:57:34 [DEBUG] pruning unused provider.google
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.location" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.members" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.gcp_region" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.dataset_id" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.dataset_access_role" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.vpc_name" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.projects" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.project" references: []
2020/04/23 15:57:34 [DEBUG] Starting graph walk: walkRefresh
2020/04/23 15:57:34 [INFO] backend/local: apply calling Plan
2020/04/23 15:57:34 [INFO] terraform: building graph: GraphTypePlan
2020/04/23 15:57:34 [DEBUG] ProviderTransformer: "google_bigquery_dataset_access.access" (*terraform.NodePlannableResource) needs provider.google
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.location" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.members" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.vpc_name" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.project" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.dataset_id" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "provider.google" references: [var.gcp_region]
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "google_bigquery_dataset_access.access" references: [var.dataset_access_role var.projects var.project var.dataset_id var.members]
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.dataset_access_role" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.gcp_region" references: []
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "var.projects" references: []
2020/04/23 15:57:34 [DEBUG] Starting graph walk: walkPlan
2020-04-23T15:57:34.094+0200 [INFO] plugin: configuring client automatic mTLS
2020-04-23T15:57:34.133+0200 [DEBUG] plugin: starting plugin: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 args=[/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5]
2020-04-23T15:57:34.135+0200 [DEBUG] plugin: plugin started: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 pid=15149
2020-04-23T15:57:34.135+0200 [DEBUG] plugin: waiting for RPC address: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5
2020-04-23T15:57:34.162+0200 [INFO] plugin.terraform-provider-google_v3.18.0_x5: configuring server automatic mTLS: timestamp=2020-04-23T15:57:34.160+0200
2020-04-23T15:57:34.212+0200 [DEBUG] plugin: using plugin: version=5
2020-04-23T15:57:34.213+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: plugin address: address=/tmp/plugin134046299 network=unix timestamp=2020-04-23T15:57:34.212+0200
2020-04-23T15:57:34.320+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Authenticating using DefaultClient...
2020-04-23T15:57:34.320+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]
2020-04-23T15:57:34.320+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating GCE client for path https://www.googleapis.com/compute/v1/projects/
2020-04-23T15:57:34.320+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating GCE Beta client for path https://www.googleapis.com/compute/beta/projects/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating GKE client for path https://container.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating GKE Beta client for path https://container.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud DNS client for path https://www.googleapis.com/dns/v1/projects/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud DNS Beta client for path https://www.googleapis.com/dns/v1beta2/projects/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud KMS client for path https://cloudkms.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Stackdriver Logging client for path https://logging.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Storage client for path https://www.googleapis.com/storage/v1/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google SqlAdmin client for path https://sqladmin.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Pubsub client for path https://pubsub.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Dataflow client for path https://dataflow.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud ResourceManager client for path https://cloudresourcemanager.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud ResourceManager V client for path https://cloudresourcemanager.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Runtimeconfig client for path https://runtimeconfig.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud IAM client for path https://iam.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud IAMCredentials client for path https://iamcredentials.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Service Management client for path https://servicemanagement.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Service Usage client for path https://serviceusage.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Billing client for path https://cloudbilling.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Build client for path https://cloudbuild.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud BigQuery client for path https://www.googleapis.com/bigquery/v2/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud CloudFunctions Client for path https://cloudfunctions.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud BigtableAdmin for path https://bigtableadmin.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Source Repo client for path https://sourcerepo.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Spanner client for path https://spanner.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Dataproc client for path https://dataproc.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Dataproc Beta client for path https://dataproc.googleapis.com/
2020-04-23T15:57:34.321+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Filestore client for path https://file.googleapis.com/
2020-04-23T15:57:34.322+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud IoT Core client for path https://cloudiot.googleapis.com/
2020-04-23T15:57:34.322+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating App Engine client for path https://appengine.googleapis.com/
2020-04-23T15:57:34.322+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Cloud Composer client for path https://composer.googleapis.com/
2020-04-23T15:57:34.322+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Service Networking client for path https://servicenetworking.googleapis.com/
2020-04-23T15:57:34.322+0200 [DEBUG] plugin.terraform-provider-google_v3.18.0_x5: 2020/04/23 15:57:34 [INFO] Instantiating Google Cloud Storage Transfer client for path https://storagetransfer.googleapis.com/
2020/04/23 15:57:34 [DEBUG] Resource instance state not found for node "google_bigquery_dataset_access.access", instance google_bigquery_dataset_access.access
2020/04/23 15:57:34 [DEBUG] ReferenceTransformer: "google_bigquery_dataset_access.access" references: []
2020-04-23T15:57:34.335+0200 [DEBUG] plugin: plugin process exited: path=/home/rlopez/Documentos/DevOps/sre-gcp-infra/terraform/gcp-environments/poconcepts/targets/bigquery/bigquery-roles/.terragrunt-cache/xmR98553WFjnAAjYIaVWBwlsKzw/EwiIaBNjsefQBiy-Pv9LtHPka9Q/.terraform/plugins/linux_amd64/terraform-provider-google_v3.18.0_x5 pid=15149
2020-04-23T15:57:34.335+0200 [DEBUG] plugin: plugin exited

Expected Behavior

Permission is assigned for a group_by_mail member

Actual Behavior

Terraform will perform the following actions:

google_bigquery_dataset_access.access will be created

  • resource "google_bigquery_dataset_access" "access" {

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.

Enter a value: yes

google_bigquery_dataset_access.access: Creating...

Error: Provider produced inconsistent result after apply

When applying changes to google_bigquery_dataset_access.access, provider
"registry.terraform.io/-/google" produced an unexpected new value for was
present, but now absent.

This is a bug in the provider, which should be reported in the provider's own
issue tracker.

Steps to Reproduce

  1. terraform apply
@ghost ghost added the bug label Apr 23, 2020
@venkykuberan venkykuberan self-assigned this Apr 23, 2020
@venkykuberan
Copy link
Contributor

Can you use the following format for the roles per doc

resource "google_bigquery_dataset_access" "access" {
  dataset_id = google_bigquery_dataset.dataset.dataset_id
  #   role          = "roles/bigquery.dataEditor"
  role          = "WRITER"
  user_by_email = "abc@test.com"
}

Let me know if it helps ..

@rlopezl-c4
Copy link
Author

Yes, it works with Writer/Owner/Reader roles, but the block access in resource google_bigquery_dataset admits roles like roles/bigquery.*

Can you review this case to include it into the resource google_bigquery_dataset_access?

Thank you so much

@ghost ghost removed the waiting-response label Apr 28, 2020
@venkykuberan
Copy link
Contributor

Yes we have an open issue to bring both the resources inline #6175. Since this is a duplicate i will close this one and will track the other.

@ghost
Copy link

ghost commented May 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators May 29, 2020
@github-actions github-actions bot added service/bigquery forward/review In review; remove label to forward labels Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug forward/review In review; remove label to forward service/bigquery
Projects
None yet
Development

No branches or pull requests

2 participants