Skip to content

Instantly share code, notes, and snippets.

@dpkirchner
Created August 5, 2019 19:28
Show Gist options
  • Save dpkirchner/1e6ffc9a58c0b02d04c10eaf54beba90 to your computer and use it in GitHub Desktop.
Save dpkirchner/1e6ffc9a58c0b02d04c10eaf54beba90 to your computer and use it in GitHub Desktop.
2019/08/05 12:23:27 [INFO] Terraform version: 0.12.6
2019/08/05 12:23:27 [INFO] Go runtime version: go1.12.4
2019/08/05 12:23:27 [INFO] CLI args: []string{"/Users/dpk/bin/terraform", "import", "google_compute_router_nat.nat-1", "nat-1"}
2019/08/05 12:23:27 [DEBUG] Attempting to open CLI config file: /Users/dpk/.terraformrc
2019/08/05 12:23:27 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/08/05 12:23:27 [INFO] CLI command args: []string{"import", "google_compute_router_nat.nat-1", "nat-1"}
2019/08/05 12:23:27 [DEBUG] New state was assigned lineage "7cc156fb-a7dd-448a-5742-6fe585fa0f16"
2019/08/05 12:23:27 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2019/08/05 12:23:27 [TRACE] Meta.Backend: instantiated backend of type <nil>
2019/08/05 12:23:27 [DEBUG] checking for provider in "."
2019/08/05 12:23:27 [DEBUG] checking for provider in "/Users/dpk/bin"
2019/08/05 12:23:27 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2019/08/05 12:23:27 [DEBUG] found provider "terraform-provider-google_v2.12.0_x4"
2019/08/05 12:23:27 [DEBUG] found valid plugin: "google", "2.12.0", "/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4"
2019/08/05 12:23:27 [DEBUG] checking for provisioner in "."
2019/08/05 12:23:27 [DEBUG] checking for provisioner in "/Users/dpk/bin"
2019/08/05 12:23:27 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2019-08-05T12:23:27.702-0700 [INFO] plugin: configuring client automatic mTLS
2019-08-05T12:23:27.724-0700 [DEBUG] plugin: starting plugin: path=/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4 args=[/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4]
2019-08-05T12:23:27.727-0700 [DEBUG] plugin: plugin started: path=/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4 pid=81512
2019-08-05T12:23:27.727-0700 [DEBUG] plugin: waiting for RPC address: path=/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4
2019-08-05T12:23:27.740-0700 [INFO] plugin.terraform-provider-google_v2.12.0_x4: configuring server automatic mTLS: timestamp=2019-08-05T12:23:27.740-0700
2019-08-05T12:23:27.766-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: plugin address: network=unix address=/var/folders/dp/zfxczkrx4mb8k749fx92csm80000gn/T/plugin359851183 timestamp=2019-08-05T12:23:27.766-0700
2019-08-05T12:23:27.766-0700 [DEBUG] plugin: using plugin: version=5
2019-08-05T12:23:27.830-0700 [DEBUG] plugin: plugin process exited: path=/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4 pid=81512
2019-08-05T12:23:27.830-0700 [DEBUG] plugin: plugin exited
2019/08/05 12:23:27 [TRACE] terraform.NewContext: complete
2019/08/05 12:23:27 [TRACE] backend/local: finished building terraform.Context
2019/08/05 12:23:27 [TRACE] Executing graph transform *terraform.ConfigTransformer
2019/08/05 12:23:27 [TRACE] ConfigTransformer: Starting for path:
2019/08/05 12:23:27 [DEBUG] ProviderTransformer: "google_compute_router.router" (*terraform.NodeAbstractResource) needs provider.google
2019/08/05 12:23:27 [TRACE] ProviderTransformer: exact match for provider.google serving google_compute_router_nat.nat-1 (import id "nat-1")
2019/08/05 12:23:27 [DEBUG] ProviderTransformer: "google_compute_router_nat.nat-1 (import id \"nat-1\")" (*terraform.graphNodeImportState) needs provider.google
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "google_compute_subnetwork.default" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "google_compute_address.address" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "var.organization_id" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "provider.google" references: [var.default_zone var.project_id var.default_region]
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "google_project_services.project" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "google_compute_network.default" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "google_compute_router.router" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "google_compute_router_nat.nat-1 (import id \"nat-1\")" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "google_compute_router_nat.nat-1" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "var.default_zone" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "google_compute_firewall.office-ssh" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "var.billing_account" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "var.default_region" references: []
2019/08/05 12:23:27 [DEBUG] ReferenceTransformer: "var.project_id" references: []
le
var.organization_id - *terraform.NodeRootVariable
var.billing_account - *terraform.NodeRootVariable
var.default_region - *terraform.NodeRootVariable
var.default_zone - *terraform.NodeRootVariable
var.organization_id - *terraform.NodeRootVariable
var.project_id - *terraform.NodeRootVariable
------
2019/08/05 12:23:27 [DEBUG] Starting graph walk: walkImport
2019/08/05 12:23:27 [TRACE] dag/walk: updating graph
2019-08-05T12:23:27.833-0700 [INFO] plugin: configuring client automatic mTLS
2019-08-05T12:23:27.855-0700 [DEBUG] plugin: starting plugin: path=/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4 args=[/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4]
2019-08-05T12:23:27.858-0700 [DEBUG] plugin: plugin started: path=/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4 pid=81513
2019-08-05T12:23:27.858-0700 [DEBUG] plugin: waiting for RPC address: path=/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4
2019-08-05T12:23:27.871-0700 [INFO] plugin.terraform-provider-google_v2.12.0_x4: configuring server automatic mTLS: timestamp=2019-08-05T12:23:27.871-0700
2019-08-05T12:23:27.897-0700 [DEBUG] plugin: using plugin: version=5
2019-08-05T12:23:27.897-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: plugin address: address=/var/folders/dp/zfxczkrx4mb8k749fx92csm80000gn/T/plugin122794468 network=unix timestamp=2019-08-05T12:23:27.897-0700
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Authenticating using DefaultClient...
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control]
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating GCE client for path https://www.googleapis.com/compute/v1/projects/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating GCE Beta client for path https://www.googleapis.com/compute/beta/projects/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating GKE client for path https://container.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating GKE Beta client for path https://container.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud DNS client for path https://www.googleapis.com/dns/v1/projects/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud DNS Beta client for path https://www.googleapis.com/dns/v1beta2/projects/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud KMS client for path https://cloudkms.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Stackdriver Logging client for path https://logging.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Storage client for path https://www.googleapis.com/storage/v1/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google SqlAdmin client for path https://www.googleapis.com/sql/v1beta4/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Pubsub client for path https://pubsub.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Dataflow client for path https://dataflow.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud ResourceManager client for path https://cloudresourcemanager.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud ResourceManager V client for path https://cloudresourcemanager.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Runtimeconfig client for path https://runtimeconfig.googleapis.com/
2019-08-05T12:23:27.960-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud IAM client for path https://iam.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud IAMCredentials client for path https://iamcredentials.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Service Management client for path https://servicemanagement.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Service Usage client for path https://serviceusage.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Billing client for path https://cloudbilling.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Build client for path https://cloudbuild.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud BigQuery client for path https://www.googleapis.com/bigquery/v2/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud CloudFunctions Client for path https://cloudfunctions.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud BigtableAdmin for path https://bigtableadmin.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Source Repo client for path https://sourcerepo.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Spanner client for path https://spanner.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Dataproc client for path https://dataproc.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Dataproc Beta client for path https://dataproc.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Filestore client for path https://file.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud IoT Core client for path https://cloudiot.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating App Engine client for path https://appengine.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Cloud Composer client for path https://composer.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Service Networking client for path https://servicenetworking.googleapis.com/
2019-08-05T12:23:27.961-0700 [DEBUG] plugin.terraform-provider-google_v2.12.0_x4: 2019/08/05 12:23:27 [INFO] Instantiating Google Cloud Storage Transfer client for path https://storagetransfer.googleapis.com/
google_compute_router_nat.nat-1: Importing from ID "nat-1"...
2019/08/05 12:23:27 [ERROR] <root>: eval: *terraform.EvalImportState, err: Import id "nat-1" doesn't match any of the accepted formats: [(?P<project>[^/]+)/(?P<region>[^/]+)/(?P<router>[^/]+)/(?P<name>[^/]+) (?P<region>[^/]+)/(?P<router>[^/]+)/(?P<name>[^/]+) (?P<router>[^/]+)/(?P<name>[^/]+)]
2019/08/05 12:23:27 [ERROR] <root>: eval: *terraform.EvalSequence, err: Import id "nat-1" doesn't match any of the accepted formats: [(?P<project>[^/]+)/(?P<region>[^/]+)/(?P<router>[^/]+)/(?P<name>[^/]+) (?P<region>[^/]+)/(?P<router>[^/]+)/(?P<name>[^/]+) (?P<router>[^/]+)/(?P<name>[^/]+)]
Error: Import id "nat-1" doesn't match any of the accepted formats: [(?P<project>[^/]+)/(?P<region>[^/]+)/(?P<router>[^/]+)/(?P<name>[^/]+) (?P<region>[^/]+)/(?P<router>[^/]+)/(?P<name>[^/]+) (?P<router>[^/]+)/(?P<name>[^/]+)]
2019-08-05T12:23:27.964-0700 [DEBUG] plugin: plugin process exited: path=/Users/dpk/terraform/.terraform/plugins/darwin_amd64/terraform-provider-google_v2.12.0_x4 pid=81513
2019-08-05T12:23:27.964-0700 [DEBUG] plugin: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment