You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.
Terraform Version
?1 % terraform -v
Terraform v1.0.0
on darwin_amd64
+ provider registry.terraform.io/hashicorp/google v3.74.0
+ provider registry.terraform.io/kreuzwerker/docker v2.13.0
Your version of Terraform is out of date! The latest version
is 1.0.1. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
Google compute network
Google compute instance
Terraform Configuration Files
terraform {
required_providers {
google = {
source ="hashicorp/google"
version ="3.74.0"
}
}
}
provider"google" {
credentials ="<service account key>"
project ="playground"
region ="australia-southeast1"
zone ="australia-southeast1-b"
}
resource"google_compute_network""vpc_network" {
name ="terraform-network"
}
resource"google_compute_instance""vm_instance" {
name ="terraform-instance"
machine_type ="e2-small"
zone ="australia-southeast1-b"boot_disk {
initialize_params {
image ="rocky-linux-8"
}
}
network_interface {
network = google_compute_network.vpc_network.nameaccess_config {
}
}
}
Debug Output
√ % terraform apply
2021-07-08T17:06:12.455+1000 [DEBUG] Adding temp file log sink: /var/folders/66/cnqm9nf51fn3gv1yklgkffmw0000gp/T/terraform-log817443893
2021-07-08T17:06:12.455+1000 [INFO] Terraform version: 1.0.0
2021-07-08T17:06:12.455+1000 [INFO] Go runtime version: go1.16.4
2021-07-08T17:06:12.455+1000 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2021-07-08T17:06:12.455+1000 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2021-07-08T17:06:12.455+1000 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-07-08T17:06:12.455+1000 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-07-08T17:06:12.455+1000 [DEBUG] ignoring non-existing provider search directory /Users/user/.terraform.d/plugins
2021-07-08T17:06:12.455+1000 [DEBUG] ignoring non-existing provider search directory /Users/user/Library/Application Support/io.terraform/plugins
2021-07-08T17:06:12.455+1000 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2021-07-08T17:06:12.456+1000 [INFO] CLI command args: []string{"apply"}
2021-07-08T17:06:12.482+1000 [DEBUG] New state was assigned lineage "d4348fb8-e07e-2569-fcfe-9359b52ab7b4"
2021-07-08T17:06:12.743+1000 [DEBUG] checking for provisioner in "."
2021-07-08T17:06:12.749+1000 [DEBUG] checking for provisioner in "/usr/local/bin"
2021-07-08T17:06:12.750+1000 [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
2021-07-08T17:06:12.755+1000 [INFO] backend/local: starting Apply operation
2021-07-08T17:06:12.770+1000 [DEBUG] created provider logger: level=debug
2021-07-08T17:06:12.770+1000 [INFO] provider: configuring client automatic mTLS
2021-07-08T17:06:12.816+1000 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5]
2021-07-08T17:06:12.821+1000 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 pid=17056
2021-07-08T17:06:12.822+1000 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5
2021-07-08T17:06:12.845+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: configuring server automatic mTLS: timestamp=2021-07-08T17:06:12.844+1000
2021-07-08T17:06:12.880+1000 [DEBUG] provider.terraform-provider-google_v3.74.0_x5: plugin address: address=/var/folders/66/cnqm9nf51fn3gv1yklgkffmw0000gp/T/plugin565575527 network=unix timestamp=2021-07-08T17:06:12.879+1000
2021-07-08T17:06:12.880+1000 [DEBUG] provider: using plugin: version=5
2021-07-08T17:06:12.983+1000 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-07-08T17:06:12.985+1000 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 pid=17056
2021-07-08T17:06:12.985+1000 [DEBUG] provider: plugin exited
2021-07-08T17:06:12.989+1000 [INFO] terraform: building graph: GraphTypeValidate
2021-07-08T17:06:12.993+1000 [DEBUG] ProviderTransformer: "google_compute_instance.vm_instance" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021-07-08T17:06:12.994+1000 [DEBUG] ProviderTransformer: "google_compute_network.vpc_network" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021-07-08T17:06:12.997+1000 [DEBUG] ReferenceTransformer: "google_compute_instance.vm_instance" references: [google_compute_network.vpc_network]
2021-07-08T17:06:12.997+1000 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2021-07-08T17:06:12.997+1000 [DEBUG] ReferenceTransformer: "google_compute_network.vpc_network" references: []
2021-07-08T17:06:12.999+1000 [DEBUG] Starting graph walk: walkValidate
2021-07-08T17:06:13.000+1000 [DEBUG] created provider logger: level=debug
2021-07-08T17:06:13.000+1000 [INFO] provider: configuring client automatic mTLS
2021-07-08T17:06:13.032+1000 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5]
2021-07-08T17:06:13.037+1000 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 pid=17057
2021-07-08T17:06:13.037+1000 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5
2021-07-08T17:06:13.059+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: configuring server automatic mTLS: timestamp=2021-07-08T17:06:13.059+1000
2021-07-08T17:06:13.095+1000 [DEBUG] provider.terraform-provider-google_v3.74.0_x5: plugin address: address=/var/folders/66/cnqm9nf51fn3gv1yklgkffmw0000gp/T/plugin693526284 network=unix timestamp=2021-07-08T17:06:13.094+1000
2021-07-08T17:06:13.095+1000 [DEBUG] provider: using plugin: version=5
2021-07-08T17:06:13.216+1000 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-07-08T17:06:13.218+1000 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 pid=17057
2021-07-08T17:06:13.218+1000 [DEBUG] provider: plugin exited
2021-07-08T17:06:13.218+1000 [INFO] backend/local: apply calling Plan
2021-07-08T17:06:13.218+1000 [INFO] terraform: building graph: GraphTypePlan
2021-07-08T17:06:13.218+1000 [DEBUG] ProviderTransformer: "google_compute_network.vpc_network (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021-07-08T17:06:13.218+1000 [DEBUG] ProviderTransformer: "google_compute_instance.vm_instance (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021-07-08T17:06:13.219+1000 [DEBUG] ReferenceTransformer: "google_compute_network.vpc_network (expand)" references: []
2021-07-08T17:06:13.219+1000 [DEBUG] ReferenceTransformer: "google_compute_instance.vm_instance (expand)" references: [google_compute_network.vpc_network (expand)]
2021-07-08T17:06:13.219+1000 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2021-07-08T17:06:13.219+1000 [DEBUG] Starting graph walk: walkPlan
2021-07-08T17:06:13.220+1000 [DEBUG] created provider logger: level=debug
2021-07-08T17:06:13.220+1000 [INFO] provider: configuring client automatic mTLS
2021-07-08T17:06:13.248+1000 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5]
2021-07-08T17:06:13.254+1000 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 pid=17058
2021-07-08T17:06:13.255+1000 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5
2021-07-08T17:06:13.277+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: configuring server automatic mTLS: timestamp=2021-07-08T17:06:13.276+1000
2021-07-08T17:06:13.310+1000 [DEBUG] provider.terraform-provider-google_v3.74.0_x5: plugin address: address=/var/folders/66/cnqm9nf51fn3gv1yklgkffmw0000gp/T/plugin391092457 network=unix timestamp=2021-07-08T17:06:13.309+1000
2021-07-08T17:06:13.310+1000 [DEBUG] provider: using plugin: version=5
2021-07-08T17:06:13.415+1000 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/google\"]" changed the config value, but that value is unused
2021-07-08T17:06:13.417+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:13 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2021-07-08T17:06:13.417+1000
2021-07-08T17:06:13.417+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:13 [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]: timestamp=2021-07-08T17:06:13.417+1000
2021-07-08T17:06:13.417+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:13 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2021-07-08T17:06:13.417+1000
2021-07-08T17:06:13.417+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:13 [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]: timestamp=2021-07-08T17:06:13.417+1000
2021-07-08T17:06:13.417+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:13 [DEBUG] Waiting for state to become: [success]: timestamp=2021-07-08T17:06:13.417+1000
2021-07-08T17:06:14.342+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:14 [INFO] Terraform is using this identity: terraform@playground-test.iam.gserviceaccount.com: timestamp=2021-07-08T17:06:14.342+1000
2021-07-08T17:06:14.349+1000 [DEBUG] ReferenceTransformer: "google_compute_network.vpc_network" references: []
google_compute_network.vpc_network: Refreshing state... [id=projects/playground-test/global/networks/terraform-network]
2021-07-08T17:06:14.358+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:14 [DEBUG] Waiting for state to become: [success]: timestamp=2021-07-08T17:06:14.358+1000
2021-07-08T17:06:14.358+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:14 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2021-07-08T17:06:14.358+1000
2021-07-08T17:06:14.358+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:14 [DEBUG] Retry Transport: request attempt 0: timestamp=2021-07-08T17:06:14.358+1000
2021-07-08T17:06:14.358+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:14 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /compute/v1/projects/playground-test/global/networks/terraform-network?alt=json HTTP/1.1
Host: compute.googleapis.com
User-Agent: Terraform/1.0.0 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/3.74.0
Content-Type: application/json
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2021-07-08T17:06:14.358+1000
2021-07-08T17:06:15.262+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:15 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,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"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Thu, 08 Jul 2021 07:06:15 GMT
Etag: HEua_X0KuDrRuO5PBa9J3SVgGSc=/em8q7LdeCh8vgLqWNFKlHcQDJQo=
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0
{
"id": "3420060861606904096",
"creationTimestamp": "2021-07-07T21:32:15.338-07:00",
"name": "terraform-network",
"selfLink": "https://www.googleapis.com/compute/v1/projects/playground-test/global/networks/terraform-network",
"autoCreateSubnetworks": true,
"subnetworks": [
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/europe-central2/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/us-west2/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/us-east4/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/europe-west3/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/us-east1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/us-west1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/us-west3/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/europe-north1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/europe-west1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/southamerica-east1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-south1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/us-central1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-southeast1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-southeast2/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-northeast3/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-northeast1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-east1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/australia-southeast1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/us-west4/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/australia-southeast2/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-northeast2/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/europe-west4/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/europe-west6/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-south2/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/northamerica-northeast1/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/asia-east2/subnetworks/terraform-network",
"https://www.googleapis.com/compute/v1/projects/playground-test/regions/europe-west2/subnetworks/terraform-network"
],
"routingConfig": {
"routingMode": "REGIONAL"
},
"kind": "compute#network"
}
-----------------------------------------------------: timestamp=2021-07-08T17:06:15.262+1000
2021-07-08T17:06:15.262+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:15 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2021-07-08T17:06:15.262+1000
2021-07-08T17:06:15.263+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:15 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2021-07-08T17:06:15.262+1000
2021-07-08T17:06:15.268+1000 [WARN] Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_compute_network.vpc_network, 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:
- .delete_default_routes_on_create: planned value cty.False for a non-computed attribute
- .description: planned value cty.StringVal("") for a non-computed attribute
- .auto_create_subnetworks: planned value cty.True for a non-computed attribute
2021-07-08T17:06:15.270+1000 [DEBUG] Resource instance state not found for node "google_compute_instance.vm_instance", instance google_compute_instance.vm_instance
2021-07-08T17:06:15.270+1000 [DEBUG] ReferenceTransformer: "google_compute_instance.vm_instance" references: []
2021-07-08T17:06:15.270+1000 [DEBUG] refresh: google_compute_instance.vm_instance: no state, so not refreshing
2021-07-08T17:06:15.277+1000 [WARN] Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_compute_instance.vm_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.False for a non-computed attribute
- .can_ip_forward: planned value cty.False for a non-computed attribute
- .boot_disk[0].mode: planned value cty.StringVal("READ_WRITE") for a non-computed attribute
- .boot_disk[0].auto_delete: planned value cty.True for a non-computed attribute
- .confidential_instance_config: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .scheduling: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
2021-07-08T17:06:15.278+1000 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-07-08T17:06:15.281+1000 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 pid=17058
2021-07-08T17:06:15.281+1000 [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_compute_instance.vm_instance will be created
+ resource "google_compute_instance" "vm_instance" {
+ can_ip_forward = false
+ cpu_platform = (known after apply)
+ current_status = (known after apply)
+ deletion_protection = false
+ guest_accelerator = (known after apply)
+ id = (known after apply)
+ instance_id = (known after apply)
+ label_fingerprint = (known after apply)
+ machine_type = "e2-small"
+ metadata_fingerprint = (known after apply)
+ min_cpu_platform = (known after apply)
+ name = "terraform-instance"
+ project = (known after apply)
+ self_link = (known after apply)
+ tags_fingerprint = (known after apply)
+ zone = "australia-southeast1-b"
+ boot_disk {
+ auto_delete = true
+ device_name = (known after apply)
+ disk_encryption_key_sha256 = (known after apply)
+ kms_key_self_link = (known after apply)
+ mode = "READ_WRITE"
+ source = (known after apply)
+ initialize_params {
+ image = "rocky-linux-8"
+ labels = (known after apply)
+ size = (known after apply)
+ type = (known after apply)
}
}
+ confidential_instance_config {
+ enable_confidential_compute = (known after apply)
}
+ network_interface {
+ name = (known after apply)
+ network = "terraform-network"
+ network_ip = (known after apply)
+ subnetwork = (known after apply)
+ subnetwork_project = (known after apply)
+ access_config {
+ nat_ip = (known after apply)
+ network_tier = (known after apply)
}
}
+ scheduling {
+ automatic_restart = (known after apply)
+ min_node_cpus = (known after apply)
+ on_host_maintenance = (known after apply)
+ preemptible = (known after apply)
+ node_affinities {
+ key = (known after apply)
+ operator = (known after apply)
+ values = (known after apply)
}
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: 2021-07-08T17:06:15.286+1000 [DEBUG] command: asking for input: "\nDo you want to perform these actions?"
yes
2021-07-08T17:06:19.158+1000 [INFO] backend/local: apply calling Apply
2021-07-08T17:06:19.158+1000 [INFO] terraform: building graph: GraphTypeApply
2021-07-08T17:06:19.160+1000 [DEBUG] Resource state not found for node "google_compute_instance.vm_instance", instance google_compute_instance.vm_instance
2021-07-08T17:06:19.160+1000 [DEBUG] ProviderTransformer: "google_compute_network.vpc_network (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021-07-08T17:06:19.160+1000 [DEBUG] ProviderTransformer: "google_compute_instance.vm_instance (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/google"]
2021-07-08T17:06:19.160+1000 [DEBUG] ProviderTransformer: "google_compute_instance.vm_instance" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/google"]
2021-07-08T17:06:19.160+1000 [DEBUG] ReferenceTransformer: "google_compute_network.vpc_network (expand)" references: []
2021-07-08T17:06:19.160+1000 [DEBUG] ReferenceTransformer: "google_compute_instance.vm_instance (expand)" references: []
2021-07-08T17:06:19.161+1000 [DEBUG] ReferenceTransformer: "google_compute_instance.vm_instance" references: [google_compute_network.vpc_network (expand)]
2021-07-08T17:06:19.161+1000 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/google\"]" references: []
2021-07-08T17:06:19.161+1000 [DEBUG] Starting graph walk: walkApply
2021-07-08T17:06:19.161+1000 [DEBUG] created provider logger: level=debug
2021-07-08T17:06:19.161+1000 [INFO] provider: configuring client automatic mTLS
2021-07-08T17:06:19.194+1000 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5]
2021-07-08T17:06:19.201+1000 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 pid=17061
2021-07-08T17:06:19.201+1000 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5
2021-07-08T17:06:19.223+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: configuring server automatic mTLS: timestamp=2021-07-08T17:06:19.223+1000
2021-07-08T17:06:19.258+1000 [DEBUG] provider.terraform-provider-google_v3.74.0_x5: plugin address: address=/var/folders/66/cnqm9nf51fn3gv1yklgkffmw0000gp/T/plugin310341600 network=unix timestamp=2021-07-08T17:06:19.258+1000
2021-07-08T17:06:19.258+1000 [DEBUG] provider: using plugin: version=5
2021-07-08T17:06:19.361+1000 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/google\"]" changed the config value, but that value is unused
2021-07-08T17:06:19.362+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:19 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2021-07-08T17:06:19.362+1000
2021-07-08T17:06:19.362+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:19 [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]: timestamp=2021-07-08T17:06:19.362+1000
2021-07-08T17:06:19.362+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:19 [INFO] Authenticating using configured Google JSON 'credentials'...: timestamp=2021-07-08T17:06:19.362+1000
2021-07-08T17:06:19.362+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:19 [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]: timestamp=2021-07-08T17:06:19.362+1000
2021-07-08T17:06:19.362+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:19 [DEBUG] Waiting for state to become: [success]: timestamp=2021-07-08T17:06:19.362+1000
2021-07-08T17:06:20.098+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [INFO] Terraform is using this identity: terraform@playground-test.iam.gserviceaccount.com: timestamp=2021-07-08T17:06:20.098+1000
2021-07-08T17:06:20.106+1000 [WARN] Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_compute_instance.vm_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:
- .can_ip_forward: planned value cty.False for a non-computed attribute
- .deletion_protection: planned value cty.False for a non-computed attribute
- .scheduling: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .confidential_instance_config: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .boot_disk[0].mode: planned value cty.StringVal("READ_WRITE") for a non-computed attribute
- .boot_disk[0].auto_delete: planned value cty.True for a non-computed attribute
google_compute_instance.vm_instance: Creating...
2021-07-08T17:06:20.108+1000 [INFO] Starting apply for google_compute_instance.vm_instance
2021-07-08T17:06:20.108+1000 [DEBUG] google_compute_instance.vm_instance: applying the planned Create change
2021-07-08T17:06:20.109+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] setting computed for "guest_accelerator" from ComputedKeys: timestamp=2021-07-08T17:06:20.109+1000
2021-07-08T17:06:20.109+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] setting computed for "confidential_instance_config" from ComputedKeys: timestamp=2021-07-08T17:06:20.109+1000
2021-07-08T17:06:20.109+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] setting computed for "boot_disk.0.initialize_params.0.labels" from ComputedKeys: timestamp=2021-07-08T17:06:20.109+1000
2021-07-08T17:06:20.109+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] setting computed for "boot_disk.0.initialize_params.0.labels" from ComputedKeys: timestamp=2021-07-08T17:06:20.109+1000
2021-07-08T17:06:20.109+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] setting computed for "boot_disk.0.initialize_params.0.labels" from ComputedKeys: timestamp=2021-07-08T17:06:20.109+1000
2021-07-08T17:06:20.109+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] setting computed for "scheduling" from ComputedKeys: timestamp=2021-07-08T17:06:20.109+1000
2021-07-08T17:06:20.109+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] Loading zone: australia-southeast1-b: timestamp=2021-07-08T17:06:20.109+1000
2021-07-08T17:06:20.109+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [INFO] Instantiating GCE client for path https://compute.googleapis.com/compute/v1/projects/: timestamp=2021-07-08T17:06:20.109+1000
2021-07-08T17:06:20.110+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2021-07-08T17:06:20.110+1000
2021-07-08T17:06:20.110+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] Retry Transport: request attempt 0: timestamp=2021-07-08T17:06:20.110+1000
2021-07-08T17:06:20.110+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:20 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /compute/v1/projects/projects/playground-test/zones/australia-southeast1-b?alt=json&prettyPrint=false HTTP/1.1
Host: compute.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.0.0 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/3.74.0
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20210606
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2021-07-08T17:06:20.110+1000
2021-07-08T17:06:21.004+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Alt-Svc: h3=":443"; ma=2592000,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"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Thu, 08 Jul 2021 07:06:20 GMT
Etag: HAOGRC5qaQK3yBzxkRBlxkaDqUs=/sxPyo-JxkVfrhx4RLjXk5G93nZ8=
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0
{
"id": "2282",
"creationTimestamp": "1969-12-31T16:00:00.000-08:00",
"name": "australia-southeast1-b",
"description": "australia-southeast1-b",
"status": "UP",
"region": "https://www.googleapis.com/compute/v1/projects/playground-test/regions/australia-southeast1",
"selfLink": "https://www.googleapis.com/compute/v1/projects/playground-test/zones/australia-southeast1-b",
"availableCpuPlatforms": [
"Intel Cascade Lake",
"Intel Skylake",
"Intel Broadwell",
"Intel Haswell",
"Intel Ivy Bridge",
"Intel Sandy Bridge"
],
"supportsPzs": true,
"kind": "compute#zone"
}
-----------------------------------------------------: timestamp=2021-07-08T17:06:21.004+1000
2021-07-08T17:06:21.004+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: Stopping retries, last request was successful: timestamp=2021-07-08T17:06:21.004+1000
2021-07-08T17:06:21.004+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2021-07-08T17:06:21.004+1000
2021-07-08T17:06:21.004+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [INFO] Instantiating GCE client for path https://compute.googleapis.com/compute/v1/projects/: timestamp=2021-07-08T17:06:21.004+1000
2021-07-08T17:06:21.004+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2021-07-08T17:06:21.004+1000
2021-07-08T17:06:21.004+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: request attempt 0: timestamp=2021-07-08T17:06:21.004+1000
2021-07-08T17:06:21.005+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /compute/v1/projects/projects/playground-test/global/images/rocky-linux-8?alt=json&prettyPrint=false HTTP/1.1
Host: compute.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.0.0 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/3.74.0
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20210606
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2021-07-08T17:06:21.004+1000
2021-07-08T17:06:21.554+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 404 Not Found
Alt-Svc: h3=":443"; ma=2592000,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"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Thu, 08 Jul 2021 07:06:21 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": 404,
"message": "The resource 'projects/playground-test/global/images/rocky-linux-8' was not found",
"errors": [
{
"message": "The resource 'projects/playground-test/global/images/rocky-linux-8' was not found",
"domain": "global",
"reason": "notFound"
}
]
}
}
-----------------------------------------------------: timestamp=2021-07-08T17:06:21.553+1000
2021-07-08T17:06:21.554+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: Stopping retries, last request failed with non-retryable error: googleapi: got HTTP response code 404 with body: HTTP/2.0 404 Not Found
Alt-Svc: h3=":443"; ma=2592000,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"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Thu, 08 Jul 2021 07:06:21 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": 404,
"message": "The resource 'projects/playground-test/global/images/rocky-linux-8' was not found",
"errors": [
{
"message": "The resource 'projects/playground-test/global/images/rocky-linux-8' was not found",
"domain": "global",
"reason": "notFound"
}
]
}
}: timestamp=2021-07-08T17:06:21.554+1000
2021-07-08T17:06:21.554+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2021-07-08T17:06:21.554+1000
2021-07-08T17:06:21.554+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [INFO] Instantiating GCE client for path https://compute.googleapis.com/compute/v1/projects/: timestamp=2021-07-08T17:06:21.554+1000
2021-07-08T17:06:21.554+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2021-07-08T17:06:21.554+1000
2021-07-08T17:06:21.554+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: request attempt 0: timestamp=2021-07-08T17:06:21.554+1000
2021-07-08T17:06:21.554+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Google API Request Details:
---[ REQUEST ]---------------------------------------
GET /compute/v1/projects/projects/playground-test/global/images/family/rocky-linux-8?alt=json&prettyPrint=false HTTP/1.1
Host: compute.googleapis.com
User-Agent: google-api-go-client/0.5 Terraform/1.0.0 (+https://www.terraform.io) Terraform-Plugin-SDK/2.5.0 terraform-provider-google/3.74.0
X-Goog-Api-Client: gl-go/1.16.2 gdcl/20210606
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2021-07-08T17:06:21.554+1000
2021-07-08T17:06:21.944+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 404 Not Found
Alt-Svc: h3=":443"; ma=2592000,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"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Thu, 08 Jul 2021 07:06:21 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": 404,
"message": "The resource 'projects/playground-test/global/images/family/rocky-linux-8' was not found",
"errors": [
{
"message": "The resource 'projects/playground-test/global/images/family/rocky-linux-8' was not found",
"domain": "global",
"reason": "notFound"
}
]
}
}
-----------------------------------------------------: timestamp=2021-07-08T17:06:21.944+1000
2021-07-08T17:06:21.944+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: Stopping retries, last request failed with non-retryable error: googleapi: got HTTP response code 404 with body: HTTP/2.0 404 Not Found
Alt-Svc: h3=":443"; ma=2592000,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"
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Date: Thu, 08 Jul 2021 07:06:21 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": 404,
"message": "The resource 'projects/playground-test/global/images/family/rocky-linux-8' was not found",
"errors": [
{
"message": "The resource 'projects/playground-test/global/images/family/rocky-linux-8' was not found",
"domain": "global",
"reason": "notFound"
}
]
}
}: timestamp=2021-07-08T17:06:21.944+1000
2021-07-08T17:06:21.944+1000 [INFO] provider.terraform-provider-google_v3.74.0_x5: 2021/07/08 17:06:21 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2021-07-08T17:06:21.944+1000
╷
│ Error: Error resolving image name 'rocky-linux-8': Could not find image or family rocky-linux-8
│
│ with google_compute_instance.vm_instance,
│ on main.tf line 22, in resource "google_compute_instance" "vm_instance":
│ 22: resource "google_compute_instance" "vm_instance" {
│
╵
2021-07-08T17:06:21.990+1000 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-07-08T17:06:21.994+1000 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/google/3.74.0/darwin_amd64/terraform-provider-google_v3.74.0_x5 pid=17061
2021-07-08T17:06:21.994+1000 [DEBUG] provider: plugin exited
/Users/
Panic Output
N/A
Expected Behavior
New compute instance to be created with the available rocky-linux-8 image
Please add the image project rocky-linux-cloud\rocky-linux-8 while referencing the public image, other wise API looks into your project for the custom image.
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.
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
N/A
Expected Behavior
New compute instance to be created with the available rocky-linux-8 image
% gcloud compute images list | grep rocky rocky-linux-8-v20210701 rocky-linux-cloud rocky-linux-8 READY
Actual Behavior
Compute instance not created
Steps to Reproduce
Entire terraform script
main.tf
pasted above.terraform apply
Important Factoids
rhel-8
and that worked. Somain.tf
doesn't appear to be culpritReferences
None that I could find
The text was updated successfully, but these errors were encountered: