Last active
June 3, 2020 11:34
-
-
Save ssttgg/c8a9ab4c3e1b9c63fb4b074356f7a5d4 to your computer and use it in GitHub Desktop.
Terraform Import Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS E:\temp\tf_import_issue> terraform import 'null_resource.things[\"thing one\"]' 6926265835913175150 | |
2020/06/03 12:03:31 [INFO] Terraform version: 0.12.26 | |
2020/06/03 12:03:31 [INFO] Go runtime version: go1.12.13 | |
2020/06/03 12:03:31 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\lib\\terraform\\tools\\terraform.exe", "import", "null_resource.things[\"thing", "one\"]", "6926265835913175150"} | |
2020/06/03 12:03:31 [DEBUG] Attempting to open CLI config file: C:\Users\user\AppData\Roaming\terraform.rc | |
The import command expects two arguments.2020/06/03 12:03:31 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/06/03 12:03:31 [DEBUG] checking for credentials in "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins" | |
2020/06/03 12:03:31 [DEBUG] checking for credentials in "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins\\windows_amd64" | |
2020/06/03 12:03:31 [INFO] CLI command args: []string{"import", "null_resource.things[\"thing", "one\"]", "6926265835913175150"} | |
Usage: terraform import [options] ADDR ID | |
Import existing infrastructure into your Terraform state. | |
This will find and import the specified resource into your Terraform | |
state, allowing existing infrastructure to come under Terraform | |
management without having to be initially created by Terraform. | |
The ADDR specified is the address to import the resource to. Please | |
see the documentation online for resource addresses. The ID is a | |
resource-specific ID to identify that resource being imported. Please | |
reference the documentation for the resource type you're importing to | |
determine the ID syntax to use. It typically matches directly to the ID | |
that the provider uses. | |
The current implementation of Terraform import can only import resources | |
into the state. It does not generate configuration. A future version of | |
Terraform will also generate configuration. | |
Because of this, prior to running terraform import it is necessary to write | |
a resource configuration block for the resource manually, to which the | |
imported object will be attached. | |
This command will not modify your infrastructure, but it will make | |
network requests to inspect parts of your infrastructure relevant to | |
the resource being imported. | |
Options: | |
-backup=path Path to backup the existing state file before | |
modifying. Defaults to the "-state-out" path with | |
".backup" extension. Set to "-" to disable backup. | |
-config=path Path to a directory of Terraform configuration files | |
to use to configure the provider. Defaults to pwd. | |
If no config files are present, they must be provided | |
via the input prompts or env vars. | |
-allow-missing-config Allow import when no resource configuration block exists. | |
-input=true Ask for input for variables if not directly set. | |
-lock=true Lock the state file when locking is supported. | |
-lock-timeout=0s Duration to retry a state lock. | |
-no-color If specified, output won't contain any color. | |
-provider=provider Deprecated: Override the provider configuration to use | |
when importing the object. By default, Terraform uses the | |
provider specified in the configuration for the target | |
resource, and that is the best behavior in most cases. | |
-state=PATH Path to the source state file. Defaults to the configured | |
backend, or "terraform.tfstate" | |
-state-out=PATH Path to the destination state file to write to. If this | |
isn't specified, the source state file will be used. This | |
can be a new or existing path. | |
-var 'foo=bar' Set a variable in the Terraform configuration. This | |
flag can be set multiple times. This is only useful | |
with the "-config" flag. | |
-var-file=foo Set variables in the Terraform configuration from | |
a file. If "terraform.tfvars" or any ".auto.tfvars" | |
files are present, they will be automatically loaded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS E:\temp\tf_import_issue> terraform import 'null_resource.things[\"thing_three\"]' 800778739314064726 | |
2020/06/03 12:03:48 [INFO] Terraform version: 0.12.26 | |
2020/06/03 12:03:48 [INFO] Go runtime version: go1.12.13 | |
2020/06/03 12:03:48 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\lib\\terraform\\tools\\terraform.exe", "import", "null_resource.things[\"thing_three\"]", "800778739314064726"} | |
2020/06/03 12:03:48 [DEBUG] Attempting to open CLI config file: C:\Users\user\AppData\Roaming\terraform.rc | |
2020/06/03 12:03:48 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/06/03 12:03:48 [DEBUG] checking for credentials in "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins" | |
2020/06/03 12:03:48 [DEBUG] checking for credentials in "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins\\windows_amd64" | |
2020/06/03 12:03:48 [INFO] CLI command args: []string{"import", "null_resource.things[\"thing_three\"]", "800778739314064726"} | |
2020/06/03 12:03:48 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config | |
2020/06/03 12:03:48 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory | |
2020/06/03 12:03:48 [DEBUG] New state was assigned lineage "1932762f-e12b-9989-b840-194ab1e149a4" | |
2020/06/03 12:03:48 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend) | |
2020/06/03 12:03:48 [TRACE] Meta.Backend: instantiated backend of type <nil> | |
2020/06/03 12:03:48 [DEBUG] checking for provider in "." | |
2020/06/03 12:03:48 [DEBUG] checking for provider in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools" | |
2020/06/03 12:03:48 [DEBUG] checking for provider in ".terraform\\plugins\\windows_amd64" | |
2020/06/03 12:03:48 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4.exe" | |
2020/06/03 12:03:48 [DEBUG] checking for provider in "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins" | |
2020/06/03 12:03:48 [DEBUG] checking for provider in "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins\\windows_amd64" | |
2020/06/03 12:03:48 [WARN] found legacy provider "terraform-provider-okta.exe" | |
2020/06/03 12:03:48 [DEBUG] found valid plugin: "null", "2.1.2", "E:\\temp\\tf_import_issue\\.terraform\\plugins\\windows_amd64\\terraform-provider-null_v2.1.2_x4.exe" | |
2020/06/03 12:03:48 [DEBUG] found valid plugin: "okta", "0.0.0", "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins\\windows_amd64\\terraform-provider-okta.exe" | |
2020/06/03 12:03:48 [DEBUG] checking for provisioner in "." | |
2020/06/03 12:03:48 [DEBUG] checking for provisioner in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools" | |
2020/06/03 12:03:48 [DEBUG] checking for provisioner in ".terraform\\plugins\\windows_amd64" | |
2020/06/03 12:03:48 [DEBUG] checking for provisioner in "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins" | |
2020/06/03 12:03:48 [DEBUG] checking for provisioner in "C:\\Users\\user\\AppData\\Roaming\\terraform.d\\plugins\\windows_amd64" | |
2020/06/03 12:03:48 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend | |
2020/06/03 12:03:48 [TRACE] backend/local: requesting state manager for workspace "default" | |
2020/06/03 12:03:48 [TRACE] backend/local: state manager for workspace "default" will: | |
- read initial snapshot from terraform.tfstate | |
- write new snapshots to terraform.tfstate | |
- create any backup at terraform.tfstate.backup | |
2020/06/03 12:03:48 [TRACE] backend/local: requesting state lock for workspace "default" | |
2020/06/03 12:03:48 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at terraform.tfstate | |
2020/06/03 12:03:48 [TRACE] statemgr.Filesystem: existing snapshot has lineage "0532626e-b036-d808-0987-f85d485326e8" serial 45 | |
2020/06/03 12:03:48 [TRACE] statemgr.Filesystem: locking terraform.tfstate using LockFileEx | |
2020/06/03 12:03:48 [TRACE] statemgr.Filesystem: writing lock metadata to .terraform.tfstate.lock.info | |
2020/06/03 12:03:48 [TRACE] backend/local: reading remote state for workspace "default" | |
2020/06/03 12:03:48 [TRACE] statemgr.Filesystem: reading latest snapshot from terraform.tfstate | |
2020/06/03 12:03:48 [TRACE] statemgr.Filesystem: read snapshot with lineage "0532626e-b036-d808-0987-f85d485326e8" serial 45 | |
2020/06/03 12:03:48 [TRACE] backend/local: retrieving local state snapshot for workspace "default" | |
2020/06/03 12:03:48 [TRACE] backend/local: building context for current working directory | |
2020/06/03 12:03:48 [TRACE] terraform.NewContext: starting | |
2020/06/03 12:03:48 [TRACE] terraform.NewContext: resolving provider version selections | |
2020/06/03 12:03:48 [TRACE] terraform.NewContext: loading provider schemas | |
2020/06/03 12:03:48 [TRACE] LoadSchemas: retrieving schema for provider type "null" | |
2020-06-03T12:03:48.672+0100 [INFO] plugin: configuring client automatic mTLS | |
2020-06-03T12:03:48.708+0100 [DEBUG] plugin: starting plugin: path=E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe args=[E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe] | |
2020-06-03T12:03:48.719+0100 [DEBUG] plugin: plugin started: path=E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe pid=21804 | |
2020-06-03T12:03:48.719+0100 [DEBUG] plugin: waiting for RPC address: path=E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe | |
2020-06-03T12:03:48.750+0100 [INFO] plugin.terraform-provider-null_v2.1.2_x4.exe: configuring server automatic mTLS: timestamp=2020-06-03T12:03:48.750+0100 | |
2020-06-03T12:03:48.801+0100 [DEBUG] plugin: using plugin: version=5 | |
2020-06-03T12:03:48.802+0100 [DEBUG] plugin.terraform-provider-null_v2.1.2_x4.exe: plugin address: address=127.0.0.1:10009 network=tcp timestamp=2020-06-03T12:03:48.801+0100 | |
2020/06/03 12:03:48 [TRACE] GRPCProvider: GetSchema | |
2020-06-03T12:03:48.879+0100 [TRACE] plugin.stdio: waiting for stdio data | |
2020-06-03T12:03:48.881+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" | |
2020/06/03 12:03:48 [TRACE] GRPCProvider: Close | |
2020-06-03T12:03:48.897+0100 [DEBUG] plugin: plugin process exited: path=E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe pid=21804 | |
2020-06-03T12:03:48.897+0100 [DEBUG] plugin: plugin exited | |
2020/06/03 12:03:48 [TRACE] terraform.NewContext: complete | |
2020/06/03 12:03:48 [TRACE] backend/local: finished building terraform.Context | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.ConfigTransformer | |
2020/06/03 12:03:48 [TRACE] ConfigTransformer: Starting for path: | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph: | |
null_resource.things - *terraform.NodeAbstractResource | |
------ | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer | |
2020/06/03 12:03:48 [TRACE] AttachResourceConfigTransformer: attaching to "null_resource.things" (*terraform.NodeAbstractResource) config from E:\temp\tf_import_issue\main.tf:9,1-34 | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.ImportStateTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.ImportStateTransformer with new graph: | |
null_resource.things - *terraform.NodeAbstractResource | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
------ | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.RootVariableTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.graphTransformerMulti | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph: | |
null_resource.things - *terraform.NodeAbstractResource | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
------ | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer | |
2020/06/03 12:03:48 [DEBUG] adding implicit provider configuration provider.null, implied first by null_resource.things | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer with new graph: | |
null_resource.things - *terraform.NodeAbstractResource | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
provider.null - *terraform.NodeApplyableProvider | |
------ | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer | |
2020/06/03 12:03:48 [TRACE] ProviderTransformer: null_resource.things is provided by provider.null or inherited equivalent | |
2020/06/03 12:03:48 [TRACE] ProviderTransformer: null_resource.things["thing_three"] (import id "800778739314064726") is provided by provider.null or inherited equivalent | |
2020/06/03 12:03:48 [TRACE] ProviderTransformer: exact match for provider.null serving null_resource.things | |
2020/06/03 12:03:48 [DEBUG] ProviderTransformer: "null_resource.things" (*terraform.NodeAbstractResource) needs provider.null | |
2020/06/03 12:03:48 [TRACE] ProviderTransformer: exact match for provider.null serving null_resource.things["thing_three"] (import id "800778739314064726") | |
2020/06/03 12:03:48 [DEBUG] ProviderTransformer: "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")" (*terraform.graphNodeImportState) needs provider.null | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph: | |
null_resource.things - *terraform.NodeAbstractResource | |
provider.null - *terraform.NodeApplyableProvider | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
provider.null - *terraform.NodeApplyableProvider | |
provider.null - *terraform.NodeApplyableProvider | |
------ | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ParentProviderTransformer | |
2020/06/03 12:03:48 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ParentProviderTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph: | |
null_resource.things - *terraform.NodeAbstractResource | |
provider.null - *terraform.NodeApplyableProvider | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
provider.null - *terraform.NodeApplyableProvider | |
provider.null - *terraform.NodeApplyableProvider | |
------ | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.ImportProviderValidateTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.ImportProviderValidateTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.LocalTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.LocalTransformer with new graph: | |
local.things - *terraform.NodeLocal | |
null_resource.things - *terraform.NodeAbstractResource | |
provider.null - *terraform.NodeApplyableProvider | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
provider.null - *terraform.NodeApplyableProvider | |
provider.null - *terraform.NodeApplyableProvider | |
------ | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.OutputTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer | |
2020/06/03 12:03:48 [TRACE] AttachSchemaTransformer: attaching resource schema to null_resource.things | |
2020/06/03 12:03:48 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider.null | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.ReferenceTransformer | |
2020/06/03 12:03:48 [DEBUG] ReferenceTransformer: "null_resource.things" references: [local.things] | |
2020/06/03 12:03:48 [DEBUG] ReferenceTransformer: "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")" references: [] | |
2020/06/03 12:03:48 [DEBUG] ReferenceTransformer: "provider.null" references: [] | |
2020/06/03 12:03:48 [DEBUG] ReferenceTransformer: "local.things" references: [] | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.ReferenceTransformer with new graph: | |
local.things - *terraform.NodeLocal | |
null_resource.things - *terraform.NodeAbstractResource | |
local.things - *terraform.NodeLocal | |
provider.null - *terraform.NodeApplyableProvider | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
provider.null - *terraform.NodeApplyableProvider | |
provider.null - *terraform.NodeApplyableProvider | |
------ | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.CloseProviderTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph: | |
local.things - *terraform.NodeLocal | |
null_resource.things - *terraform.NodeAbstractResource | |
local.things - *terraform.NodeLocal | |
provider.null - *terraform.NodeApplyableProvider | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
provider.null - *terraform.NodeApplyableProvider | |
provider.null - *terraform.NodeApplyableProvider | |
provider.null (close) - *terraform.graphNodeCloseProvider | |
null_resource.things - *terraform.NodeAbstractResource | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
provider.null - *terraform.NodeApplyableProvider | |
------ | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.RootTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.RootTransformer (no changes) | |
2020/06/03 12:03:48 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer | |
2020/06/03 12:03:48 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph: | |
local.things - *terraform.NodeLocal | |
null_resource.things - *terraform.NodeAbstractResource | |
local.things - *terraform.NodeLocal | |
provider.null - *terraform.NodeApplyableProvider | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
provider.null - *terraform.NodeApplyableProvider | |
provider.null - *terraform.NodeApplyableProvider | |
provider.null (close) - *terraform.graphNodeCloseProvider | |
null_resource.things - *terraform.NodeAbstractResource | |
null_resource.things["thing_three"] (import id "800778739314064726") - *terraform.graphNodeImportState | |
------ | |
2020/06/03 12:03:48 [DEBUG] Starting graph walk: walkImport | |
2020/06/03 12:03:48 [TRACE] dag/walk: updating graph | |
2020/06/03 12:03:48 [TRACE] dag/walk: added new vertex: "null_resource.things" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added new vertex: "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added new vertex: "provider.null" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added new vertex: "local.things" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added new vertex: "provider.null (close)" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added edge: "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")" waiting on "provider.null" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added edge: "null_resource.things" waiting on "local.things" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added edge: "provider.null (close)" waiting on "null_resource.things" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added edge: "provider.null (close)" waiting on "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")" | |
2020/06/03 12:03:48 [TRACE] dag/walk: added edge: "null_resource.things" waiting on "provider.null" | |
2020/06/03 12:03:48 [TRACE] dag/walk: dependencies changed for "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")", sending new deps | |
2020/06/03 12:03:48 [TRACE] dag/walk: dependencies changed for "null_resource.things", sending new deps | |
2020/06/03 12:03:48 [TRACE] dag/walk: dependencies changed for "provider.null (close)", sending new deps | |
2020/06/03 12:03:48 [TRACE] dag/walk: visiting "provider.null" | |
2020/06/03 12:03:48 [TRACE] vertex "provider.null": starting visit (*terraform.NodeApplyableProvider) | |
2020/06/03 12:03:48 [TRACE] dag/walk: visiting "local.things" | |
2020/06/03 12:03:48 [TRACE] vertex "local.things": starting visit (*terraform.NodeLocal) | |
2020/06/03 12:03:48 [TRACE] vertex "local.things": evaluating | |
2020/06/03 12:03:48 [TRACE] [walkImport] Entering eval tree: local.things | |
2020/06/03 12:03:48 [TRACE] <root>: eval: *terraform.EvalLocal | |
2020/06/03 12:03:48 [TRACE] vertex "provider.null": evaluating | |
2020/06/03 12:03:48 [TRACE] [walkImport] Entering eval tree: provider.null | |
2020/06/03 12:03:48 [TRACE] <root>: eval: *terraform.EvalSequence | |
2020/06/03 12:03:48 [TRACE] <root>: eval: *terraform.EvalInitProvider | |
2020/06/03 12:03:48 [TRACE] [walkImport] Exiting eval tree: local.things | |
2020/06/03 12:03:48 [TRACE] vertex "local.things": visit complete | |
2020-06-03T12:03:48.921+0100 [INFO] plugin: configuring client automatic mTLS | |
2020-06-03T12:03:48.955+0100 [DEBUG] plugin: starting plugin: path=E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe args=[E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe] | |
2020-06-03T12:03:48.966+0100 [DEBUG] plugin: plugin started: path=E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe pid=32212 | |
2020-06-03T12:03:48.966+0100 [DEBUG] plugin: waiting for RPC address: path=E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe | |
2020-06-03T12:03:49.005+0100 [INFO] plugin.terraform-provider-null_v2.1.2_x4.exe: configuring server automatic mTLS: timestamp=2020-06-03T12:03:49.004+0100 | |
2020-06-03T12:03:49.050+0100 [DEBUG] plugin.terraform-provider-null_v2.1.2_x4.exe: plugin address: address=127.0.0.1:10009 network=tcp timestamp=2020-06-03T12:03:49.050+0100 | |
2020-06-03T12:03:49.050+0100 [DEBUG] plugin: using plugin: version=5 | |
2020/06/03 12:03:49 [TRACE] BuiltinEvalContext: Initialized "null" provider for provider.null | |
2020-06-03T12:03:49.123+0100 [TRACE] plugin.stdio: waiting for stdio data | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalOpFilter | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalSequence | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalGetProvider | |
2020/06/03 12:03:49 [TRACE] <root>: eval: terraform.EvalNoop | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalOpFilter | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalSequence | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalGetProvider | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalOpFilter | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalSequence | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalConfigProvider | |
2020/06/03 12:03:49 [TRACE] buildProviderConfig for provider.null: no configuration at all | |
2020/06/03 12:03:49 [TRACE] GRPCProvider: GetSchema | |
2020-06-03T12:03:49.123+0100 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" | |
2020/06/03 12:03:49 [TRACE] GRPCProvider: Configure | |
2020/06/03 12:03:49 [TRACE] [walkImport] Exiting eval tree: provider.null | |
2020/06/03 12:03:49 [TRACE] vertex "provider.null": visit complete | |
2020/06/03 12:03:49 [TRACE] dag/walk: visiting "null_resource.things" | |
2020/06/03 12:03:49 [TRACE] vertex "null_resource.things": starting visit (*terraform.NodeAbstractResource) | |
2020/06/03 12:03:49 [TRACE] dag/walk: visiting "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")" | |
2020/06/03 12:03:49 [TRACE] vertex "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")": starting visit (*terraform.graphNodeImportState) | |
2020/06/03 12:03:49 [TRACE] vertex "null_resource.things": visit complete | |
2020/06/03 12:03:49 [TRACE] vertex "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")": evaluating | |
2020/06/03 12:03:49 [TRACE] [walkImport] Entering eval tree: null_resource.things["thing_three"] (import id "800778739314064726") | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalSequence | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalGetProvider | |
2020/06/03 12:03:49 [TRACE] <root>: eval: *terraform.EvalImportState | |
2020/06/03 12:03:49 [TRACE] GRPCProvider: ImportResourceState | |
2020/06/03 12:03:49 [ERROR] <root>: eval: *terraform.EvalImportState, err: resource null_resource doesn't support import | |
2020/06/03 12:03:49 [ERROR] <root>: eval: *terraform.EvalSequence, err: resource null_resource doesn't support import | |
2020/06/03 12:03:49 [TRACE] [walkImport] Exiting eval tree: null_resource.things["thing_three"] (import id "800778739314064726") | |
2020/06/03 12:03:49 [TRACE] vertex "null_resource.things[\"thing_three\"] (import id \"800778739314064726\")": visit complete | |
2020/06/03 12:03:49 [TRACE] dag/walk: upstream of "provider.null (close)" errored, so skipping | |
2020/06/03 12:03:49 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info | |
2020/06/03 12:03:49 [TRACE] statemgr.Filesystem: unlocked by closing terraform.tfstate | |
null_resource.things["thing_three"]: Importing from ID "8007787393140647262020-06-03T12:03:49.140+0100 [DEBUG] plugin: plugin process exited: path=E:\temp\tf_import_issue\.terraform\plugins\windows_amd64\terraform-provider-null_v2.1.2_x4.exe pid=32212 | |
".2020-06-03T12:03:49.140+0100 [DEBUG] plugin: plugin exited | |
.. | |
Warning: Value for undeclared variable | |
The root module does not declare a variable named "okta_webapps" but a value | |
was found in file "testfoo.auto.tfvars.json". To use this value, add a | |
"variable" block to the configuration. | |
Using a variables file to set an undeclared variable is deprecated and will | |
become an error in a future release. If you wish to provide certain "global" | |
settings to all configurations in your organization, use TF_VAR_... | |
environment variables to set these instead. | |
Warning: Value for undeclared variable | |
The root module does not declare a variable named "okta_systems" but a value | |
was found in file "testfoo.auto.tfvars.json". To use this value, add a | |
"variable" block to the configuration. | |
Using a variables file to set an undeclared variable is deprecated and will | |
become an error in a future release. If you wish to provide certain "global" | |
settings to all configurations in your organization, use TF_VAR_... | |
environment variables to set these instead. | |
Error: resource null_resource doesn't support import | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment