Skip to content

Instantly share code, notes, and snippets.

@afafara
Created December 3, 2020 08:03
Show Gist options
  • Save afafara/2aa85a4bc65efe7088c5fc3d4052e537 to your computer and use it in GitHub Desktop.
Save afafara/2aa85a4bc65efe7088c5fc3d4052e537 to your computer and use it in GitHub Desktop.
cloud function tf error
2020/12/03 08:57:26 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/12/03 08:57:26 [INFO] Terraform version: 0.13.5
2020/12/03 08:57:26 [INFO] Go runtime version: go1.14.10
2020/12/03 08:57:26 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "-auto-approve"}
2020/12/03 08:57:26 [DEBUG] Attempting to open CLI config file: /Users/afafa/.terraformrc
2020/12/03 08:57:26 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/12/03 08:57:26 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/12/03 08:57:26 [DEBUG] ignoring non-existing provider search directory /Users/afafa/.terraform.d/plugins
2020/12/03 08:57:26 [DEBUG] ignoring non-existing provider search directory /Users/afafa/Library/Application Support/io.terraform/plugins
2020/12/03 08:57:26 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2020/12/03 08:57:26 [INFO] CLI command args: []string{"apply", "-auto-approve"}
2020/12/03 08:57:26 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/12/03 08:57:26 [DEBUG] New state was assigned lineage "e498a5c0-64af-c8ea-aec2-7f8f40b6c2c8"
2020/12/03 08:57:27 [DEBUG] checking for provisioner in "."
2020/12/03 08:57:27 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/12/03 08:57:27 [INFO] Failed to read plugin lock file .terraform/plugins/darwin_amd64/lock.json: open .terraform/plugins/darwin_amd64/lock.json: no such file or directory
2020/12/03 08:57:27 [INFO] backend/local: starting Apply operation
2020-12-03T08:57:27.164+0100 [INFO] plugin: configuring client automatic mTLS
2020-12-03T08:57:27.190+0100 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 args=[.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5]
2020-12-03T08:57:27.194+0100 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5211
2020-12-03T08:57:27.194+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5
2020-12-03T08:57:27.215+0100 [INFO] plugin.terraform-provider-google_v3.49.0_x5: configuring server automatic mTLS: timestamp=2020-12-03T08:57:27.215+0100
2020-12-03T08:57:27.242+0100 [DEBUG] plugin: using plugin: version=5
2020-12-03T08:57:27.242+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: plugin address: address=/var/folders/dz/yy23k_g920ld5smg9rcsmzgxqzvr8f/T/plugin981222038 network=unix timestamp=2020-12-03T08:57:27.242+0100
2020-12-03T08:57:27.343+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-03T08:57:27.344+0100 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5211
2020-12-03T08:57:27.344+0100 [DEBUG] plugin: plugin exited
2020/12/03 08:57:27 [INFO] terraform: building graph: GraphTypeValidate
2020/12/03 08:57:27 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_cloudfunctions_function.function
2020/12/03 08:57:27 [DEBUG] ProviderTransformer: "google_cloudfunctions_function.function" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2020/12/03 08:57:27 [DEBUG] ReferenceTransformer: "google_cloudfunctions_function.function" references: []
2020/12/03 08:57:27 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2020/12/03 08:57:27 [DEBUG] Starting graph walk: walkValidate
2020-12-03T08:57:27.345+0100 [INFO] plugin: configuring client automatic mTLS
2020-12-03T08:57:27.370+0100 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 args=[.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5]
2020-12-03T08:57:27.376+0100 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5212
2020-12-03T08:57:27.376+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5
2020-12-03T08:57:27.396+0100 [INFO] plugin.terraform-provider-google_v3.49.0_x5: configuring server automatic mTLS: timestamp=2020-12-03T08:57:27.396+0100
2020-12-03T08:57:27.423+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: plugin address: address=/var/folders/dz/yy23k_g920ld5smg9rcsmzgxqzvr8f/T/plugin194840739 network=unix timestamp=2020-12-03T08:57:27.423+0100
2020-12-03T08:57:27.423+0100 [DEBUG] plugin: using plugin: version=5
2020-12-03T08:57:27.554+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-03T08:57:27.556+0100 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5212
2020-12-03T08:57:27.556+0100 [DEBUG] plugin: plugin exited
2020/12/03 08:57:27 [INFO] backend/local: apply calling Refresh
2020/12/03 08:57:27 [INFO] terraform: building graph: GraphTypeRefresh
2020/12/03 08:57:27 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_cloudfunctions_function.function (expand)
2020/12/03 08:57:27 [DEBUG] ProviderTransformer: "google_cloudfunctions_function.function (expand)" (*terraform.nodeExpandRefreshableManagedResource) needs provider["registry.terraform.io/hashicorp/google"]
2020/12/03 08:57:27 [DEBUG] ReferenceTransformer: "google_cloudfunctions_function.function (expand)" references: []
2020/12/03 08:57:27 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2020/12/03 08:57:27 [DEBUG] Starting graph walk: walkRefresh
2020-12-03T08:57:27.557+0100 [INFO] plugin: configuring client automatic mTLS
2020-12-03T08:57:27.584+0100 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 args=[.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5]
2020-12-03T08:57:27.591+0100 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5213
2020-12-03T08:57:27.591+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5
2020-12-03T08:57:27.612+0100 [INFO] plugin.terraform-provider-google_v3.49.0_x5: configuring server automatic mTLS: timestamp=2020-12-03T08:57:27.612+0100
2020-12-03T08:57:27.641+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: plugin address: address=/var/folders/dz/yy23k_g920ld5smg9rcsmzgxqzvr8f/T/plugin471543824 network=unix timestamp=2020-12-03T08:57:27.641+0100
2020-12-03T08:57:27.641+0100 [DEBUG] plugin: using plugin: version=5
2020-12-03T08:57:27.754+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [INFO] Authenticating using DefaultClient...
2020-12-03T08:57:27.754+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]
google_cloudfunctions_function.function: Refreshing state... [id=some-project/europe-west1/function-test]
2020-12-03T08:57:27.757+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [DEBUG] matching ID some-project/europe-west1/function-test to regex (?P<project>[^/]+)/(?P<region>[^/]+)/(?P<name>[^/]+).
2020-12-03T08:57:27.757+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [DEBUG] importing project = some-project
2020-12-03T08:57:27.757+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [DEBUG] importing region = europe-west1
2020-12-03T08:57:27.757+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [DEBUG] importing name = function-test
2020-12-03T08:57:27.757+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [INFO] Instantiating Google Cloud CloudFunctions Client for path https://cloudfunctions.googleapis.com/
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [DEBUG] Retry Transport: starting RoundTrip retry loop
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [DEBUG] Retry Transport: request attempt 0
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:27 [DEBUG] Google API Request Details:
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: ---[ REQUEST ]---------------------------------------
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: GET /v1/projects/some-project/locations/europe-west1/functions/function-test?alt=json&prettyPrint=false HTTP/1.1
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Host: cloudfunctions.googleapis.com
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: User-Agent: google-api-go-client/0.5 Terraform/0.13.5 (+https://www.terraform.io) Terraform-Plugin-SDK/2.1.0 terraform-provider-google/3.49.0
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Goog-Api-Client: gl-go/1.14.5 gdcl/20201023
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Accept-Encoding: gzip
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:27.758+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: -----------------------------------------------------
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] Google API Response Details:
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: ---[ RESPONSE ]--------------------------------------
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: HTTP/1.1 200 OK
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Connection: close
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Transfer-Encoding: chunked
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":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"
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Cache-Control: private
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Content-Type: application/json; charset=UTF-8
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Date: Thu, 03 Dec 2020 07:57:28 GMT
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Server: ESF
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: Origin
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: X-Origin
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: Referer
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Content-Type-Options: nosniff
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Frame-Options: SAMEORIGIN
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Xss-Protection: 0
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 486
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: {
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "name": "projects/some-project/locations/europe-west1/functions/function-test",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "httpsTrigger": {
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "url": "https://europe-west1-some-project.cloudfunctions.net/function-test"
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: },
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "status": "ACTIVE",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "entryPoint": "helloWorld",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "timeout": "60s",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "availableMemoryMb": 128,
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "serviceAccountEmail": "[email protected]",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "updateTime": "2020-12-03T07:52:40.727Z",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "versionId": "1",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "labels": {
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "deployment-tool": "cli-gcloud"
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: },
_v3.49.0_x5: "sourceUploadUrl": "https://storage.googleapis.com/gcf-upload-europe-west1-some-url/some-archive.zip?GoogleAccessId=service-1234567890@gcf-admin-robot.iam.gserviceaccount.com&Expires=1606983697&Signature=XXXXXX",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "runtime": "nodejs10",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "ingressSettings": "ALLOW_ALL",
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "buildId": "a4b04397-c350-4e31-bc4d-9cfcae46b59a"
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 0
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: -----------------------------------------------------
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] Retry Transport: Stopping retries, last request was successful
2020-12-03T08:57:28.362+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] Retry Transport: Returning after 1 attempts
2020-12-03T08:57:28.364+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-03T08:57:28.367+0100 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5213
2020-12-03T08:57:28.367+0100 [DEBUG] plugin: plugin exited
2020/12/03 08:57:28 [INFO] backend/local: apply calling Plan
2020/12/03 08:57:28 [INFO] terraform: building graph: GraphTypePlan
2020/12/03 08:57:28 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_cloudfunctions_function.function (expand)
2020/12/03 08:57:28 [DEBUG] ProviderTransformer: "google_cloudfunctions_function.function (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2020/12/03 08:57:28 [DEBUG] ReferenceTransformer: "google_cloudfunctions_function.function (expand)" references: []
2020/12/03 08:57:28 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2020/12/03 08:57:28 [DEBUG] Starting graph walk: walkPlan
2020-12-03T08:57:28.368+0100 [INFO] plugin: configuring client automatic mTLS
2020-12-03T08:57:28.396+0100 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 args=[.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5]
2020-12-03T08:57:28.402+0100 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5224
2020-12-03T08:57:28.402+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5
2020-12-03T08:57:28.424+0100 [INFO] plugin.terraform-provider-google_v3.49.0_x5: configuring server automatic mTLS: timestamp=2020-12-03T08:57:28.424+0100
2020-12-03T08:57:28.454+0100 [DEBUG] plugin: using plugin: version=5
2020-12-03T08:57:28.454+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: plugin address: network=unix address=/var/folders/dz/yy23k_g920ld5smg9rcsmzgxqzvr8f/T/plugin948166743 timestamp=2020-12-03T08:57:28.454+0100
2020-12-03T08:57:28.568+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [INFO] Authenticating using DefaultClient...
2020-12-03T08:57:28.568+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]
2020/12/03 08:57:28 [DEBUG] ReferenceTransformer: "google_cloudfunctions_function.function" references: []
2020/12/03 08:57:28 [WARN] Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_cloudfunctions_function.function, 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:
- .labels: planned value cty.MapValEmpty(cty.String) does not match config value cty.NullVal(cty.Map(cty.String)) nor prior value cty.MapVal(map[string]cty.Value{"deployment-tool":cty.StringVal("cli-gcloud")})
- .timeouts: planned for existence but config wants absense
2020-12-03T08:57:28.573+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-03T08:57:28.575+0100 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5224
2020-12-03T08:57:28.575+0100 [DEBUG] plugin: plugin exited
2020/12/03 08:57:28 [INFO] backend/local: apply calling Apply
2020/12/03 08:57:28 [INFO] terraform: building graph: GraphTypeApply
2020/12/03 08:57:28 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/google"], implied first by google_cloudfunctions_function.function (expand)
2020/12/03 08:57:28 [DEBUG] ProviderTransformer: "google_cloudfunctions_function.function (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2020/12/03 08:57:28 [DEBUG] ProviderTransformer: "google_cloudfunctions_function.function" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/google"]
2020/12/03 08:57:28 [DEBUG] ReferenceTransformer: "google_cloudfunctions_function.function" references: []
2020/12/03 08:57:28 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2020/12/03 08:57:28 [DEBUG] ReferenceTransformer: "google_cloudfunctions_function.function (expand)" references: []
2020/12/03 08:57:28 [DEBUG] Starting graph walk: walkApply
2020-12-03T08:57:28.576+0100 [INFO] plugin: configuring client automatic mTLS
2020-12-03T08:57:28.605+0100 [DEBUG] plugin: starting plugin: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 args=[.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5]
2020-12-03T08:57:28.611+0100 [DEBUG] plugin: plugin started: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5225
2020-12-03T08:57:28.611+0100 [DEBUG] plugin: waiting for RPC address: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5
2020-12-03T08:57:28.633+0100 [INFO] plugin.terraform-provider-google_v3.49.0_x5: configuring server automatic mTLS: timestamp=2020-12-03T08:57:28.633+0100
2020-12-03T08:57:28.662+0100 [DEBUG] plugin: using plugin: version=5
2020-12-03T08:57:28.662+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: plugin address: network=unix address=/var/folders/dz/yy23k_g920ld5smg9rcsmzgxqzvr8f/T/plugin971439404 timestamp=2020-12-03T08:57:28.662+0100
2020-12-03T08:57:28.774+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [INFO] Authenticating using DefaultClient...
2020-12-03T08:57:28.774+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-identity https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]
2020/12/03 08:57:28 [WARN] Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_cloudfunctions_function.function, 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:
- .labels: planned value cty.MapValEmpty(cty.String) does not match config value cty.NullVal(cty.Map(cty.String)) nor prior value cty.MapVal(map[string]cty.Value{"deployment-tool":cty.StringVal("cli-gcloud")})
- .timeouts: planned for existence but config wants absense
google_cloudfunctions_function.function: Modifying... [id=some-project/europe-west1/function-test]
2020/12/03 08:57:28 [DEBUG] EvalApply: ProviderMeta config value set
2020/12/03 08:57:28 [DEBUG] google_cloudfunctions_function.function: applying the planned Update change
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG]: Updating google_cloudfunctions_function
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] matching ID some-project/europe-west1/function-test to regex (?P<project>[^/]+)/(?P<region>[^/]+)/(?P<name>[^/]+).
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] importing project = some-project
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] importing region = europe-west1
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] importing name = function-test
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [INFO] Instantiating Google Cloud CloudFunctions Client for path https://cloudfunctions.googleapis.com/
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] Retry Transport: starting RoundTrip retry loop
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] Retry Transport: request attempt 0
2020-12-03T08:57:28.782+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:28 [DEBUG] Google API Request Details:
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: ---[ REQUEST ]---------------------------------------
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: GET /v1/projects/some-project/locations/europe-west1/functions/function-test?alt=json&prettyPrint=false HTTP/1.1
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Host: cloudfunctions.googleapis.com
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: User-Agent: google-api-go-client/0.5 Terraform/0.13.5 (+https://www.terraform.io) Terraform-Plugin-SDK/2.1.0 terraform-provider-google/3.49.0
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Goog-Api-Client: gl-go/1.14.5 gdcl/20201023
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Accept-Encoding: gzip
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:28.783+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: -----------------------------------------------------
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Google API Response Details:
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: ---[ RESPONSE ]--------------------------------------
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: HTTP/1.1 200 OK
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Connection: close
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Transfer-Encoding: chunked
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":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"
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Cache-Control: private
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Content-Type: application/json; charset=UTF-8
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Date: Thu, 03 Dec 2020 07:57:29 GMT
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Server: ESF
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: Origin
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: X-Origin
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: Referer
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Content-Type-Options: nosniff
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Frame-Options: SAMEORIGIN
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Xss-Protection: 0
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 486
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: {
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "name": "projects/some-project/locations/europe-west1/functions/function-test",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "httpsTrigger": {
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "url": "https://europe-west1-some-project.cloudfunctions.net/function-test"
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: },
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "status": "ACTIVE",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "entryPoint": "helloWorld",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "timeout": "60s",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "availableMemoryMb": 128,
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "serviceAccountEmail": "[email protected]",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "updateTime": "2020-12-03T07:52:40.727Z",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "versionId": "1",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "labels": {
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "deployment-tool": "cli-gcloud"
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: },
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "sourceUploadUrl": "https://storage.googleapis.com/gcf-upload-europe-west1-some-url/some-archive.zip?GoogleAccessId=service-1234567890@gcf-admin-robot.iam.gserviceaccount.com&Expires=1606983697&Signature=XXXXXX",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "runtime": "nodejs10",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "ingressSettings": "ALLOW_ALL",
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "buildId": "a4b04397-c350-4e31-bc4d-9cfcae46b59a"
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 0
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
ovider-google_v3.49.0_x5:
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: -----------------------------------------------------
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Retry Transport: Stopping retries, last request was successful
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Retry Transport: Returning after 1 attempts
=UTF-8"}, "Date":[]string{"Thu, 03 Dec 2020 07:57:29 GMT"}, "Server":[]string{"ESF"}, "Vary":[]string{"Origin", "X-Origin", "Referer"}, "X-Content-Type-Options":[]string{"nosniff"}, "X-Frame-Options":[]string{"SAMEORIGIN"}, "X-Xss-Protection":[]string{"0"}}}, ForceSendFields:[]string(nil), NullFields:[]string(nil)}
2020-12-03T08:57:29.369+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [INFO] Instantiating Google Cloud CloudFunctions Client for path https://cloudfunctions.googleapis.com/
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Retry Transport: starting RoundTrip retry loop
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Retry Transport: request attempt 0
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Google API Request Details:
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: ---[ REQUEST ]---------------------------------------
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: PATCH /v1/projects/some-project/locations/europe-west1/functions/function-test?alt=json&prettyPrint=false&updateMask=sourceArchiveUrl%2Clabels HTTP/1.1
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Host: cloudfunctions.googleapis.com
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: User-Agent: google-api-go-client/0.5 Terraform/0.13.5 (+https://www.terraform.io) Terraform-Plugin-SDK/2.1.0 terraform-provider-google/3.49.0
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Content-Length: 1232
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Content-Type: application/json
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Goog-Api-Client: gl-go/1.14.5 gdcl/20201023
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Accept-Encoding: gzip
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: {
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "availableMemoryMb": 128,
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "buildId": "a4b04397-c350-4e31-bc4d-9cfcae46b59a",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "entryPoint": "helloWorld",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "httpsTrigger": {
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "url": "https://europe-west1-some-project.cloudfunctions.net/function-test"
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: },
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "ingressSettings": "ALLOW_ALL",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "name": "projects/some-project/locations/europe-west1/functions/function-test",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "runtime": "nodejs10",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "serviceAccountEmail": "[email protected]",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "sourceArchiveUrl": "gs://cf-hello-world-some-project/hello-world.zip",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "sourceUploadUrl": "https://storage.googleapis.com/gcf-upload-europe-west1-some-url/some-archive.zip?GoogleAccessId=service-1234567890@gcf-admin-robot.iam.gserviceaccount.com\u0026Expires=1606983697\u0026Signature=XXXXXX",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "status": "ACTIVE",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "timeout": "60s",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "updateTime": "2020-12-03T07:52:40.727Z",
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "versionId": "1"
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.370+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: -----------------------------------------------------
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Google API Response Details:
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: ---[ RESPONSE ]--------------------------------------
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: HTTP/1.1 400 Bad Request
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Connection: close
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Transfer-Encoding: chunked
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":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"
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Cache-Control: private
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Content-Type: application/json; charset=UTF-8
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Date: Thu, 03 Dec 2020 07:57:29 GMT
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Server: ESF
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: Origin
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: X-Origin
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: Referer
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Content-Type-Options: nosniff
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Frame-Options: SAMEORIGIN
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Xss-Protection: 0
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 18a
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: {
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "error": {
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "code": 400,
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "message": "Invalid value at 'function' (oneof), oneof field 'source_code' is already set. Cannot set 'sourceUploadUrl'",
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "errors": [
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: {
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "message": "Invalid value at 'function' (oneof), oneof field 'source_code' is already set. Cannot set 'sourceUploadUrl'",
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "reason": "invalid"
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: ],
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "status": "INVALID_ARGUMENT"
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 0
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: -----------------------------------------------------
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Retry Transport: Stopping retries, last request failed with non-retryable error: googleapi: got HTTP response code 400 with body: HTTP/1.1 400 Bad Request
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Connection: close
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Transfer-Encoding: chunked
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":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"
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Cache-Control: private
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Content-Type: application/json; charset=UTF-8
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Date: Thu, 03 Dec 2020 07:57:29 GMT
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Server: ESF
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: Origin
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: X-Origin
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: Vary: Referer
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Content-Type-Options: nosniff
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Frame-Options: SAMEORIGIN
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: X-Xss-Protection: 0
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 18a
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: {
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "error": {
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "code": 400,
9.0_x5: "message": "Invalid value at 'function' (oneof), oneof field 'source_code' is already set. Cannot set 'sourceUploadUrl'",
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "errors": [
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: {
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "message": "Invalid value at 'function' (oneof), oneof field 'source_code' is already set. Cannot set 'sourceUploadUrl'",
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "reason": "invalid"
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: ],
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: "status": "INVALID_ARGUMENT"
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: }
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 0
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5:
2020-12-03T08:57:29.646+0100 [DEBUG] plugin.terraform-provider-google_v3.49.0_x5: 2020/12/03 08:57:29 [DEBUG] Retry Transport: Returning after 1 attempts
2020/12/03 08:57:29 [DEBUG] google_cloudfunctions_function.function: apply errored, but we're indicating that via the Error pointer rather than returning it: Error while updating cloudfunction configuration: googleapi: Error 400: Invalid value at 'function' (oneof), oneof field 'source_code' is already set. Cannot set 'sourceUploadUrl', invalid
2020/12/03 08:57:29 [ERROR] eval: *terraform.EvalApplyPost, err: Error while updating cloudfunction configuration: googleapi: Error 400: Invalid value at 'function' (oneof), oneof field 'source_code' is already set. Cannot set 'sourceUploadUrl', invalid
2020/12/03 08:57:29 [ERROR] eval: *terraform.EvalSequence, err: Error while updating cloudfunction configuration: googleapi: Error 400: Invalid value at 'function' (oneof), oneof field 'source_code' is already set. Cannot set 'sourceUploadUrl', invalid

Error: Error while updating cloudfunction configuration: googleapi: Error 400: Invalid value at 'function' (oneof), oneof field 'source_code' is already set. Cannot set 'sourceUploadUrl', invalid

2020-12-03T08:57:29.663+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-12-03T08:57:29.666+0100 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.49.0/darwin_amd64/terraform-provider-google_v3.49.0_x5 pid=5225
2020-12-03T08:57:29.666+0100 [DEBUG] plugin: plugin exited
{
"version": 4,
"terraform_version": "0.13.5",
"serial": 1,
"lineage": "cabd7e77-8dc0-c0d3-5a7d-a2fd8cbcaa7e",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "google_cloudfunctions_function",
"name": "function",
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"available_memory_mb": 128,
"build_environment_variables": null,
"description": "",
"entry_point": "helloWorld",
"environment_variables": {},
"event_trigger": [],
"https_trigger_url": "https://europe-west1-some-project.cloudfunctions.net/function-test",
"id": "some-project/europe-west1/function-test",
"ingress_settings": "ALLOW_ALL",
"labels": {
"deployment-tool": "cli-gcloud"
},
"max_instances": 0,
"name": "function-test",
"project": "some-project",
"region": "europe-west1",
"runtime": "nodejs10",
"service_account_email": "[email protected]",
"source_archive_bucket": null,
"source_archive_object": null,
"source_repository": [],
"timeout": 60,
"timeouts": {
"create": null,
"delete": null,
"read": null,
"update": null
},
"trigger_http": true,
"vpc_connector": "",
"vpc_connector_egress_settings": ""
},
"private": "xxx"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment