Skip to content

Instantly share code, notes, and snippets.

@flo-sch
Created April 4, 2020 15:54
Show Gist options
  • Save flo-sch/2a6f210d7292abac73051e562bf5d864 to your computer and use it in GitHub Desktop.
Save flo-sch/2a6f210d7292abac73051e562bf5d864 to your computer and use it in GitHub Desktop.
Terraform debug output using TF_LOG=trace (Redacted)
2020/04/04 17:39:47 [INFO] Terraform version: 0.12.24
2020/04/04 17:39:47 [INFO] Go runtime version: go1.13.8
2020/04/04 17:39:47 [INFO] CLI args: []string{"/usr/local/bin/terraform", "state", "pull"}
2020/04/04 17:39:47 [DEBUG] Attempting to open CLI config file: {$HOME}/.terraformrc
2020/04/04 17:39:47 Loading CLI configuration from {$HOME}/.terraformrc
2020/04/04 17:39:47 [INFO] CLI command args: []string{"state", "pull"}
2020/04/04 17:39:47 [TRACE] Meta.Backend: BackendOpts.Config not set, so using settings loaded from main.tf:21,3-19
2020/04/04 17:39:47 [TRACE] Meta.Backend: built configuration for "remote" backend with hash value 3378415742
2020/04/04 17:39:47 [TRACE] Preserving existing state lineage "170b9c25-00a5-da21-7a9c-654ec9719fb7"
2020/04/04 17:39:47 [TRACE] Preserving existing state lineage "170b9c25-00a5-da21-7a9c-654ec9719fb7"
2020/04/04 17:39:47 [TRACE] Meta.Backend: working directory was previously initialized for "remote" backend
2020/04/04 17:39:47 [TRACE] Meta.Backend: using already-initialized, unchanged "remote" backend configuration
2020/04/04 17:39:47 [DEBUG] Service discovery for app.terraform.io at https://app.terraform.io/.well-known/terraform.json
2020/04/04 17:39:47 [TRACE] HTTP client GET request to https://app.terraform.io/.well-known/terraform.json
2020/04/04 17:39:47 [DEBUG] Retrieve version constraints for service tfe.v2.1 and product terraform
2020/04/04 17:39:47 [TRACE] HTTP client GET request to https://checkpoint-api.hashicorp.com/v1/versions/tfe.v2.1?product=terraform
2020/04/04 17:39:48 [TRACE] Meta.Backend: instantiated backend of type *remote.Remote
2020/04/04 17:39:48 [DEBUG] checking for provider in "."
2020/04/04 17:39:48 [DEBUG] checking for provider in "/usr/local/bin"
2020/04/04 17:39:48 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2020/04/04 17:39:48 [DEBUG] found provider "terraform-provider-aws_v2.53.0_x4"
2020/04/04 17:39:48 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2020/04/04 17:39:48 [DEBUG] found valid plugin: "aws", "2.53.0", "/{my-terraform-project}/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.53.0_x4"
2020/04/04 17:39:48 [DEBUG] found valid plugin: "template", "2.1.2", "/{my-terraform-project}/.terraform/plugins/darwin_amd64/terraform-provider-template_v2.1.2_x4"
2020/04/04 17:39:48 [DEBUG] checking for provisioner in "."
2020/04/04 17:39:48 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/04/04 17:39:48 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2020/04/04 17:39:48 [TRACE] Meta.Backend: backend *remote.Remote supports operations
Migrating module: vs_alpha_s3_test
2020/04/04 17:39:50 [INFO] Terraform version: 0.12.24
2020/04/04 17:39:50 [INFO] Go runtime version: go1.13.8
2020/04/04 17:39:50 [INFO] CLI args: []string{"/usr/local/bin/terraform", "state", "mv", "-state=my-test-workspace.final.tfstate", "-state-out=my-test-workspace.final.tfstate", "module.project_1_frontend.module.s3.aws_s3_bucket.default", "module.project_1_frontend.module.s3.module.s3_bucket.aws_s3_bucket.this[0]"}
2020/04/04 17:39:50 [DEBUG] Attempting to open CLI config file: {$HOME}/.terraformrc
2020/04/04 17:39:50 Loading CLI configuration from {$HOME}/.terraformrc
2020/04/04 17:39:50 [INFO] CLI command args: []string{"state", "mv", "-state=my-test-workspace.final.tfstate", "-state-out=my-test-workspace.final.tfstate", "module.project_1_frontend.module.s3.aws_s3_bucket.default", "module.project_1_frontend.module.s3.module.s3_bucket.aws_s3_bucket.this[0]"}
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: existing snapshot has lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 0
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: locking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing lock metadata to my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: reading latest snapshot from my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: read snapshot with lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 0
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: existing snapshot has lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 0
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: locking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing lock metadata to my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: reading latest snapshot from my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: read snapshot with lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 0
Move "module.project_1_frontend.module.s3.aws_s3_bucket.default" to "module.project_1_frontend.module.s3.module.s3_bucket.aws_s3_bucket.this[0]"
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: creating backup snapshot at my-test-workspace.final.tfstate.1586014790.backup
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 1
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing snapshot at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: creating backup snapshot at my-test-workspace.final.tfstate.1586014790.backup
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 1
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing snapshot at my-test-workspace.final.tfstate
Successfully moved 1 object(s).
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: removing lock metadata file my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: unlocking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: removing lock metadata file my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: unlocking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [INFO] Terraform version: 0.12.24
2020/04/04 17:39:50 [INFO] Go runtime version: go1.13.8
2020/04/04 17:39:50 [INFO] CLI args: []string{"/usr/local/bin/terraform", "state", "mv", "-state=my-test-workspace.final.tfstate", "-state-out=my-test-workspace.final.tfstate", "module.project_1_frontend.module.s3.aws_s3_bucket_public_access_block.default", "module.project_1_frontend.module.s3.module.s3_bucket.aws_s3_bucket_public_access_block.this[0]"}
2020/04/04 17:39:50 [DEBUG] Attempting to open CLI config file: {$HOME}/.terraformrc
2020/04/04 17:39:50 Loading CLI configuration from {$HOME}/.terraformrc
2020/04/04 17:39:50 [INFO] CLI command args: []string{"state", "mv", "-state=my-test-workspace.final.tfstate", "-state-out=my-test-workspace.final.tfstate", "module.project_1_frontend.module.s3.aws_s3_bucket_public_access_block.default", "module.project_1_frontend.module.s3.module.s3_bucket.aws_s3_bucket_public_access_block.this[0]"}
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: existing snapshot has lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 1
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: locking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing lock metadata to my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: reading latest snapshot from my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: read snapshot with lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 1
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: existing snapshot has lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 1
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: locking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing lock metadata to my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: reading latest snapshot from my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: read snapshot with lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 1
Move "module.project_1_frontend.module.s3.aws_s3_bucket_public_access_block.default" to "module.project_1_frontend.module.s3.module.s3_bucket.aws_s3_bucket_public_access_block.this[0]"
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: creating backup snapshot at my-test-workspace.final.tfstate.1586014790.backup
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 2
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing snapshot at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: creating backup snapshot at my-test-workspace.final.tfstate.1586014790.backup
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 2
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing snapshot at my-test-workspace.final.tfstate
Successfully moved 1 object(s).
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: removing lock metadata file my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: unlocking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: removing lock metadata file my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: unlocking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [INFO] Terraform version: 0.12.24
2020/04/04 17:39:50 [INFO] Go runtime version: go1.13.8
2020/04/04 17:39:50 [INFO] CLI args: []string{"/usr/local/bin/terraform", "state", "mv", "-state=my-test-workspace.final.tfstate", "-state-out=my-test-workspace.final.tfstate", "module.project_1_frontend.module.s3.aws_s3_bucket_policy.default", "module.project_1_frontend.module.s3_policy.aws_s3_bucket_policy.default"}
2020/04/04 17:39:50 [DEBUG] Attempting to open CLI config file: {$HOME}/.terraformrc
2020/04/04 17:39:50 Loading CLI configuration from {$HOME}/.terraformrc
2020/04/04 17:39:50 [INFO] CLI command args: []string{"state", "mv", "-state=my-test-workspace.final.tfstate", "-state-out=my-test-workspace.final.tfstate", "module.project_1_frontend.module.s3.aws_s3_bucket_policy.default", "module.project_1_frontend.module.s3_policy.aws_s3_bucket_policy.default"}
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: existing snapshot has lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 2
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: locking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing lock metadata to my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: reading latest snapshot from my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: read snapshot with lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 2
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: existing snapshot has lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 2
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: locking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing lock metadata to my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: reading latest snapshot from my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: read snapshot with lineage "870a534d-9165-784f-1f31-95c495dc7cf4" serial 2
Move "module.project_1_frontend.module.s3.aws_s3_bucket_policy.default" to "module.project_1_frontend.module.s3_policy.aws_s3_bucket_policy.default"
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: creating backup snapshot at my-test-workspace.final.tfstate.1586014790.backup
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 3
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing snapshot at my-test-workspace.final.tfstate
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: creating backup snapshot at my-test-workspace.final.tfstate.1586014790.backup
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 3
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: writing snapshot at my-test-workspace.final.tfstate
Successfully moved 1 object(s).
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: removing lock metadata file my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: unlocking my-test-workspace.final.tfstate using fcntl flock
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: removing lock metadata file my-test-workspace.final.tfstate.lock.info
2020/04/04 17:39:50 [TRACE] statemgr.Filesystem: unlocking my-test-workspace.final.tfstate using fcntl flock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment