Skip to content

Instantly share code, notes, and snippets.

@bpo
Created November 16, 2018 20:39
Show Gist options
  • Save bpo/57c57778ef7bf1489b9551693cd01f7b to your computer and use it in GitHub Desktop.
Save bpo/57c57778ef7bf1489b9551693cd01f7b to your computer and use it in GitHub Desktop.
2018/11/16 12:35:28 [INFO] Terraform version: 0.11.10
2018/11/16 12:35:28 [INFO] Go runtime version: go1.11.2
2018/11/16 12:35:28 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.10/bin/terraform", "import", "heroku_cert.ssl_certificate", "foo"}
2018/11/16 12:35:28 [DEBUG] Attempting to open CLI config file: /Users/REDACTED/.terraformrc
2018/11/16 12:35:28 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/11/16 12:35:28 [INFO] CLI command args: []string{"import", "heroku_cert.ssl_certificate", "foo"}
2018/11/16 12:35:28 [INFO] command: empty terraform config, returning nil
2018/11/16 12:35:28 [DEBUG] command: no data state file found for backend config
2018/11/16 12:35:28 [DEBUG] New state was assigned lineage "ae14bcd7-1de4-ca38-53eb-506acd360b4d"
2018/11/16 12:35:28 [INFO] command: backend initialized: <nil>
2018/11/16 12:35:28 [DEBUG] checking for provider in "."
2018/11/16 12:35:28 [DEBUG] checking for provider in "/usr/local/Cellar/terraform/0.11.10/bin"
2018/11/16 12:35:28 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2018/11/16 12:35:28 [DEBUG] found provider "terraform-provider-heroku_v1.6.0_x4"
2018/11/16 12:35:28 [DEBUG] found valid plugin: "heroku", "1.6.0", "/Users/REDACTED/REDACTED/sandbox/.terraform/plugins/darwin_amd64/terraform-provider-heroku_v1.6.0_x4"
2018/11/16 12:35:28 [DEBUG] checking for provisioner in "."
2018/11/16 12:35:28 [DEBUG] checking for provisioner in "/usr/local/Cellar/terraform/0.11.10/bin"
2018/11/16 12:35:28 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2018/11/16 12:35:28 [INFO] command: backend <nil> is not enhanced, wrapping in local
2018/11/16 12:35:28 [DEBUG] New state was assigned lineage "b635299b-81df-9b40-4c2d-ce25f1c1dcae"
2018/11/16 12:35:28 [TRACE] ConfigTransformer: Starting for path: []
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.ConfigTransformer:
heroku_app.default - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.ImportStateTransformer:
heroku_app.default - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
2018/11/16 12:35:28 [TRACE] ProviderConfigTransformer: Starting for path: []
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.ProviderConfigTransformer:
heroku_app.default - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
2018/11/16 12:35:28 [DEBUG] adding missing provider: heroku
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.MissingProviderTransformer:
heroku_app.default - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
2018/11/16 12:35:28 [DEBUG] resource heroku_cert.ssl_certificate (import id: foo) using provider provider.heroku
2018/11/16 12:35:28 [DEBUG] resource heroku_app.default using provider provider.heroku
2018/11/16 12:35:28 [DEBUG] resource heroku_cert.ssl_certificate using provider provider.heroku
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.ProviderTransformer:
heroku_app.default - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku - *terraform.NodeApplyableProvider
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.PruneProviderTransformer:
heroku_app.default - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku - *terraform.NodeApplyableProvider
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.ParentProviderTransformer:
heroku_app.default - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku - *terraform.NodeApplyableProvider
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.graphTransformerMulti:
heroku_app.default - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku - *terraform.NodeApplyableProvider
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.ImportProviderValidateTransformer:
heroku_app.default - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku - *terraform.NodeApplyableProvider
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.CloseProviderTransformer:
heroku_app.default - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku (close) - *terraform.graphNodeCloseProvider
heroku_app.default - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.RootTransformer:
heroku_app.default - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku (close) - *terraform.graphNodeCloseProvider
heroku_app.default - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
2018/11/16 12:35:28 [TRACE] Graph after step *terraform.TransitiveReductionTransformer:
heroku_app.default - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
provider.heroku - *terraform.NodeApplyableProvider
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku - *terraform.NodeApplyableProvider
provider.heroku (close) - *terraform.graphNodeCloseProvider
heroku_app.default - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate - *terraform.NodeAbstractResource
heroku_cert.ssl_certificate (import id: foo) - *terraform.graphNodeImportState
2018/11/16 12:35:28 [DEBUG] Starting graph walk: walkImport
2018/11/16 12:35:28 [TRACE] dag/walk: added new vertex: "heroku_app.default"
2018/11/16 12:35:28 [TRACE] dag/walk: added new vertex: "heroku_cert.ssl_certificate"
2018/11/16 12:35:28 [TRACE] dag/walk: added new vertex: "heroku_cert.ssl_certificate (import id: foo)"
2018/11/16 12:35:28 [TRACE] dag/walk: added new vertex: "provider.heroku"
2018/11/16 12:35:28 [TRACE] dag/walk: added new vertex: "provider.heroku (close)"
2018/11/16 12:35:28 [TRACE] dag/walk: added edge: "provider.heroku (close)" waiting on "heroku_app.default"
2018/11/16 12:35:28 [TRACE] dag/walk: added edge: "provider.heroku (close)" waiting on "heroku_cert.ssl_certificate"
2018/11/16 12:35:28 [TRACE] dag/walk: added edge: "heroku_cert.ssl_certificate (import id: foo)" waiting on "provider.heroku"
2018/11/16 12:35:28 [TRACE] dag/walk: added edge: "heroku_app.default" waiting on "provider.heroku"
2018/11/16 12:35:28 [TRACE] dag/walk: added edge: "heroku_cert.ssl_certificate" waiting on "provider.heroku"
2018/11/16 12:35:28 [TRACE] dag/walk: added edge: "provider.heroku (close)" waiting on "heroku_cert.ssl_certificate (import id: foo)"
2018/11/16 12:35:28 [TRACE] dag/walk: dependencies changed for "heroku_cert.ssl_certificate (import id: foo)", sending new deps
2018/11/16 12:35:28 [TRACE] dag/walk: dependencies changed for "heroku_app.default", sending new deps
2018/11/16 12:35:28 [TRACE] dag/walk: dependencies changed for "heroku_cert.ssl_certificate", sending new deps
2018/11/16 12:35:28 [TRACE] dag/walk: dependencies changed for "provider.heroku (close)", sending new deps
2018/11/16 12:35:28 [TRACE] dag/walk: walking "provider.heroku"
2018/11/16 12:35:28 [TRACE] vertex 'root.provider.heroku': walking
2018/11/16 12:35:28 [TRACE] vertex 'root.provider.heroku': evaluating
2018/11/16 12:35:28 [TRACE] [walkImport] Entering eval tree: provider.heroku
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalSequence
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalInitProvider
2018-11-16T12:35:28.829-0800 [DEBUG] plugin: starting plugin: path=/Users/REDACTED/REDACTED/sandbox/.terraform/plugins/darwin_amd64/terraform-provider-heroku_v1.6.0_x4 args=[/Users/REDACTED/REDACTED/sandbox/.terraform/plugins/darwin_amd64/terraform-provider-heroku_v1.6.0_x4]
2018-11-16T12:35:28.831-0800 [DEBUG] plugin: waiting for RPC address: path=/Users/REDACTED/REDACTED/sandbox/.terraform/plugins/darwin_amd64/terraform-provider-heroku_v1.6.0_x4
2018-11-16T12:35:28.842-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: plugin address: timestamp=2018-11-16T12:35:28.841-0800 address=/var/folders/hz/h62nd3ss23qbj98vdy_wb78w0000gn/T/plugin384462192 network=unix
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalOpFilter
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalSequence
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalGetProvider
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalInterpolateProvider
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalBuildProviderConfig
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalInputProvider
2018/11/16 12:35:28 [TRACE] root: eval: terraform.EvalNoop
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalOpFilter
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalSequence
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalGetProvider
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalInterpolateProvider
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalBuildProviderConfig
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalOpFilter
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalSequence
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalConfigProvider
2018-11-16T12:35:28.845-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: 2018/11/16 12:35:28 [INFO] Initializing Heroku client
2018-11-16T12:35:28.845-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: 2018/11/16 12:35:28 [INFO] Heroku Client configured for user: REDACTED@REDACTED
2018/11/16 12:35:28 [TRACE] [walkImport] Exiting eval tree: provider.heroku
2018/11/16 12:35:28 [TRACE] dag/walk: walking "heroku_cert.ssl_certificate (import id: foo)"
2018/11/16 12:35:28 [TRACE] vertex 'root.heroku_cert.ssl_certificate (import id: foo)': walking
2018/11/16 12:35:28 [TRACE] dag/walk: walking "heroku_cert.ssl_certificate"
2018/11/16 12:35:28 [TRACE] vertex 'root.heroku_cert.ssl_certificate': walking
2018/11/16 12:35:28 [TRACE] dag/walk: walking "heroku_app.default"
2018/11/16 12:35:28 [TRACE] vertex 'root.heroku_app.default': walking
2018/11/16 12:35:28 [TRACE] vertex 'root.heroku_cert.ssl_certificate (import id: foo)': evaluating
2018/11/16 12:35:28 [TRACE] [walkImport] Entering eval tree: heroku_cert.ssl_certificate (import id: foo)
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalSequence
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalGetProvider
2018/11/16 12:35:28 [TRACE] root: eval: *terraform.EvalImportState
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: panic: runtime error: index out of range
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4:
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: goroutine 67 [running]:
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: github.com/terraform-providers/terraform-provider-heroku/heroku.parseCompositeID(0xc42041219b, 0x3, 0xc4204669e0, 0x105cc86, 0xc420414218, 0x1)
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-heroku/heroku/provider.go:118 +0x9e
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: github.com/terraform-providers/terraform-provider-heroku/heroku.resourceHerokuCertImport(0xc4204141c0, 0x1931240, 0xc4203f8330, 0xb, 0xc420262e98, 0x1, 0xc420416600, 0x1963a40)
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-heroku/heroku/resource_heroku_cert.go:57 +0x87
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: github.com/terraform-providers/terraform-provider-heroku/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).ImportState(0xc42033bb20, 0xc420424140, 0xc42041219b, 0x3, 0xc420394000, 0xc420410420, 0x2382458, 0x0, 0x18)
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-heroku/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:365 +0x2c3
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: github.com/terraform-providers/terraform-provider-heroku/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).ImportState(0xc420336820, 0xc420410240, 0xc420410400, 0x0, 0x0)
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-heroku/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:560 +0x57
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: reflect.Value.call(0xc42008d920, 0xc42000cd68, 0x13, 0x1a83d24, 0x4, 0xc420466f18, 0x3, 0x3, 0xc4202a9000, 0x0, ...)
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: /opt/goenv/versions/1.10.3/src/reflect/value.go:447 +0x969
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: reflect.Value.Call(0xc42008d920, 0xc42000cd68, 0x13, 0xc420403718, 0x3, 0x3, 0x0, 0x0, 0x0)
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: /opt/goenv/versions/1.10.3/src/reflect/value.go:308 +0xa4
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: net/rpc.(*service).call(0xc4202a9580, 0xc4200b57c0, 0xc420332f38, 0xc420332f60, 0xc4201b4b80, 0xc420336de0, 0x18b92c0, 0xc420410240, 0x16, 0x18b9300, ...)
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: /opt/goenv/versions/1.10.3/src/net/rpc/server.go:384 +0x14e
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: created by net/rpc.(*Server).ServeCodec
2018-11-16T12:35:28.848-0800 [DEBUG] plugin.terraform-provider-heroku_v1.6.0_x4: /opt/goenv/versions/1.10.3/src/net/rpc/server.go:480 +0x43a
2018/11/16 12:35:28 [ERROR] root: eval: *terraform.EvalImportState, err: import heroku_cert.ssl_certificate (id: foo): unexpected EOF
2018/11/16 12:35:28 [ERROR] root: eval: *terraform.EvalSequence, err: import heroku_cert.ssl_certificate (id: foo): unexpected EOF
2018/11/16 12:35:28 [TRACE] [walkImport] Exiting eval tree: heroku_cert.ssl_certificate (import id: foo)
2018/11/16 12:35:28 [TRACE] dag/walk: upstream errored, not walking "provider.heroku (close)"
2018-11-16T12:35:28.850-0800 [DEBUG] plugin: plugin process exited: path=/Users/REDACTED/REDACTED/sandbox/.terraform/plugins/darwin_amd64/terraform-provider-heroku_v1.6.0_x4
2018/11/16 12:35:28 [DEBUG] plugin: waiting for all plugin processes to complete...
2018-11-16T12:35:28.850-0800 [WARN ] plugin: error closing client during Kill: err="connection is shut down"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment