Skip to content

Instantly share code, notes, and snippets.

@pbrumblay
Created January 3, 2020 21:37
Show Gist options
  • Save pbrumblay/1b49d686f3382c0486d29ad7e3f0c10f to your computer and use it in GitHub Desktop.
Save pbrumblay/1b49d686f3382c0486d29ad7e3f0c10f to your computer and use it in GitHub Desktop.
Upgrade settings block not working
terraform plan
2020/01/03 14:33:49 [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/01/03 14:33:49 [INFO] Terraform version: 0.12.18
2020/01/03 14:33:49 [INFO] Go runtime version: go1.12.13
2020/01/03 14:33:49 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2020/01/03 14:33:49 [DEBUG] Attempting to open CLI config file: /Users/peter/.terraformrc
2020/01/03 14:33:49 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/01/03 14:33:49 [INFO] CLI command args: []string{"plan"}
2020/01/03 14:33:49 [DEBUG] checking for provider in "."
2020/01/03 14:33:49 [DEBUG] checking for provider in "/usr/local/bin"
2020/01/03 14:33:49 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2020/01/03 14:33:49 [DEBUG] found provider "terraform-provider-google_v3.3.0_x5"
2020/01/03 14:33:49 [DEBUG] found valid plugin: "google", "3.3.0", "/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5"
2020/01/03 14:33:49 [DEBUG] checking for provisioner in "."
2020/01/03 14:33:49 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/01/03 14:33:49 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2020/01/03 14:33:49 [INFO] backend/local: starting Plan operation
2020-01-03T14:33:49.921-0700 [INFO] plugin: configuring client automatic mTLS
2020-01-03T14:33:49.950-0700 [DEBUG] plugin: starting plugin: path=/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5 args=[/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5]
2020-01-03T14:33:49.955-0700 [DEBUG] plugin: plugin started: path=/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5 pid=30907
2020-01-03T14:33:49.955-0700 [DEBUG] plugin: waiting for RPC address: path=/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5
2020-01-03T14:33:49.971-0700 [INFO] plugin.terraform-provider-google_v3.3.0_x5: configuring server automatic mTLS: timestamp=2020-01-03T14:33:49.971-0700
2020-01-03T14:33:50.000-0700 [DEBUG] plugin: using plugin: version=5
2020-01-03T14:33:50.000-0700 [DEBUG] plugin.terraform-provider-google_v3.3.0_x5: plugin address: address=/var/folders/j1/kqkd80h91nn4l3z8rf17r6780000gn/T/plugin601757030 network=unix timestamp=2020-01-03T14:33:50.000-0700
2020-01-03T14:33:50.083-0700 [DEBUG] plugin: plugin process exited: path=/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5 pid=30907
2020-01-03T14:33:50.083-0700 [DEBUG] plugin: plugin exited
2020/01/03 14:33:50 [INFO] terraform: building graph: GraphTypeValidate
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_storage_object_admin" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_container_developer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.admins_cloudtrace_admin" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.admins_storage_admin" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_os_admin_login" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_service.enable_compute_api" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_logging_viewer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_logging_config_writer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.admins_cloudsql_admin" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "module.api_cluster.google_container_node_pool.primary_pool" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_cloudtrace_agent" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.admins_security_admin" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_viewer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_service_account.api_cluster_service_account" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_monitoring_editor" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.admins_compute_admin" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.admins_container_admin" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.qa_viewer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.admins_viewer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_cloudtrace_user" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.on_call_developers_viewer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_metric_writer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_service_usage_consumer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "module.api_cluster.google_container_cluster.gke_cluster" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.developers_cloudsql_editor" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ProviderTransformer: "google_project_iam_member.stakeholders_viewer" (*terraform.NodeValidatableResource) needs provider.google
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.google_container_node_pool.primary_pool" references: [module.api_cluster.var.cluster_project_id module.api_cluster.google_container_cluster.gke_cluster module.api_cluster.var.min_nodes_per_zone module.api_cluster.var.cluster_region module.api_cluster.var.max_nodes_per_zone module.api_cluster.var.min_nodes_per_zone module.api_cluster.var.node_machine_type module.api_cluster.var.node_service_account]
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.cluster_environment" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "provider.google" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.stakeholders_viewer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_cloudtrace_agent" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_storage_object_admin" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.node_service_account" references: [google_service_account.api_cluster_service_account]
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.admins_cloudtrace_admin" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_viewer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_cloudtrace_user" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_container_developer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.admins_security_admin" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.min_nodes_per_zone" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.master_authorized_networks" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_os_admin_login" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.on_call_developers_viewer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.admins_cloudsql_admin" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.admins_storage_admin" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.cluster_region" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.max_nodes_per_zone" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.qa_viewer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.admins_viewer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_service_usage_consumer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_metric_writer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_service_account.api_cluster_service_account" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_monitoring_editor" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_service.enable_compute_api" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.admins_container_admin" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.cluster_network" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_logging_viewer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.admins_compute_admin" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.google_container_cluster.gke_cluster" references: [module.api_cluster.var.cluster_environment module.api_cluster.var.cluster_name module.api_cluster.var.cluster_name module.api_cluster.var.cluster_subnetwork module.api_cluster.var.cluster_region module.api_cluster.var.cluster_network module.api_cluster.var.master_endpoint_cidr_block module.api_cluster.var.master_authorized_networks]
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.cluster_project_id" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.node_machine_type" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_cloudsql_editor" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "google_project_iam_member.developers_logging_config_writer" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.cluster_subnetwork" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.node_zones" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.cluster_name" references: []
2020/01/03 14:33:50 [DEBUG] ReferenceTransformer: "module.api_cluster.var.master_endpoint_cidr_block" references: []
2020/01/03 14:33:50 [DEBUG] Starting graph walk: walkValidate
2020-01-03T14:33:50.093-0700 [INFO] plugin: configuring client automatic mTLS
2020-01-03T14:33:50.123-0700 [DEBUG] plugin: starting plugin: path=/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5 args=[/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5]
2020-01-03T14:33:50.128-0700 [DEBUG] plugin: plugin started: path=/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5 pid=30909
2020-01-03T14:33:50.128-0700 [DEBUG] plugin: waiting for RPC address: path=/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5
2020-01-03T14:33:50.144-0700 [INFO] plugin.terraform-provider-google_v3.3.0_x5: configuring server automatic mTLS: timestamp=2020-01-03T14:33:50.144-0700
2020-01-03T14:33:50.172-0700 [DEBUG] plugin: using plugin: version=5
2020-01-03T14:33:50.172-0700 [DEBUG] plugin.terraform-provider-google_v3.3.0_x5: plugin address: address=/var/folders/j1/kqkd80h91nn4l3z8rf17r6780000gn/T/plugin555830056 network=unix timestamp=2020-01-03T14:33:50.172-0700
2020/01/03 14:33:50 [ERROR] module.api_cluster: eval: *terraform.EvalValidateResource, err: Unsupported block type: Blocks of type "upgrade_settings" are not expected here.
2020/01/03 14:33:50 [ERROR] module.api_cluster: eval: *terraform.EvalSequence, err: Unsupported block type: Blocks of type "upgrade_settings" are not expected here.
Error: Unsupported block type
on ../../modules/gke/main.tf line 75, in resource "google_container_node_pool" "primary_pool":
75: upgrade_settings {
Blocks of type "upgrade_settings" are not expected here.
2020-01-03T14:33:50.422-0700 [DEBUG] plugin: plugin process exited: path=/Users/peter/src/se/infrastructure/terraform/projects/development/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.3.0_x5 pid=30909
2020-01-03T14:33:50.422-0700 [DEBUG] plugin: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment