hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.73k forks source link

Cloudsql - Error 400: Invalid request: instance name #10871

Closed ScottPierce closed 2 years ago

ScottPierce commented 2 years ago

Community Note

Terraform Version

Terraform v1.1.3 on linux_amd64

Affected Resource(s)

Terraform Configuration Files

resource "google_project_service" "cloud_sql" {
  provider                   = google-beta
  project                    = google_project.default.id
  service                    = "sql-component.googleapis.com"
  disable_dependent_services = true
}

resource "google_project_service" "cloud_sql_admin_api" {
  provider                   = google-beta
  project                    = google_project.default.id
  service                    = "sqladmin.googleapis.com"
  disable_dependent_services = true
}

resource "google_project_service" "compute_engine_api" {
  provider                   = google-beta
  project                    = google_project.default.id
  service                    = "compute.googleapis.com"
  disable_dependent_services = true
}

resource "google_sql_database_instance" "primary_instance" {
  project          = google_project.default.id
  name             = "instance_name"
  database_version = "MYSQL_5_7"
  region           = "us-central1"
  settings {
    tier = "db-f1-micro"
  }
}

resource "google_sql_database" "database" {
  project   = google_project.default.id
  name      = "database_name"
  instance  = google_sql_database_instance.primary_instance.name
  charset   = "utf8"
  collation = "utf8_general_ci"
}

resource "google_sql_user" "users" {
  project  = google_project.default.id
  name     = "root"
  instance = google_sql_database_instance.primary_instance.name
  host     = "%"
  password = "XXXXXXXXX"
}

Debug Output

Run terraform apply -auto-approve -lock-timeout 5m
2022-01-09T07:12:33.488Z [INFO]  Terraform version: 1.1.3
2022-01-09T07:12:33.488Z [INFO]  Go runtime version: go1.17.2
2022-01-09T07:12:33.488Z [INFO]  CLI args: []string***"terraform", "apply", "-auto-approve", "-lock-timeout", "5m"***
2022-01-09T07:12:33.488Z [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2022-01-09T07:12:33.488Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-01-09T07:12:33.488Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-01-09T07:12:33.488Z [DEBUG] ignoring non-existing provider search directory /root/.terraform.d/plugins
2022-01-09T07:12:33.488Z [DEBUG] ignoring non-existing provider search directory /root/.local/share/terraform/plugins
2022-01-09T07:12:33.488Z [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2022-01-09T07:12:33.488Z [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2022-01-09T07:12:33.488Z [INFO]  CLI command args: []string***"apply", "-auto-approve", "-lock-timeout", "5m"***
2022-01-09T07:12:33.901Z [DEBUG] checking for provisioner in "."
2022-01-09T07:12:33.905Z [DEBUG] checking for provisioner in "/usr/bin"
2022-01-09T07:12:33.906Z [INFO]  backend/local: starting Apply operation
2022-01-09T07:12:34.456Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:34.456Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:34.462Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5]
2022-01-09T07:12:34.462Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 pid=18770
2022-01-09T07:12:34.462Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5
2022-01-09T07:12:34.474Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:34.474Z
2022-01-09T07:12:34.495Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:34.495Z [DEBUG] provider.terraform-provider-google_v4.5.0_x5: plugin address: network=unix address=/tmp/plugin905263925 timestamp=2022-01-09T07:12:34.494Z
2022-01-09T07:12:34.543Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:34.544Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 pid=18770
2022-01-09T07:12:34.544Z [DEBUG] provider: plugin exited
2022-01-09T07:12:34.544Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:34.544Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:34.550Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5]
2022-01-09T07:12:34.550Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 pid=18804
2022-01-09T07:12:34.550Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5
2022-01-09T07:12:34.563Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:34.563Z
2022-01-09T07:12:34.583Z [DEBUG] provider.terraform-provider-google-beta_v4.5.0_x5: plugin address: address=/tmp/plugin487706911 network=unix timestamp=2022-01-09T07:12:34.583Z
2022-01-09T07:12:34.583Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:34.632Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:34.633Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 pid=18804
2022-01-09T07:12:34.633Z [DEBUG] provider: plugin exited
2022-01-09T07:12:34.633Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:34.633Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:34.639Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5]
2022-01-09T07:12:34.640Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 pid=18841
2022-01-09T07:12:34.640Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5
2022-01-09T07:12:34.645Z [INFO]  provider.terraform-provider-random_v3.1.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:34.645Z
2022-01-09T07:12:34.672Z [DEBUG] provider.terraform-provider-random_v3.1.0_x5: plugin address: address=/tmp/plugin031771996 network=unix timestamp=2022-01-09T07:12:34.672Z
2022-01-09T07:12:34.672Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:34.692Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:34.693Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 pid=18841
2022-01-09T07:12:34.693Z [DEBUG] provider: plugin exited
2022-01-09T07:12:34.693Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:34.693Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:34.700Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/integrations/github/4.4.0/linux_amd64/terraform-provider-github_v4.4.0 args=[.terraform/providers/registry.terraform.io/integrations/github/4.4.0/linux_amd64/terraform-provider-github_v4.4.0]
2022-01-09T07:12:34.700Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/integrations/github/4.4.0/linux_amd64/terraform-provider-github_v4.4.0 pid=18855
2022-01-09T07:12:34.700Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/integrations/github/4.4.0/linux_amd64/terraform-provider-github_v4.4.0
2022-01-09T07:12:34.707Z [INFO]  provider.terraform-provider-github_v4.4.0: configuring server automatic mTLS: timestamp=2022-01-09T07:12:34.706Z
2022-01-09T07:12:34.720Z [DEBUG] provider.terraform-provider-github_v4.4.0: plugin address: address=/tmp/plugin164702062 network=unix timestamp=2022-01-09T07:12:34.720Z
2022-01-09T07:12:34.720Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:34.737Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2022-01-09T07:12:34.737Z [DEBUG] No provider meta schema returned
2022-01-09T07:12:34.739Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/integrations/github/4.4.0/linux_amd64/terraform-provider-github_v4.4.0 pid=18855
2022-01-09T07:12:34.739Z [DEBUG] provider: plugin exited
2022-01-09T07:12:34.739Z [DEBUG] Building and walking validate graph
2022-01-09T07:12:34.740Z [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/random"], implied first by random_string.project_id_suffix
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_project.default" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_project_service.compute_engine_api" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_sql_database_instance.primary_instance" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_sql_user.users" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "random_string.project_id_suffix" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/random"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_project_service.cloud_resource" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_project_service.service_usage" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_project_service.cloud_sql" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_project_service.cloud_sql_admin_api" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.740Z [DEBUG] ProviderTransformer: "google_sql_database.database" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:34.740Z [DEBUG] pruning unused provider["registry.terraform.io/integrations/github"]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_sql_database_instance.primary_instance" references: [google_project.default]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_project_service.service_usage" references: [google_project.default]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "local.devit_organization_id (expand)" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "local.devit_billing_account_id (expand)" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "local.devit_project_folder_id (expand)" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_sql" references: [google_project.default]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_resource" references: [google_project.default]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_project_service.compute_engine_api" references: [google_project.default]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "local.base_project_name (expand)" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "var.is_prod" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "random_string.project_id_suffix" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_sql_user.users" references: [google_project.default google_sql_database_instance.primary_instance]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "var.docker_image_api" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google-beta\"]" references: []
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_sql_database.database" references: [google_project.default google_sql_database_instance.primary_instance]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_sql_admin_api" references: [google_project.default]
2022-01-09T07:12:34.741Z [INFO]  ReferenceTransformer: reference not found: "terraform.workspace"
2022-01-09T07:12:34.741Z [INFO]  ReferenceTransformer: reference not found: "terraform.workspace"
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "google_project.default" references: [local.devit_project_folder_id (expand) local.base_project_name (expand) local.devit_billing_account_id (expand) local.base_project_name (expand) random_string.project_id_suffix]
2022-01-09T07:12:34.741Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/random\"]" references: []
2022-01-09T07:12:34.741Z [DEBUG] Starting graph walk: walkValidate
2022-01-09T07:12:34.742Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:34.742Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:34.747Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5]
2022-01-09T07:12:34.748Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 pid=18872
2022-01-09T07:12:34.748Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5
2022-01-09T07:12:34.761Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:34.761Z
2022-01-09T07:12:34.782Z [DEBUG] provider.terraform-provider-google-beta_v4.5.0_x5: plugin address: address=/tmp/plugin770680291 network=unix timestamp=2022-01-09T07:12:34.782Z
2022-01-09T07:12:34.782Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:34.798Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:34.798Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:34.804Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5]
2022-01-09T07:12:34.804Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 pid=18902
2022-01-09T07:12:34.804Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5
2022-01-09T07:12:34.819Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:34.819Z
2022-01-09T07:12:34.842Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:34.842Z [DEBUG] provider.terraform-provider-google_v4.5.0_x5: plugin address: address=/tmp/plugin457968265 network=unix timestamp=2022-01-09T07:12:34.842Z
2022-01-09T07:12:34.859Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:34.859Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:34.865Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5]
2022-01-09T07:12:34.865Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 pid=18931
2022-01-09T07:12:34.865Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5
2022-01-09T07:12:34.869Z [INFO]  provider.terraform-provider-random_v3.1.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:34.869Z
2022-01-09T07:12:34.891Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:34.891Z [DEBUG] provider.terraform-provider-random_v3.1.0_x5: plugin address: address=/tmp/plugin702797198 network=unix timestamp=2022-01-09T07:12:34.891Z
2022-01-09T07:12:34.909Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:34.909Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 pid=18931
2022-01-09T07:12:34.909Z [DEBUG] provider: plugin exited
2022-01-09T07:12:34.964Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:34.965Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 pid=18872
2022-01-09T07:12:34.965Z [DEBUG] provider: plugin exited
2022-01-09T07:12:34.966Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:34.967Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 pid=18902
2022-01-09T07:12:34.967Z [DEBUG] provider: plugin exited
2022-01-09T07:12:34.967Z [INFO]  backend/local: apply calling Plan
2022-01-09T07:12:34.967Z [DEBUG] Building and walking plan graph for NormalMode
2022-01-09T07:12:34.967Z [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/random"], implied first by random_string.project_id_suffix (expand)
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_project_service.cloud_sql (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_sql_database.database (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_project_service.cloud_resource (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_project_service.compute_engine_api (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_project_service.cloud_sql_admin_api (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "random_string.project_id_suffix (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/random"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_sql_database_instance.primary_instance (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_sql_user.users (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_project.default (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:34.967Z [DEBUG] ProviderTransformer: "google_project_service.service_usage (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:34.967Z [DEBUG] pruning unused provider["registry.terraform.io/integrations/github"]
2022-01-09T07:12:34.967Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_sql_admin_api (expand)" references: [google_project.default (expand)]
2022-01-09T07:12:34.967Z [DEBUG] ReferenceTransformer: "google_project_service.service_usage (expand)" references: [google_project.default (expand)]
2022-01-09T07:12:34.967Z [DEBUG] ReferenceTransformer: "local.devit_organization_id (expand)" references: []
2022-01-09T07:12:34.967Z [DEBUG] ReferenceTransformer: "local.base_project_name (expand)" references: []
2022-01-09T07:12:34.967Z [DEBUG] ReferenceTransformer: "local.devit_billing_account_id (expand)" references: []
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_sql (expand)" references: [google_project.default (expand)]
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "random_string.project_id_suffix (expand)" references: []
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "google_sql_database_instance.primary_instance (expand)" references: [google_project.default (expand)]
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "local.devit_project_folder_id (expand)" references: []
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "google_sql_user.users (expand)" references: [google_project.default (expand) google_sql_database_instance.primary_instance (expand)]
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google-beta\"]" references: []
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/random\"]" references: []
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "var.is_prod" references: []
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "var.docker_image_api" references: []
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "google_sql_database.database (expand)" references: [google_sql_database_instance.primary_instance (expand) google_project.default (expand)]
2022-01-09T07:12:34.968Z [INFO]  ReferenceTransformer: reference not found: "terraform.workspace"
2022-01-09T07:12:34.968Z [INFO]  ReferenceTransformer: reference not found: "terraform.workspace"
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "google_project.default (expand)" references: [local.base_project_name (expand) random_string.project_id_suffix (expand) local.devit_project_folder_id (expand) local.devit_billing_account_id (expand) local.base_project_name (expand)]
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_resource (expand)" references: [google_project.default (expand)]
2022-01-09T07:12:34.968Z [DEBUG] ReferenceTransformer: "google_project_service.compute_engine_api (expand)" references: [google_project.default (expand)]
2022-01-09T07:12:34.968Z [DEBUG] Starting graph walk: walkPlan
2022-01-09T07:12:34.968Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:34.969Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:34.974Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5]
2022-01-09T07:12:34.974Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 pid=18946
2022-01-09T07:12:34.974Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5
2022-01-09T07:12:34.987Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:34.987Z
2022-01-09T07:12:35.007Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:35.007Z [DEBUG] provider.terraform-provider-google_v4.5.0_x5: plugin address: network=unix address=/tmp/plugin130123397 timestamp=2022-01-09T07:12:35.007Z
2022-01-09T07:12:35.023Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:35.023Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:35.030Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5]
2022-01-09T07:12:35.030Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 pid=18974
2022-01-09T07:12:35.030Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5
2022-01-09T07:12:35.034Z [INFO]  provider.terraform-provider-random_v3.1.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:35.034Z
2022-01-09T07:12:35.057Z [DEBUG] provider.terraform-provider-random_v3.1.0_x5: plugin address: address=/tmp/plugin517276013 network=unix timestamp=2022-01-09T07:12:35.057Z
2022-01-09T07:12:35.057Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:35.075Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:35.075Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:35.080Z [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/google\"]" changed the config value, but that value is unused
2022-01-09T07:12:35.080Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5]
2022-01-09T07:12:35.081Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 pid=18989
2022-01-09T07:12:35.081Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5
2022-01-09T07:12:35.095Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:35.095Z
2022-01-09T07:12:35.116Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:35.116Z [DEBUG] provider.terraform-provider-google-beta_v4.5.0_x5: plugin address: network=unix address=/tmp/plugin063371628 timestamp=2022-01-09T07:12:35.116Z
2022-01-09T07:12:35.133Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2022-01-09T07:12:35.133Z
2022-01-09T07:12:35.133Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]: timestamp=2022-01-09T07:12:35.133Z
2022-01-09T07:12:35.133Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2022-01-09T07:12:35.133Z
2022-01-09T07:12:35.133Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]: timestamp=2022-01-09T07:12:35.133Z
2022-01-09T07:12:35.133Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Waiting for state to become: [success]: timestamp=2022-01-09T07:12:35.133Z
2022-01-09T07:12:35.134Z [DEBUG] ReferenceTransformer: "random_string.project_id_suffix" references: []
random_string.project_id_suffix: Refreshing state... [id=ps51]
2022-01-09T07:12:35.137Z [WARN]  Provider "registry.terraform.io/hashicorp/random" produced an invalid plan for random_string.project_id_suffix, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .min_numeric: planned value cty.NumberIntVal(0) for a non-computed attribute
      - .min_special: planned value cty.NumberIntVal(0) for a non-computed attribute
      - .min_upper: planned value cty.NumberIntVal(0) for a non-computed attribute
      - .lower: planned value cty.True for a non-computed attribute
      - .min_lower: planned value cty.NumberIntVal(0) for a non-computed attribute
      - .number: planned value cty.True for a non-computed attribute
2022-01-09T07:12:35.137Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:35.138Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.1.0/linux_amd64/terraform-provider-random_v3.1.0_x5 pid=18974
2022-01-09T07:12:35.138Z [DEBUG] provider: plugin exited
2022-01-09T07:12:35.194Z [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/google-beta\"]" changed the config value, but that value is unused
2022-01-09T07:12:35.195Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2022-01-09T07:12:35.195Z
2022-01-09T07:12:35.195Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]: timestamp=2022-01-09T07:12:35.195Z
2022-01-09T07:12:35.195Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2022-01-09T07:12:35.195Z
2022-01-09T07:12:35.195Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]: timestamp=2022-01-09T07:12:35.195Z
2022-01-09T07:12:35.195Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Waiting for state to become: [success]: timestamp=2022-01-09T07:12:35.195Z
2022-01-09T07:12:35.310Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Terraform is using this identity: terraform-check-it-in@devit-root-a93k.iam.gserviceaccount.com: timestamp=2022-01-09T07:12:35.310Z
2022-01-09T07:12:35.311Z [INFO]  ReferenceTransformer: reference not found: "local.devit_billing_account_id"
2022-01-09T07:12:35.311Z [INFO]  ReferenceTransformer: reference not found: "local.devit_project_folder_id"
2022-01-09T07:12:35.311Z [INFO]  ReferenceTransformer: reference not found: "local.base_project_name"
2022-01-09T07:12:35.311Z [INFO]  ReferenceTransformer: reference not found: "terraform.workspace"
2022-01-09T07:12:35.311Z [INFO]  ReferenceTransformer: reference not found: "local.base_project_name"
2022-01-09T07:12:35.311Z [INFO]  ReferenceTransformer: reference not found: "terraform.workspace"
2022-01-09T07:12:35.311Z [DEBUG] ReferenceTransformer: "google_project.default" references: []
google_project.default: Refreshing state... [id=projects/azapp-int-ps51]
2022-01-09T07:12:35.312Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Waiting for state to become: [success]: timestamp=2022-01-09T07:12:35.312Z
2022-01-09T07:12:35.312Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Instantiating Google Cloud ResourceManager client for path https://cloudresourcemanager.googleapis.com/: timestamp=2022-01-09T07:12:35.312Z
2022-01-09T07:12:35.313Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:35.312Z
2022-01-09T07:12:35.313Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:35.312Z
2022-01-09T07:12:35.313Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/projects/azapp-int-ps51?alt=json&prettyPrint=false HTTP/1.1
Host: cloudresourcemanager.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/dev
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2022-01-09T07:12:35.312Z
2022-01-09T07:12:35.353Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Terraform is using this identity: terraform-check-it-in@devit-root-a93k.iam.gserviceaccount.com: timestamp=2022-01-09T07:12:35.353Z
2022-01-09T07:12:35.461Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:39 GMT
Server: ESF
Server-Timing: gfet4t7; dur=46
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
 "projectNumber": "1065017924562",
 "projectId": "azapp-int-ps51",
 "lifecycleState": "ACTIVE",
 "name": "azapp-int",
 "createTime": "2022-01-09T06:34:27.758Z",
 "parent": ***
  "type": "folder",
  "id": "109623755031"
 ***
***
-----------------------------------------------------: timestamp=2022-01-09T07:12:35.461Z
2022-01-09T07:12:35.461Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2022-01-09T07:12:35.461Z
2022-01-09T07:12:35.461Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:35.461Z
2022-01-09T07:12:35.461Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Waiting for state to become: [success]: timestamp=2022-01-09T07:12:35.461Z
2022-01-09T07:12:35.461Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Instantiating Google Cloud Billing client for path https://cloudbilling.googleapis.com/: timestamp=2022-01-09T07:12:35.461Z
2022-01-09T07:12:35.461Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:35.461Z
2022-01-09T07:12:35.461Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:35.461Z
2022-01-09T07:12:35.461Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/projects/azapp-int-ps51/billingInfo?alt=json&prettyPrint=false HTTP/1.1
Host: cloudbilling.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/dev
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2022-01-09T07:12:35.461Z
2022-01-09T07:12:35.727Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:39 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
 "name": "projects/azapp-int-ps51/billingInfo",
 "projectId": "azapp-int-ps51",
 "billingAccountName": "billingAccounts/01EA8E-4FE406-FDCB90",
 "billingEnabled": true
***
-----------------------------------------------------: timestamp=2022-01-09T07:12:35.727Z
2022-01-09T07:12:35.727Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2022-01-09T07:12:35.727Z
2022-01-09T07:12:35.727Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:35.727Z
2022-01-09T07:12:35.729Z [WARN]  Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_project.default, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .org_id: planned value cty.StringVal("") for a non-computed attribute
      - .auto_create_network: planned value cty.True for a non-computed attribute
      - .labels: planned value cty.MapValEmpty(cty.String) for a non-computed attribute
2022-01-09T07:12:35.729Z [DEBUG] Resource instance state not found for node "google_sql_database_instance.primary_instance", instance google_sql_database_instance.primary_instance
2022-01-09T07:12:35.729Z [DEBUG] ReferenceTransformer: "google_sql_database_instance.primary_instance" references: []
2022-01-09T07:12:35.729Z [DEBUG] refresh: google_sql_database_instance.primary_instance: no state, so not refreshing
2022-01-09T07:12:35.729Z [DEBUG] ReferenceTransformer: "google_project_service.service_usage" references: []
2022-01-09T07:12:35.729Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_sql_admin_api" references: []
2022-01-09T07:12:35.729Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_resource" references: []
2022-01-09T07:12:35.730Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_sql" references: []
2022-01-09T07:12:35.730Z [DEBUG] ReferenceTransformer: "google_project_service.compute_engine_api" references: []
google_project_service.cloud_sql_admin_api: Refreshing state... [id=azapp-int-ps51/sqladmin.googleapis.com]
google_project_service.service_usage: Refreshing state... [id=azapp-int-ps51/serviceusage.googleapis.com]
google_project_service.compute_engine_api: Refreshing state... [id=azapp-int-ps51/compute.googleapis.com]
google_project_service.cloud_resource: Refreshing state... [id=azapp-int-ps51/cloudresourcemanager.googleapis.com]
google_project_service.cloud_sql: Refreshing state... [id=azapp-int-ps51/sql-component.googleapis.com]
2022-01-09T07:12:35.730Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Instantiating Google Cloud ResourceManager client for path https://cloudresourcemanager.googleapis.com/: timestamp=2022-01-09T07:12:35.730Z
2022-01-09T07:12:35.730Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Instantiating Google Cloud ResourceManager client for path https://cloudresourcemanager.googleapis.com/: timestamp=2022-01-09T07:12:35.730Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Instantiating Google Cloud ResourceManager client for path https://cloudresourcemanager.googleapis.com/: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Instantiating Google Cloud ResourceManager client for path https://cloudresourcemanager.googleapis.com/: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [INFO] Instantiating Google Cloud ResourceManager client for path https://cloudresourcemanager.googleapis.com/: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/projects/azapp-int-ps51?alt=json&prettyPrint=false HTTP/1.1
Host: cloudresourcemanager.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google-beta/dev
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/projects/azapp-int-ps51?alt=json&prettyPrint=false HTTP/1.1
Host: cloudresourcemanager.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google-beta/dev
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/projects/azapp-int-ps51?alt=json&prettyPrint=false HTTP/1.1
Host: cloudresourcemanager.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google-beta/dev
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/projects/azapp-int-ps51?alt=json&prettyPrint=false HTTP/1.1
Host: cloudresourcemanager.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google-beta/dev
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.731Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/projects/azapp-int-ps51?alt=json&prettyPrint=false HTTP/1.1
Host: cloudresourcemanager.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google-beta/dev
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2022-01-09T07:12:35.731Z
2022-01-09T07:12:35.734Z [WARN]  Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_sql_database_instance.primary_instance, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .deletion_protection: planned value cty.True for a non-computed attribute
      - .settings[0].disk_autoresize_limit: planned value cty.NumberIntVal(0) for a non-computed attribute
      - .settings[0].pricing_plan: planned value cty.StringVal("PER_USE") for a non-computed attribute
      - .settings[0].activation_policy: planned value cty.StringVal("ALWAYS") for a non-computed attribute
      - .settings[0].availability_type: planned value cty.StringVal("ZONAL") for a non-computed attribute
      - .settings[0].disk_autoresize: planned value cty.True for a non-computed attribute
      - .settings[0].disk_type: planned value cty.StringVal("PD_SSD") for a non-computed attribute
      - .settings[0].ip_configuration: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .settings[0].location_preference: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .settings[0].backup_configuration: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .replica_configuration: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
2022-01-09T07:12:35.734Z [DEBUG] Resource instance state not found for node "google_sql_database.database", instance google_sql_database.database
2022-01-09T07:12:35.734Z [DEBUG] ReferenceTransformer: "google_sql_database.database" references: []
2022-01-09T07:12:35.734Z [DEBUG] refresh: google_sql_database.database: no state, so not refreshing
2022-01-09T07:12:35.734Z [DEBUG] Resource instance state not found for node "google_sql_user.users", instance google_sql_user.users
2022-01-09T07:12:35.734Z [DEBUG] ReferenceTransformer: "google_sql_user.users" references: []
2022-01-09T07:12:35.734Z [DEBUG] refresh: google_sql_user.users: no state, so not refreshing
2022-01-09T07:12:35.735Z [DEBUG] provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] [transport] transport: http2Server.HandleStreams failed to read frame: read unix /tmp/plugin130123397->@: use of closed network connection 
2022-01-09T07:12:35.735Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:35.736Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 pid=18946
2022-01-09T07:12:35.736Z [DEBUG] provider: plugin exited
2022-01-09T07:12:35.866Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:40 GMT
Server: ESF
Server-Timing: gfet4t7; dur=47
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
 "projectNumber": "1065017924562",
 "projectId": "azapp-int-ps51",
 "lifecycleState": "ACTIVE",
 "name": "azapp-int",
 "createTime": "2022-01-09T06:34:27.758Z",
 "parent": ***
  "type": "folder",
  "id": "109623755031"
 ***
***
-----------------------------------------------------: timestamp=2022-01-09T07:12:35.866Z
2022-01-09T07:12:35.867Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2022-01-09T07:12:35.866Z
2022-01-09T07:12:35.867Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:35.866Z
2022-01-09T07:12:35.867Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Creating new batch "List Project Services azapp-int-ps51" from request "project/azapp-int-ps51/services": timestamp=2022-01-09T07:12:35.866Z
2022-01-09T07:12:35.924Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:40 GMT
Server: ESF
Server-Timing: gfet4t7; dur=104
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
 "projectNumber": "1065017924562",
 "projectId": "azapp-int-ps51",
 "lifecycleState": "ACTIVE",
 "name": "azapp-int",
 "createTime": "2022-01-09T06:34:27.758Z",
 "parent": ***
  "type": "folder",
  "id": "109623755031"
 ***
***
-----------------------------------------------------: timestamp=2022-01-09T07:12:35.924Z
2022-01-09T07:12:35.924Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2022-01-09T07:12:35.924Z
2022-01-09T07:12:35.924Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:35.924Z
2022-01-09T07:12:35.924Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Adding batch request "List Project Services azapp-int-ps51" to existing batch "project/azapp-int-ps51/services": timestamp=2022-01-09T07:12:35.924Z
2022-01-09T07:12:35.924Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Added batch request "List Project Services azapp-int-ps51" to batch. New batch body: <nil>: timestamp=2022-01-09T07:12:35.924Z
2022-01-09T07:12:35.978Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:40 GMT
Server: ESF
Server-Timing: gfet4t7; dur=159
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
 "projectNumber": "1065017924562",
 "projectId": "azapp-int-ps51",
 "lifecycleState": "ACTIVE",
 "name": "azapp-int",
 "createTime": "2022-01-09T06:34:27.758Z",
 "parent": ***
  "type": "folder",
  "id": "109623755031"
 ***
***
-----------------------------------------------------: timestamp=2022-01-09T07:12:35.978Z
2022-01-09T07:12:35.978Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2022-01-09T07:12:35.978Z
2022-01-09T07:12:35.978Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:35.978Z
2022-01-09T07:12:35.978Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Adding batch request "List Project Services azapp-int-ps51" to existing batch "project/azapp-int-ps51/services": timestamp=2022-01-09T07:12:35.978Z
2022-01-09T07:12:35.978Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:35 [DEBUG] Added batch request "List Project Services azapp-int-ps51" to batch. New batch body: <nil>: timestamp=2022-01-09T07:12:35.978Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:40 GMT
Server: ESF
Server-Timing: gfet4t7; dur=207
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
 "projectNumber": "1065017924562",
 "projectId": "azapp-int-ps51",
 "lifecycleState": "ACTIVE",
 "name": "azapp-int",
 "createTime": "2022-01-09T06:34:27.758Z",
 "parent": ***
  "type": "folder",
  "id": "109623755031"
 ***
***
-----------------------------------------------------: timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:40 GMT
Server: ESF
Server-Timing: gfet4t7; dur=207
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
 "projectNumber": "1065017924562",
 "projectId": "azapp-int-ps51",
 "lifecycleState": "ACTIVE",
 "name": "azapp-int",
 "createTime": "2022-01-09T06:34:27.758Z",
 "parent": ***
  "type": "folder",
  "id": "109623755031"
 ***
***
-----------------------------------------------------: timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Adding batch request "List Project Services azapp-int-ps51" to existing batch "project/azapp-int-ps51/services": timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Added batch request "List Project Services azapp-int-ps51" to batch. New batch body: <nil>: timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Adding batch request "List Project Services azapp-int-ps51" to existing batch "project/azapp-int-ps51/services": timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:36.029Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:36 [DEBUG] Added batch request "List Project Services azapp-int-ps51" to batch. New batch body: <nil>: timestamp=2022-01-09T07:12:36.029Z
2022-01-09T07:12:38.869Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:38 [DEBUG] Sending batch "project/azapp-int-ps51/services" combining 5 requests): timestamp=2022-01-09T07:12:38.869Z
2022-01-09T07:12:38.869Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:38 [DEBUG] Listing enabled services for project azapp-int-ps51: timestamp=2022-01-09T07:12:38.869Z
2022-01-09T07:12:38.869Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:38 [DEBUG] Waiting for state to become: [success]: timestamp=2022-01-09T07:12:38.869Z
2022-01-09T07:12:38.869Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:38 [INFO] Instantiating Google Cloud Service Usage client for path https://serviceusage.googleapis.com/: timestamp=2022-01-09T07:12:38.869Z
2022-01-09T07:12:38.869Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:38 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:38.869Z
2022-01-09T07:12:38.869Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:38 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:38.869Z
2022-01-09T07:12:38.869Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:38 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/projects/azapp-int-ps51/services?alt=json&fields=services%2Fname%2CnextPageToken&filter=state%3AENABLED&prettyPrint=false HTTP/1.1
Host: serviceusage.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google-beta/dev
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

-----------------------------------------------------: timestamp=2022-01-09T07:12:38.869Z
2022-01-09T07:12:39.173Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:43 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
 "services": [
  ***
   "name": "projects/1065017924562/services/cloudresourcemanager.googleapis.com"
  ***,
  ***
   "name": "projects/1065017924562/services/compute.googleapis.com"
  ***,
  ***
   "name": "projects/1065017924562/services/oslogin.googleapis.com"
  ***,
  ***
   "name": "projects/1065017924562/services/serviceusage.googleapis.com"
  ***,
  ***
   "name": "projects/1065017924562/services/sql-component.googleapis.com"
  ***,
  ***
   "name": "projects/1065017924562/services/sqladmin.googleapis.com"
  ***
 ]
***
-----------------------------------------------------: timestamp=2022-01-09T07:12:39.173Z
2022-01-09T07:12:39.173Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2022-01-09T07:12:39.173Z
2022-01-09T07:12:39.173Z [INFO]  provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:39.173Z
2022-01-09T07:12:39.175Z [WARN]  Provider "registry.terraform.io/hashicorp/google-beta" produced an invalid plan for google_project_service.cloud_sql_admin_api, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .disable_on_destroy: planned value cty.True for a non-computed attribute
2022-01-09T07:12:39.175Z [WARN]  Provider "registry.terraform.io/hashicorp/google-beta" produced an invalid plan for google_project_service.service_usage, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .disable_on_destroy: planned value cty.True for a non-computed attribute
2022-01-09T07:12:39.175Z [WARN]  Provider "registry.terraform.io/hashicorp/google-beta" produced an invalid plan for google_project_service.cloud_resource, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .disable_on_destroy: planned value cty.True for a non-computed attribute
2022-01-09T07:12:39.175Z [WARN]  Provider "registry.terraform.io/hashicorp/google-beta" produced an invalid plan for google_project_service.cloud_sql, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .disable_on_destroy: planned value cty.True for a non-computed attribute
2022-01-09T07:12:39.175Z [WARN]  Provider "registry.terraform.io/hashicorp/google-beta" produced an invalid plan for google_project_service.compute_engine_api, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .disable_on_destroy: planned value cty.True for a non-computed attribute
2022-01-09T07:12:39.175Z [DEBUG] provider.terraform-provider-google-beta_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] [transport] transport: http2Server.HandleStreams failed to read frame: read unix /tmp/plugin063371628->@: use of closed network connection 
2022-01-09T07:12:39.175Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:39.177Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google-beta/4.5.0/linux_amd64/terraform-provider-google-beta_v4.5.0_x5 pid=18989
2022-01-09T07:12:39.177Z [DEBUG] provider: plugin exited

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # google_sql_database.database will be created
  + resource "google_sql_database" "database" ***
      + charset   = "utf8"
      + collation = "utf8_general_ci"
      + id        = (known after apply)
      + instance  = "instance_name"
      + name      = "database_name"
      + project   = "projects/azapp-int-ps51"
      + self_link = (known after apply)
    ***

  # google_sql_database_instance.primary_instance will be created
  + resource "google_sql_database_instance" "primary_instance" ***
      + connection_name               = (known after apply)
      + database_version              = "MYSQL_5_7"
      + deletion_protection           = true
      + first_ip_address              = (known after apply)
2022-01-09T07:12:39.179Z [INFO]  backend/local: apply calling Apply
2022-01-09T07:12:39.179Z [DEBUG] Building and walking apply graph for NormalMode plan
2022-01-09T07:12:39.179Z [DEBUG] Resource state not found for node "google_sql_user.users", instance google_sql_user.users
2022-01-09T07:12:39.179Z [DEBUG] Resource state not found for node "google_sql_database_instance.primary_instance", instance google_sql_database_instance.primary_instance
2022-01-09T07:12:39.179Z [DEBUG] Resource state not found for node "google_sql_database.database", instance google_sql_database.database
      + id                            = (known after apply)
      + ip_address                    = (known after apply)
      + master_instance_name          = (known after apply)
      + name                          = "instance_name"
      + private_ip_address            = (known after apply)
      + project                       = "projects/azapp-int-ps51"
      + public_ip_address             = (known after apply)
      + region                        = "us-central1"
      + self_link                     = (known after apply)
      + server_ca_cert                = (known after apply)
      + service_account_email_address = (known after apply)

      + replica_configuration ***
          + ca_certificate            = (known after apply)
          + client_certificate        = (known after apply)
          + client_key                = (known after apply)
          + connect_retry_interval    = (known after apply)
          + dump_file_path            = (known after apply)
          + failover_target           = (known after apply)
          + master_heartbeat_period   = (known after apply)
          + password                  = (sensitive value)
          + ssl_cipher                = (known after apply)
          + username                  = (known after apply)
          + verify_server_certificate = (known after apply)
        ***

      + settings ***
          + activation_policy     = "ALWAYS"
          + availability_type     = "ZONAL"
          + disk_autoresize       = true
          + disk_autoresize_limit = 0
          + disk_size             = (known after apply)
          + disk_type             = "PD_SSD"
          + pricing_plan          = "PER_USE"
          + tier                  = "db-f1-micro"
          + user_labels           = (known after apply)
          + version               = (known after apply)

          + backup_configuration ***
              + binary_log_enabled             = (known after apply)
              + enabled                        = (known after apply)
              + location                       = (known after apply)
              + point_in_time_recovery_enabled = (known after apply)
              + start_time                     = (known after apply)
              + transaction_log_retention_days = (known after apply)

              + backup_retention_settings ***
                  + retained_backups = (known after apply)
                  + retention_unit   = (known after apply)
                ***
            ***

          + ip_configuration ***
              + allocated_ip_range = (known after apply)
              + ipv4_enabled       = (known after apply)
              + private_network    = (known after apply)
              + require_ssl        = (known after apply)

              + authorized_networks ***
                  + expiration_time = (known after apply)
                  + name            = (known after apply)
                  + value           = (known after apply)
                ***
            ***

          + location_preference ***
              + follow_gae_application = (known after apply)
              + zone                   = (known after apply)
            ***
        ***
    ***

  # google_sql_user.users will be created
  + resource "google_sql_user" "users" ***
      + host     = "%"
      + id       = (known after apply)
      + instance = "instance_name"
      + name     = "root"
      + password = (sensitive value)
      + project  = "projects/azapp-int-ps51"
    ***

Plan: 3 to add, 0 to change, 0 to destroy.
2022-01-09T07:12:39.179Z [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/random"], implied first by random_string.project_id_suffix (expand)
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_project_service.service_usage (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_project_service.cloud_sql (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_project_service.cloud_resource (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_sql_database_instance.primary_instance (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_project_service.cloud_sql_admin_api (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_sql_database_instance.primary_instance" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_project_service.compute_engine_api (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google-beta"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_project.default (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_sql_database.database (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_sql_user.users" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_sql_database.database" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "random_string.project_id_suffix (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/random"]
2022-01-09T07:12:39.179Z [DEBUG] ProviderTransformer: "google_sql_user.users (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2022-01-09T07:12:39.179Z [DEBUG] pruning unused provider["registry.terraform.io/integrations/github"]
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_sql (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_sql_user.users (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "var.docker_image_api" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "local.devit_billing_account_id (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google-beta\"]" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_project.default (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_sql_database.database (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_project_service.service_usage (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_project_service.compute_engine_api (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/random\"]" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_resource (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_sql_database_instance.primary_instance (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_project_service.cloud_sql_admin_api (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "var.is_prod" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "local.base_project_name (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_sql_user.users" references: [google_project.default (expand) google_sql_database_instance.primary_instance (expand) google_sql_database_instance.primary_instance google_sql_database_instance.primary_instance]
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "random_string.project_id_suffix (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "local.devit_organization_id (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "local.devit_project_folder_id (expand)" references: []
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_sql_database_instance.primary_instance" references: [google_project.default (expand)]
2022-01-09T07:12:39.180Z [DEBUG] ReferenceTransformer: "google_sql_database.database" references: [google_sql_database_instance.primary_instance (expand) google_sql_database_instance.primary_instance google_sql_database_instance.primary_instance google_project.default (expand)]
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: random_string.project_id_suffix (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: local.devit_organization_id (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: local.devit_project_folder_id (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: google_project_service.cloud_sql (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: local.devit_billing_account_id (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: google_project_service.service_usage (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: google_project_service.compute_engine_api (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: provider["registry.terraform.io/hashicorp/random"] is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: local.base_project_name (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: google_project_service.cloud_sql_admin_api (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: google_project_service.cloud_resource (expand) is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] pruneUnusedNodes: provider["registry.terraform.io/hashicorp/google-beta"] is no longer needed, removing
2022-01-09T07:12:39.180Z [DEBUG] Starting graph walk: walkApply
2022-01-09T07:12:39.181Z [DEBUG] created provider logger: level=debug
2022-01-09T07:12:39.181Z [INFO]  provider: configuring client automatic mTLS
2022-01-09T07:12:39.186Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5]
2022-01-09T07:12:39.186Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 pid=19019
2022-01-09T07:12:39.186Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5
2022-01-09T07:12:39.199Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: configuring server automatic mTLS: timestamp=2022-01-09T07:12:39.199Z
2022-01-09T07:12:39.219Z [DEBUG] provider: using plugin: version=5
2022-01-09T07:12:39.219Z [DEBUG] provider.terraform-provider-google_v4.5.0_x5: plugin address: address=/tmp/plugin878948374 network=unix timestamp=2022-01-09T07:12:39.219Z
2022-01-09T07:12:39.287Z [WARN]  ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/google\"]" changed the config value, but that value is unused
2022-01-09T07:12:39.288Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2022-01-09T07:12:39.288Z
2022-01-09T07:12:39.288Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]: timestamp=2022-01-09T07:12:39.288Z
2022-01-09T07:12:39.288Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2022-01-09T07:12:39.288Z
2022-01-09T07:12:39.288Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [INFO]   -- Scopes: [https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/userinfo.email]: timestamp=2022-01-09T07:12:39.288Z
2022-01-09T07:12:39.288Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Waiting for state to become: [success]: timestamp=2022-01-09T07:12:39.288Z
2022-01-09T07:12:39.454Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [INFO] Terraform is using this identity: terraform-check-it-in@devit-root-a93k.iam.gserviceaccount.com: timestamp=2022-01-09T07:12:39.454Z
2022-01-09T07:12:39.458Z [WARN]  Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_sql_database_instance.primary_instance, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .deletion_protection: planned value cty.True for a non-computed attribute
      - .replica_configuration: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .settings[0].activation_policy: planned value cty.StringVal("ALWAYS") for a non-computed attribute
      - .settings[0].availability_type: planned value cty.StringVal("ZONAL") for a non-computed attribute
      - .settings[0].disk_autoresize: planned value cty.True for a non-computed attribute
google_sql_database_instance.primary_instance: Creating...
      - .settings[0].disk_type: planned value cty.StringVal("PD_SSD") for a non-computed attribute
      - .settings[0].disk_autoresize_limit: planned value cty.NumberIntVal(0) for a non-computed attribute
      - .settings[0].pricing_plan: planned value cty.StringVal("PER_USE") for a non-computed attribute
      - .settings[0].ip_configuration: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .settings[0].location_preference: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .settings[0].backup_configuration: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
2022-01-09T07:12:39.459Z [INFO]  Starting apply for google_sql_database_instance.primary_instance
2022-01-09T07:12:39.459Z [DEBUG] google_sql_database_instance.primary_instance: applying the planned Create change
2022-01-09T07:12:39.459Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "settings.0.ip_configuration" from ComputedKeys: timestamp=2022-01-09T07:12:39.459Z
2022-01-09T07:12:39.459Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "settings.0.location_preference" from ComputedKeys: timestamp=2022-01-09T07:12:39.459Z
2022-01-09T07:12:39.459Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "settings.0.backup_configuration" from ComputedKeys: timestamp=2022-01-09T07:12:39.459Z
2022-01-09T07:12:39.459Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "settings.0.user_labels" from ComputedKeys: timestamp=2022-01-09T07:12:39.459Z
2022-01-09T07:12:39.459Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "settings.0.location_preference" from ComputedKeys: timestamp=2022-01-09T07:12:39.459Z
2022-01-09T07:12:39.459Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "settings.0.backup_configuration" from ComputedKeys: timestamp=2022-01-09T07:12:39.459Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "settings.0.user_labels" from ComputedKeys: timestamp=2022-01-09T07:12:39.459Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "settings.0.ip_configuration" from ComputedKeys: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "ip_address" from ComputedKeys: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "server_ca_cert" from ComputedKeys: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] setting computed for "replica_configuration" from ComputedKeys: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Waiting for state to become: [success]: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [INFO] Instantiating Google SqlAdmin client for path https://sqladmin.googleapis.com/: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.460Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
POST /sql/v1beta4/projects/projects%2Fazapp-int-ps51/instances?alt=json&prettyPrint=false HTTP/1.1
Host: sqladmin.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.1.3 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/dev
Content-Length: 240
Content-Type: application/json
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20211201
Accept-Encoding: gzip

***
 "databaseVersion": "MYSQL_5_7",
 "name": "instance_name",
 "region": "us-central1",
 "settings": ***
  "activationPolicy": "ALWAYS",
  "availabilityType": "ZONAL",
  "dataDiskType": "PD_SSD",
  "pricingPlan": "PER_USE",
  "storageAutoResize": true,
  "tier": "db-f1-micro"
 ***
***

-----------------------------------------------------: timestamp=2022-01-09T07:12:39.460Z
2022-01-09T07:12:39.599Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 400 Bad Request
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:43 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
  "error": ***
    "code": 400,
    "message": "Invalid request: instance name (instance_name).",
    "errors": [
      ***
        "message": "Invalid request: instance name (instance_name).",
        "domain": "global",
        "reason": "invalid"
      ***
    ]
  ***
***

-----------------------------------------------------: timestamp=2022-01-09T07:12:39.599Z
2022-01-09T07:12:39.599Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Retry Transport: Stopping retries, last request failed with non-retryable error: googleapi: got HTTP response code 400 with body: HTTP/2.0 400 Bad Request
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Sun, 09 Jan 2022 07:12:43 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

***
  "error": ***
    "code": 400,
    "message": "Invalid request: instance name (instance_name).",
    "errors": [
      ***
        "message": "Invalid request: instance name (instance_name).",
        "domain": "global",
        "reason": "invalid"
      ***
    ]
  ***
***: timestamp=2022-01-09T07:12:39.599Z
2022-01-09T07:12:39.599Z [INFO]  provider.terraform-provider-google_v4.5.0_x5: 2022/01/09 07:12:39 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-01-09T07:12:39.599Z
Error: -09T07:12:39.600Z [ERROR] vertex "google_sql_database_instance.primary_instance" error: Error, failed to create instance instance_name: googleapi: Error 400: Invalid request: instance name (instance_name)., invalid
╷
│ Error: Error, failed to create instance instance_name: googleapi: Error 400: Invalid request: instance name (instance_name)., invalid
│ 
│   with google_sql_database_instance.primary_instance,
│   on cloud-sql.tf line 22, in resource "google_sql_database_instance" "primary_instance":
│   22: resource "google_sql_database_instance" "primary_instance" ***
│ 
╵
2022-01-09T07:12:40.096Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-09T07:12:40.097Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/4.5.0/linux_amd64/terraform-provider-google_v4.5.0_x5 pid=19019
2022-01-09T07:12:40.097Z [DEBUG] provider: plugin exited
Error: Process completed with exit code 1.

Panic Output

Expected Behavior

Database was created

Actual Behavior

Error

Steps to Reproduce

I've been trying to solve this for hours. Terraform is creating the entire project, but it won't create any cloudsql databases for some reason, and I can't figure out why. I was trying to create a postgres database, and now I'm just copying terraform samples directly from blogs, and they won't work either. I'm at a loss for what the problem could be.

  1. terraform apply

Important Factoids

References

ScottPierce commented 2 years ago

Not sure if this could impact things, but I'm using a service account from another project to create this.

shuyama1 commented 2 years ago

Hi @ScottPierce! Looks like _ is not allowed in the sql database instance name. Only lowercase letters, numbers, or hyphens are allowed in the name and it should always start with a letter. Could you please try naming your instance in the correct format and see if that works for you? (e.g. instance-name should be working)

ScottPierce commented 2 years ago

I was trying this with a name that didn't have an underscore in it originally and I was getting the same invalid name error. I'll try it again when I get home.

ScottPierce commented 2 years ago

I just tried the following:

resource "google_sql_database_instance" "primary-instance" {
  project          = google_project.default.id
  name             = "instance-name"
  database_version = "MYSQL_5_7"
  region           = "us-central1"
  settings {
    tier = "db-f1-micro"
  }
}

resource "google_sql_database" "database" {
  project   = google_project.default.id
  name      = "database-name"
  instance  = google_sql_database_instance.primary-instance.name
  charset   = "utf8"
  collation = "utf8_general_ci"
}

resource "google_sql_user" "users" {
  project  = google_project.default.id
  name     = "root"
  instance = google_sql_database_instance.primary-instance.name
  host     = "%"
  password = "XXXXXXXXX"
}

And I'm still getting the same error:

google_sql_database_instance.primary-instance: Creating...
╷
│ Error: Error, failed to create instance instance-name: googleapi: Error 400: Invalid request: Invalid full instance name (projects/azapp-int-agry:instance-name).., invalid
│ 
│   with google_sql_database_instance.primary-instance,
│   on cloud-sql.tf line 22, in resource "google_sql_database_instance" "primary-instance":
│   22: resource "google_sql_database_instance" "primary-instance" ***
│ 
╵
Error: Process completed with exit code 1.
ScottPierce commented 2 years ago

For good measure I tried the below configuration with the same result as well:

resource "google_sql_database_instance" "fjhaksjhdfjhaf" {
  project          = google_project.default.id
  name             = "asdfjkasdfk"
  database_version = "MYSQL_5_7"
  region           = "us-central1"
  settings {
    tier = "db-f1-micro"
  }
}
ScottPierce commented 2 years ago

Here is the full debug log of me trying a configuration without any underscores.

tf-debug-log.txt

shuyama1 commented 2 years ago

Oh, it looks like that project_id should be used for google_project.default.id instead of id. Could you try that and see if that solves your problem?

ScottPierce commented 2 years ago

Thanks - that fixed it

github-actions[bot] commented 2 years ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.