Skip to content

Instantly share code, notes, and snippets.

@ghstwhl
Created August 24, 2018 02:56
Show Gist options
  • Save ghstwhl/63354ee5834c0419efe972088328d394 to your computer and use it in GitHub Desktop.
Save ghstwhl/63354ee5834c0419efe972088328d394 to your computer and use it in GitHub Desktop.
terraform newrelic import debug output
$ terraform import newrelic_infra_alert_condition.foo 5885249
2018/08/24 14:55:01 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2018/08/24 14:55:01 [INFO] Terraform version: 0.11.8 7a5c1d221ac209bbac66947c369815cd9ca70ed5
2018/08/24 14:55:01 [INFO] Go runtime version: go1.10.1
2018/08/24 14:55:01 [INFO] CLI args: []string{"/opt/local/bin/terraform", "import", "newrelic_infra_alert_condition.foo", "5885249"}
2018/08/24 14:55:01 [DEBUG] Attempting to open CLI config file: /Users/chris.ohalloran/.terraformrc
2018/08/24 14:55:01 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/08/24 14:55:01 [INFO] CLI command args: []string{"import", "newrelic_infra_alert_condition.foo", "5885249"}
2018/08/24 14:55:01 [INFO] command: empty terraform config, returning nil
2018/08/24 14:55:01 [DEBUG] command: no data state file found for backend config
2018/08/24 14:55:01 [DEBUG] New state was assigned lineage "d831ee51-b168-3683-82e3-8569d6e0945d"
2018/08/24 14:55:01 [INFO] command: backend initialized: <nil>
2018/08/24 14:55:01 [DEBUG] checking for provider in "."
2018/08/24 14:55:01 [DEBUG] checking for provider in "/opt/local/bin"
2018/08/24 14:55:01 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2018/08/24 14:55:01 [DEBUG] found provider "terraform-provider-newrelic_v1.0.1_x4"
2018/08/24 14:55:01 [DEBUG] found valid plugin: "newrelic", "1.0.1", "/tmp/tftest/.terraform/plugins/darwin_amd64/terraform-provider-newrelic_v1.0.1_x4"
2018/08/24 14:55:01 [DEBUG] checking for provisioner in "."
2018/08/24 14:55:01 [DEBUG] checking for provisioner in "/opt/local/bin"
2018/08/24 14:55:01 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2018/08/24 14:55:01 [INFO] command: backend <nil> is not enhanced, wrapping in local
2018/08/24 14:55:01 [DEBUG] New state was assigned lineage "9914d117-7746-be9e-f381-24aa2ba33689"
2018/08/24 14:55:01 [TRACE] ConfigTransformer: Starting for path: []
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.ConfigTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.ImportStateTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
2018/08/24 14:55:01 [TRACE] ProviderConfigTransformer: Starting for path: []
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.ProviderConfigTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
2018/08/24 14:55:01 [DEBUG] adding missing provider: newrelic
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.MissingProviderTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
2018/08/24 14:55:01 [DEBUG] resource newrelic_infra_alert_condition.foo (import id: 5885249) using provider provider.newrelic
2018/08/24 14:55:01 [DEBUG] resource newrelic_alert_policy.foo using provider provider.newrelic
2018/08/24 14:55:01 [DEBUG] resource newrelic_infra_alert_condition.foo using provider provider.newrelic
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.ProviderTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic - *terraform.NodeApplyableProvider
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.PruneProviderTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic - *terraform.NodeApplyableProvider
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.ParentProviderTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic - *terraform.NodeApplyableProvider
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.graphTransformerMulti:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic - *terraform.NodeApplyableProvider
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.ImportProviderValidateTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic - *terraform.NodeApplyableProvider
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.CloseProviderTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic (close) - *terraform.graphNodeCloseProvider
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.RootTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic (close) - *terraform.graphNodeCloseProvider
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
2018/08/24 14:55:01 [TRACE] Graph after step *terraform.TransitiveReductionTransformer:
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
provider.newrelic - *terraform.NodeApplyableProvider
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic - *terraform.NodeApplyableProvider
provider.newrelic (close) - *terraform.graphNodeCloseProvider
newrelic_alert_policy.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo - *terraform.NodeAbstractResource
newrelic_infra_alert_condition.foo (import id: 5885249) - *terraform.graphNodeImportState
2018/08/24 14:55:01 [DEBUG] Starting graph walk: walkImport
2018/08/24 14:55:01 [TRACE] dag/walk: added new vertex: "newrelic_infra_alert_condition.foo (import id: 5885249)"
2018/08/24 14:55:01 [TRACE] dag/walk: added new vertex: "provider.newrelic"
2018/08/24 14:55:01 [TRACE] dag/walk: added new vertex: "provider.newrelic (close)"
2018/08/24 14:55:01 [TRACE] dag/walk: added new vertex: "newrelic_alert_policy.foo"
2018/08/24 14:55:01 [TRACE] dag/walk: added new vertex: "newrelic_infra_alert_condition.foo"
2018/08/24 14:55:01 [TRACE] dag/walk: added edge: "newrelic_infra_alert_condition.foo" waiting on "provider.newrelic"
2018/08/24 14:55:01 [TRACE] dag/walk: added edge: "provider.newrelic (close)" waiting on "newrelic_infra_alert_condition.foo (import id: 5885249)"
2018/08/24 14:55:01 [TRACE] dag/walk: added edge: "provider.newrelic (close)" waiting on "newrelic_alert_policy.foo"
2018/08/24 14:55:01 [TRACE] dag/walk: added edge: "provider.newrelic (close)" waiting on "newrelic_infra_alert_condition.foo"
2018/08/24 14:55:01 [TRACE] dag/walk: added edge: "newrelic_infra_alert_condition.foo (import id: 5885249)" waiting on "provider.newrelic"
2018/08/24 14:55:01 [TRACE] dag/walk: added edge: "newrelic_alert_policy.foo" waiting on "provider.newrelic"
2018/08/24 14:55:01 [TRACE] dag/walk: dependencies changed for "newrelic_infra_alert_condition.foo (import id: 5885249)", sending new deps
2018/08/24 14:55:01 [TRACE] dag/walk: dependencies changed for "newrelic_alert_policy.foo", sending new deps
2018/08/24 14:55:01 [TRACE] dag/walk: dependencies changed for "newrelic_infra_alert_condition.foo", sending new deps
2018/08/24 14:55:01 [TRACE] dag/walk: dependencies changed for "provider.newrelic (close)", sending new deps
2018/08/24 14:55:01 [TRACE] dag/walk: walking "provider.newrelic"
2018/08/24 14:55:01 [TRACE] vertex 'root.provider.newrelic': walking
2018/08/24 14:55:01 [TRACE] vertex 'root.provider.newrelic': evaluating
2018/08/24 14:55:01 [TRACE] [walkImport] Entering eval tree: provider.newrelic
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalSequence
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalInitProvider
2018-08-24T14:55:01.211+1200 [DEBUG] plugin: starting plugin: path=/tmp/tftest/.terraform/plugins/darwin_amd64/terraform-provider-newrelic_v1.0.1_x4 args=[/tmp/tftest/.terraform/plugins/darwin_amd64/terraform-provider-newrelic_v1.0.1_x4]
2018-08-24T14:55:01.220+1200 [DEBUG] plugin: waiting for RPC address: path=/tmp/tftest/.terraform/plugins/darwin_amd64/terraform-provider-newrelic_v1.0.1_x4
2018-08-24T14:55:01.231+1200 [DEBUG] plugin.terraform-provider-newrelic_v1.0.1_x4: 2018/08/24 14:55:01 [DEBUG] plugin: plugin address: unix /var/folders/xy/1bkgvb9s2cd60cps3_jrmt_r0000gn/T/plugin972132998
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalOpFilter
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalSequence
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalGetProvider
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalInterpolateProvider
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalBuildProviderConfig
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalInputProvider
2018/08/24 14:55:01 [TRACE] root: eval: terraform.EvalNoop
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalOpFilter
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalSequence
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalGetProvider
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalInterpolateProvider
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalBuildProviderConfig
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalOpFilter
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalSequence
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalConfigProvider
2018-08-24T14:55:01.235+1200 [DEBUG] plugin.terraform-provider-newrelic_v1.0.1_x4: 2018/08/24 14:55:01 [INFO] Initializing New Relic client
2018-08-24T14:55:01.235+1200 [DEBUG] plugin.terraform-provider-newrelic_v1.0.1_x4: 2018/08/24 14:55:01 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2018-08-24T14:55:01.235+1200 [DEBUG] plugin.terraform-provider-newrelic_v1.0.1_x4: 2018/08/24 14:55:01 [INFO] New Relic client configured
2018-08-24T14:55:01.235+1200 [DEBUG] plugin.terraform-provider-newrelic_v1.0.1_x4: 2018/08/24 14:55:01 [INFO] Initializing New Relic Infra client
2018-08-24T14:55:01.235+1200 [DEBUG] plugin.terraform-provider-newrelic_v1.0.1_x4: 2018/08/24 14:55:01 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2018-08-24T14:55:01.235+1200 [DEBUG] plugin.terraform-provider-newrelic_v1.0.1_x4: 2018/08/24 14:55:01 [INFO] New Relic Infra client configured
2018/08/24 14:55:01 [TRACE] [walkImport] Exiting eval tree: provider.newrelic
2018/08/24 14:55:01 [TRACE] dag/walk: walking "newrelic_infra_alert_condition.foo (import id: 5885249)"
2018/08/24 14:55:01 [TRACE] vertex 'root.newrelic_infra_alert_condition.foo (import id: 5885249)': walking
2018/08/24 14:55:01 [TRACE] dag/walk: walking "newrelic_infra_alert_condition.foo"
2018/08/24 14:55:01 [TRACE] vertex 'root.newrelic_infra_alert_condition.foo': walking
2018/08/24 14:55:01 [TRACE] dag/walk: walking "newrelic_alert_policy.foo"
2018/08/24 14:55:01 [TRACE] vertex 'root.newrelic_alert_policy.foo': walking
2018/08/24 14:55:01 [TRACE] vertex 'root.newrelic_infra_alert_condition.foo (import id: 5885249)': evaluating
2018/08/24 14:55:01 [TRACE] [walkImport] Entering eval tree: newrelic_infra_alert_condition.foo (import id: 5885249)
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalSequence
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalGetProvider
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalImportState
newrelic_infra_alert_condition.foo: Importing from ID "5885249"...
2018/08/24 14:55:01 [TRACE] [walkImport] Exiting eval tree: newrelic_infra_alert_condition.foo (import id: 5885249)
2018/08/24 14:55:01 [TRACE] vertex 'root.newrelic_infra_alert_condition.foo (import id: 5885249)': expanding/walking dynamic subgraph
newrelic_infra_alert_condition.foo: Import complete!
Imported newrelic_infra_alert_condition (ID: 5885249)
2018/08/24 14:55:01 [TRACE] dag/walk: added new vertex: "import newrelic_infra_alert_condition.foo result: 5885249"
2018/08/24 14:55:01 [TRACE] dag/walk: walking "import newrelic_infra_alert_condition.foo result: 5885249"
2018/08/24 14:55:01 [TRACE] vertex 'root.import newrelic_infra_alert_condition.foo result: 5885249': walking
2018/08/24 14:55:01 [TRACE] vertex 'root.import newrelic_infra_alert_condition.foo result: 5885249': evaluating
2018/08/24 14:55:01 [TRACE] [walkImport] Entering eval tree: import newrelic_infra_alert_condition.foo result: 5885249
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalSequence
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalGetProvider
2018/08/24 14:55:01 [TRACE] root: eval: *terraform.EvalRefresh
newrelic_infra_alert_condition.foo: Refreshing state... (ID: 5885249)
2018-08-24T14:55:01.238+1200 [DEBUG] plugin.terraform-provider-newrelic_v1.0.1_x4: 2018/08/24 14:55:01 [INFO] Reading New Relic Infra alert condition 5885249
2018/08/24 14:55:01 [ERROR] root: eval: *terraform.EvalRefresh, err: newrelic_infra_alert_condition.foo: Unable to parse ID 5885249
2018/08/24 14:55:01 [ERROR] root: eval: *terraform.EvalSequence, err: newrelic_infra_alert_condition.foo: Unable to parse ID 5885249
2018/08/24 14:55:01 [TRACE] [walkImport] Exiting eval tree: import newrelic_infra_alert_condition.foo result: 5885249
2018/08/24 14:55:01 [TRACE] dag/walk: upstream errored, not walking "provider.newrelic (close)"
Error: newrelic_infra_alert_condition.foo (import id: 5885249): 1 error(s) occurred:
* import newrelic_infra_alert_condition.foo result: 5885249: newrelic_infra_alert_condition.foo: Unable to parse ID 5885249
2018/08/24 14:55:01 [DEBUG] plugin: waiting for all plugin processes to complete...
2018-08-24T14:55:01.243+1200 [DEBUG] plugin: plugin process exited: path=/tmp/tftest/.terraform/plugins/darwin_amd64/terraform-provider-newrelic_v1.0.1_x4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment