Skip to content

Instantly share code, notes, and snippets.

@tomasaschan
Created December 19, 2018 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasaschan/88a5f8906066635c6e02751d80df988d to your computer and use it in GitHub Desktop.
Save tomasaschan/88a5f8906066635c6e02751d80df988d to your computer and use it in GitHub Desktop.
terraform state rm debug output
> terraform state list
2018/12/19 09:49:35 [INFO] Terraform version: 0.11.9 4e44b41c8bc1b533d14f9939690adf09e3d2a2be
2018/12/19 09:49:35 [INFO] Go runtime version: go1.11.1
2018/12/19 09:49:35 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\lib\\terraform\\tools\\terraform.exe", "state", "list"}
2018/12/19 09:49:35 [DEBUG] Attempting to open CLI config file: C:\Users\tomas\AppData\Roaming\terraform.rc
2018/12/19 09:49:35 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/12/19 09:49:35 [INFO] CLI command args: []string{"state", "list"}
2018/12/19 09:49:35 [DEBUG] command: loading backend config file: C:\Work\OSS\Throwaway repros\terraform-state-rm-with-modules
2018/12/19 09:49:35 [WARN] BackendOpts.Config not set, but config found
2018/12/19 09:49:35 [INFO] command: empty terraform config, returning nil
2018/12/19 09:49:35 [DEBUG] command: no data state file found for backend config
2018/12/19 09:49:35 [DEBUG] New state was assigned lineage "c305576c-f4ac-45c4-d652-05170e676f16"
2018/12/19 09:49:35 [INFO] command: backend initialized: <nil>
2018/12/19 09:49:35 [DEBUG] checking for provider in "."
2018/12/19 09:49:35 [DEBUG] checking for provider in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2018/12/19 09:49:35 [DEBUG] checking for provider in ".terraform\\plugins\\windows_amd64"
2018/12/19 09:49:35 [DEBUG] found provider "terraform-provider-random_v2.0.0_x4.exe"
2018/12/19 09:49:35 [DEBUG] found valid plugin: "random", "2.0.0", "C:\\Work\\OSS\\Throwaway repros\\terraform-state-rm-with-modules\\.terraform\\plugins\\windows_amd64\\terraform-provider-random_v2.0.0_x4.exe"
2018/12/19 09:49:35 [DEBUG] checking for provisioner in "."
2018/12/19 09:49:35 [DEBUG] checking for provisioner in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2018/12/19 09:49:35 [DEBUG] checking for provisioner in ".terraform\\plugins\\windows_amd64"
2018/12/19 09:49:35 [INFO] command: backend <nil> is not enhanced, wrapping in local
2018/12/19 09:49:35 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
2018/12/19 09:49:35 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
2018/12/19 09:49:35 [DEBUG] plugin: waiting for all plugin processes to complete...
module.bar.random_string.foo
random_string.foo
> terraform state rm random_string.foo
2018/12/19 09:49:44 [INFO] Terraform version: 0.11.9 4e44b41c8bc1b533d14f9939690adf09e3d2a2be
2018/12/19 09:49:44 [INFO] Go runtime version: go1.11.1
2018/12/19 09:49:44 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\lib\\terraform\\tools\\terraform.exe", "state", "rm", "random_string.foo"}
2018/12/19 09:49:44 [DEBUG] Attempting to open CLI config file: C:\Users\tomas\AppData\Roaming\terraform.rc
2018/12/19 09:49:44 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/12/19 09:49:44 [INFO] CLI command args: []string{"state", "rm", "random_string.foo"}
2018/12/19 09:49:44 [DEBUG] command: loading backend config file: C:\Work\OSS\Throwaway repros\terraform-state-rm-with-modules
2018/12/19 09:49:44 [WARN] BackendOpts.Config not set, but config found
2018/12/19 09:49:44 [INFO] command: empty terraform config, returning nil
2018/12/19 09:49:44 [DEBUG] command: no data state file found for backend config
2018/12/19 09:49:44 [DEBUG] New state was assigned lineage "d48e701b-3d9c-3633-458a-1016f518b2e2"
2018/12/19 09:49:44 [INFO] command: backend initialized: <nil>
2018/12/19 09:49:44 [DEBUG] checking for provider in "."
2018/12/19 09:49:44 [DEBUG] checking for provider in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2018/12/19 09:49:44 [DEBUG] checking for provider in ".terraform\\plugins\\windows_amd64"
2018/12/19 09:49:44 [DEBUG] found provider "terraform-provider-random_v2.0.0_x4.exe"
2018/12/19 09:49:44 [DEBUG] found valid plugin: "random", "2.0.0", "C:\\Work\\OSS\\Throwaway repros\\terraform-state-rm-with-modules\\.terraform\\plugins\\windows_amd64\\terraform-provider-random_v2.0.0_x4.exe"
2018/12/19 09:49:44 [DEBUG] checking for provisioner in "."
2018/12/19 09:49:44 [DEBUG] checking for provisioner in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2018/12/19 09:49:44 [DEBUG] checking for provisioner in ".terraform\\plugins\\windows_amd64"
2018/12/19 09:49:44 [INFO] command: backend <nil> is not enhanced, wrapping in local
2018/12/19 09:49:44 [DEBUG] checking for provider in "."
2018/12/19 09:49:44 [DEBUG] checking for provider in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2018/12/19 09:49:44 [DEBUG] checking for provider in ".terraform\\plugins\\windows_amd64"
2018/12/19 09:49:44 [DEBUG] found provider "terraform-provider-random_v2.0.0_x4.exe"
2018/12/19 09:49:44 [DEBUG] found valid plugin: "random", "2.0.0", "C:\\Work\\OSS\\Throwaway repros\\terraform-state-rm-with-modules\\.terraform\\plugins\\windows_amd64\\terraform-provider-random_v2.0.0_x4.exe"
2018/12/19 09:49:44 [DEBUG] checking for provisioner in "."
2018/12/19 09:49:44 [DEBUG] checking for provisioner in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2018/12/19 09:49:44 [DEBUG] checking for provisioner in ".terraform\\plugins\\windows_amd64"
2018/12/19 09:49:44 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
2018/12/19 09:49:44 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
1 items2018/12/19 09:49:44 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
removed.
2018/12/19 09:49:44 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
2018/12/19 09:49:44 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
2018/12/19 09:49:44 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
2018/12/19 09:49:44 [DEBUG] plugin: waiting for all plugin processes to complete...
Item removal successful.
> terraform state list
2018/12/19 09:49:52 [INFO] Terraform version: 0.11.9 4e44b41c8bc1b533d14f9939690adf09e3d2a2be
2018/12/19 09:49:52 [INFO] Go runtime version: go1.11.1
2018/12/19 09:49:52 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\lib\\terraform\\tools\\terraform.exe", "state", "list"}
2018/12/19 09:49:52 [DEBUG] Attempting to open CLI config file: C:\Users\tomas\AppData\Roaming\terraform.rc
2018/12/19 09:49:52 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/12/19 09:49:52 [INFO] CLI command args: []string{"state", "list"}
2018/12/19 09:49:52 [DEBUG] command: loading backend config file: C:\Work\OSS\Throwaway repros\terraform-state-rm-with-modules
2018/12/19 09:49:52 [WARN] BackendOpts.Config not set, but config found
2018/12/19 09:49:52 [INFO] command: empty terraform config, returning nil
2018/12/19 09:49:52 [DEBUG] command: no data state file found for backend config
2018/12/19 09:49:52 [DEBUG] New state was assigned lineage "eba3905a-3202-1f8c-948c-9ca7c3f81cba"
2018/12/19 09:49:52 [INFO] command: backend initialized: <nil>
2018/12/19 09:49:52 [DEBUG] checking for provider in "."
2018/12/19 09:49:52 [DEBUG] checking for provider in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2018/12/19 09:49:52 [DEBUG] checking for provider in ".terraform\\plugins\\windows_amd64"
2018/12/19 09:49:52 [DEBUG] found provider "terraform-provider-random_v2.0.0_x4.exe"
2018/12/19 09:49:52 [DEBUG] found valid plugin: "random", "2.0.0", "C:\\Work\\OSS\\Throwaway repros\\terraform-state-rm-with-modules\\.terraform\\plugins\\windows_amd64\\terraform-provider-random_v2.0.0_x4.exe"
2018/12/19 09:49:52 [DEBUG] checking for provisioner in "."
2018/12/19 09:49:52 [DEBUG] checking for provisioner in "C:\\ProgramData\\chocolatey\\lib\\terraform\\tools"
2018/12/19 09:49:52 [DEBUG] checking for provisioner in ".terraform\\plugins\\windows_amd64"
2018/12/19 09:49:52 [INFO] command: backend <nil> is not enhanced, wrapping in local
2018/12/19 09:49:52 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
2018/12/19 09:49:52 [TRACE] Preserving existing state lineage "34a5b481-a5f4-f93c-18dc-c50ff5417ce2"
2018/12/19 09:49:52 [DEBUG] plugin: waiting for all plugin processes to complete...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment