Skip to content

Instantly share code, notes, and snippets.

@kierdavis
Created July 18, 2022 09:46
Show Gist options
  • Save kierdavis/bf08c0af4c47c7a89af663efad5ed44a to your computer and use it in GitHub Desktop.
Save kierdavis/bf08c0af4c47c7a89af663efad5ed44a to your computer and use it in GitHub Desktop.
2022-07-18T04:43:37.746-0500 [INFO] Terraform version: 1.1.7
2022-07-18T04:43:37.746-0500 [INFO] Go runtime version: go1.17.8
2022-07-18T04:43:37.746-0500 [INFO] CLI args: []string{"terraform", "import", "-no-color", "cloudflare_list.test", "0123456789abcdeffedcba9876543210/nonexistent"}
2022-07-18T04:43:37.746-0500 [DEBUG] Attempting to open CLI config file: /home/kdavis/.terraformrc
2022-07-18T04:43:37.746-0500 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-07-18T04:43:37.746-0500 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-07-18T04:43:37.746-0500 [DEBUG] ignoring non-existing provider search directory /home/kdavis/.terraform.d/plugins
2022-07-18T04:43:37.746-0500 [DEBUG] ignoring non-existing provider search directory /home/kdavis/.local/share/terraform/plugins
2022-07-18T04:43:37.746-0500 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2022-07-18T04:43:37.746-0500 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2022-07-18T04:43:37.746-0500 [INFO] CLI command args: []string{"import", "-no-color", "cloudflare_list.test", "0123456789abcdeffedcba9876543210/nonexistent"}
2022-07-18T04:43:37.747-0500 [DEBUG] New state was assigned lineage "56e8e586-8a9d-b3af-039e-1bf3ccc41be3"
2022-07-18T04:43:37.796-0500 [DEBUG] checking for provisioner in "."
2022-07-18T04:43:37.802-0500 [DEBUG] checking for provisioner in "/usr/bin"
2022-07-18T04:43:37.804-0500 [DEBUG] Building and walking import graph
2022-07-18T04:43:37.804-0500 [DEBUG] ProviderTransformer: "cloudflare_list.test" (*terraform.NodeAbstractResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-07-18T04:43:37.804-0500 [DEBUG] ProviderTransformer: "cloudflare_list.test (import id \"0123456789abcdeffedcba9876543210/nonexistent\")" (*terraform.graphNodeImportState) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2022-07-18T04:43:37.804-0500 [DEBUG] created provider logger: level=debug
2022-07-18T04:43:37.805-0500 [INFO] provider: configuring client automatic mTLS
2022-07-18T04:43:37.813-0500 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0]
2022-07-18T04:43:37.813-0500 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0 pid=54817
2022-07-18T04:43:37.813-0500 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0
2022-07-18T04:43:37.820-0500 [INFO] provider.terraform-provider-cloudflare_v3.19.0: configuring server automatic mTLS: timestamp=2022-07-18T04:43:37.820-0500
2022-07-18T04:43:37.840-0500 [DEBUG] provider.terraform-provider-cloudflare_v3.19.0: plugin address: address=/tmp/plugin2735171159 network=unix timestamp=2022-07-18T04:43:37.840-0500
2022-07-18T04:43:37.840-0500 [DEBUG] provider: using plugin: version=5
2022-07-18T04:43:37.879-0500 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-07-18T04:43:37.880-0500 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0 pid=54817
2022-07-18T04:43:37.880-0500 [DEBUG] provider: plugin exited
2022-07-18T04:43:37.880-0500 [DEBUG] ReferenceTransformer: "cloudflare_list.test" references: []
2022-07-18T04:43:37.880-0500 [DEBUG] ReferenceTransformer: "cloudflare_list.test (import id \"0123456789abcdeffedcba9876543210/nonexistent\")" references: []
2022-07-18T04:43:37.880-0500 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: []
2022-07-18T04:43:37.880-0500 [DEBUG] Starting graph walk: walkImport
2022-07-18T04:43:37.880-0500 [DEBUG] created provider logger: level=debug
2022-07-18T04:43:37.880-0500 [INFO] provider: configuring client automatic mTLS
2022-07-18T04:43:37.889-0500 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0]
2022-07-18T04:43:37.889-0500 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0 pid=54825
2022-07-18T04:43:37.889-0500 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0
2022-07-18T04:43:37.894-0500 [INFO] provider.terraform-provider-cloudflare_v3.19.0: configuring server automatic mTLS: timestamp=2022-07-18T04:43:37.894-0500
2022-07-18T04:43:37.912-0500 [DEBUG] provider.terraform-provider-cloudflare_v3.19.0: plugin address: address=/tmp/plugin3387666567 network=unix timestamp=2022-07-18T04:43:37.911-0500
2022-07-18T04:43:37.912-0500 [DEBUG] provider: using plugin: version=5
2022-07-18T04:43:37.952-0500 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" changed the config value, but that value is unused
cloudflare_list.test: Importing from ID "0123456789abcdeffedcba9876543210/nonexistent"...
2022-07-18T04:43:37.953-0500 [DEBUG] provider.terraform-provider-cloudflare_v3.19.0: Cloudflare API Request Details:
---[ REQUEST ]---------------------------------------
GET /client/v4/accounts/0123456789abcdeffedcba9876543210/rules/lists/nonexistent HTTP/1.1
Host: api.cloudflare.com
User-Agent: terraform/1.1.7 terraform-plugin-sdk/2.10.1 terraform-provider-cloudflare/dev
Authorization: Bearer REDACTED
Content-Type: application/json
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2022-07-18T04:43:37.953-0500
2022-07-18T04:43:38.853-0500 [DEBUG] provider.terraform-provider-cloudflare_v3.19.0: Cloudflare API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 404 Not Found
Connection: close
Transfer-Encoding: chunked
Cf-Cache-Status: DYNAMIC
Cf-Ray: REDACTED
Content-Type: application/json; charset=UTF-8
Date: Mon, 18 Jul 2022 09:43:38 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cflb=REDACTED; SameSite=Lax; path=/; expires=Mon, 18-Jul-22 12:13:39 GMT; HttpOnly
Set-Cookie: __cfruid=REDACTED; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
Vary: Accept-Encoding
X-Envoy-Upstream-Service-Time: 1
bb
{
"result": null,
"success": false,
"errors": [
{
"code": 10001,
"message": "filters.api.not_found: could not find list nonexistent"
}
],
"messages": null
}
0
-----------------------------------------------------: timestamp=2022-07-18T04:43:38.853-0500
2022-07-18T04:43:38.853-0500 [INFO] provider.terraform-provider-cloudflare_v3.19.0: List nonexistent no longer exists: tf_rpc=ImportResourceState @module=cloudflare tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=0c26bce1-64fc-57e1-49db-22e738698dbf tf_resource_type=cloudflare_list @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/provider/resource_cloudflare_list.go:86 timestamp=2022-07-18T04:43:38.853-0500
2022-07-18T04:43:38.853-0500 [ERROR] provider.terraform-provider-cloudflare_v3.19.0: Response contains error diagnostic: tf_resource_type=cloudflare_list @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="The provider returned a resource missing an identifier during ImportResourceState. This is generally a bug in the resource implementation for import. Resource import code should not call d.SetId("") or create an empty ResourceData. If the resource is missing, instead return an error. Please report this to the provider developers." tf_req_id=0c26bce1-64fc-57e1-49db-22e738698dbf diagnostic_detail= tf_proto_version=5.2 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_rpc=ImportResourceState @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:56 timestamp=2022-07-18T04:43:38.853-0500
2022-07-18T04:43:38.854-0500 [ERROR] vertex "cloudflare_list.test (import id \"0123456789abcdeffedcba9876543210/nonexistent\")" error: The provider returned a resource missing an identifier during ImportResourceState. This is generally a bug in the resource implementation for import. Resource import code should not call d.SetId("") or create an empty ResourceData. If the resource is missing, instead return an error. Please report this to the provider developers.
Error: The provider returned a resource missing an identifier during ImportResourceState. This is generally a bug in the resource implementation for import. Resource import code should not call d.SetId("") or create an empty ResourceData. If the resource is missing, instead return an error. Please report this to the provider developers.
2022-07-18T04:43:38.854-0500 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-07-18T04:43:38.855-0500 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.19.0/linux_amd64/terraform-provider-cloudflare_v3.19.0 pid=54825
2022-07-18T04:43:38.855-0500 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment