-
-
Save Done203/14d59eba0dd291c7936ad611d107b9cc to your computer and use it in GitHub Desktop.
Incorrect Import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022-09-19T11:52:54.049+0200 [INFO] Terraform version: 1.2.9 | |
2022-09-19T11:52:54.116+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.0.0 | |
2022-09-19T11:52:54.116+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.12.0 | |
2022-09-19T11:52:54.116+0200 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2 | |
2022-09-19T11:52:54.117+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 | |
2022-09-19T11:52:54.117+0200 [DEBUG] using github.com/zclconf/go-cty v1.11.0 | |
2022-09-19T11:52:54.117+0200 [INFO] Go runtime version: go1.18.1 | |
2022-09-19T11:52:54.118+0200 [INFO] CLI args: []string{"C:\\Terraform\\terraform.exe", "import", "cloudflare_notification_policy.shop_COMPANY_com", "7bd3cfcb61c31d623ffdfada6fcad645/2118d65eb1df4eac81e435f367d293d4"} | |
2022-09-19T11:52:54.125+0200 [DEBUG] Attempting to open CLI config file: C:\Users\USERNAME\AppData\Roaming\terraform.rc | |
2022-09-19T11:52:54.126+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2022-09-19T11:52:54.127+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2022-09-19T11:52:54.127+0200 [DEBUG] ignoring non-existing provider search directory C:\Users\USERNAME\AppData\Roaming\terraform.d\plugins | |
2022-09-19T11:52:54.130+0200 [DEBUG] ignoring non-existing provider search directory C:\Users\USERNAME\AppData\Roaming\HashiCorp\Terraform\plugins | |
2022-09-19T11:52:54.131+0200 [INFO] CLI command args: []string{"import", "cloudflare_notification_policy.shop_COMPANY_com", "7bd3cfcb61c31d623ffdfada6fcad645/2118d65eb1df4eac81e435f367d293d4"} | |
2022-09-19T11:52:54.137+0200 [DEBUG] New state was assigned lineage "08923563-9925-377b-3b6d-edcf39d4c14d" | |
2022-09-19T11:52:54.254+0200 [DEBUG] checking for provisioner in "." | |
2022-09-19T11:52:54.255+0200 [DEBUG] checking for provisioner in "C:\\Terraform" | |
2022-09-19T11:52:54.339+0200 [DEBUG] Building and walking import graph | |
2022-09-19T11:52:54.340+0200 [DEBUG] ProviderTransformer: "cloudflare_healthcheck.shop_COMPANY_com" (*terraform.NodeAbstractResource) needs provider["registry.terraform.io/cloudflare/cloudflare"] | |
2022-09-19T11:52:54.340+0200 [DEBUG] ProviderTransformer: "cloudflare_notification_policy.shop_COMPANY_com" (*terraform.NodeAbstractResource) needs provider["registry.terraform.io/cloudflare/cloudflare"] | |
2022-09-19T11:52:54.340+0200 [DEBUG] ProviderTransformer: "cloudflare_notification_policy.shop_COMPANY_com (import id \"7bd3cfcb61c31d623ffdfada6fcad645/2118d65eb1df4eac81e435f367d293d4\")" (*terraform.graphNodeImportState) needs provider["registry.terraform.io/cloudflare/cloudflare"] | |
2022-09-19T11:52:54.341+0200 [DEBUG] created provider logger: level=debug | |
2022-09-19T11:52:54.344+0200 [INFO] provider: configuring client automatic mTLS | |
2022-09-19T11:52:54.485+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe] | |
2022-09-19T11:52:54.495+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe pid=3824 | |
2022-09-19T11:52:54.496+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe | |
2022-09-19T11:52:54.661+0200 [INFO] provider.terraform-provider-cloudflare_v3.23.0.exe: configuring server automatic mTLS: timestamp=2022-09-19T11:52:54.554+0200 | |
2022-09-19T11:52:54.806+0200 [DEBUG] provider: using plugin: version=5 | |
2022-09-19T11:52:54.806+0200 [DEBUG] provider.terraform-provider-cloudflare_v3.23.0.exe: plugin address: address=127.0.0.1:10000 network=tcp timestamp=2022-09-19T11:52:54.806+0200 | |
2022-09-19T11:52:54.977+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing" | |
2022-09-19T11:52:55.032+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe pid=3824 | |
2022-09-19T11:52:55.036+0200 [DEBUG] provider: plugin exited | |
2022-09-19T11:52:55.036+0200 [DEBUG] ReferenceTransformer: "cloudflare_notification_policy.shop_COMPANY_com (import id \"7bd3cfcb61c31d623ffdfada6fcad645/2118d65eb1df4eac81e435f367d293d4\")" references: [] | |
2022-09-19T11:52:55.037+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [] | |
2022-09-19T11:52:55.037+0200 [DEBUG] ReferenceTransformer: "cloudflare_healthcheck.shop_COMPANY_com" references: [] | |
2022-09-19T11:52:55.037+0200 [DEBUG] ReferenceTransformer: "cloudflare_notification_policy.shop_COMPANY_com" references: [cloudflare_healthcheck.shop_COMPANY_com] | |
2022-09-19T11:52:55.038+0200 [DEBUG] Starting graph walk: walkImport | |
2022-09-19T11:52:55.039+0200 [DEBUG] created provider logger: level=debug | |
2022-09-19T11:52:55.039+0200 [INFO] provider: configuring client automatic mTLS | |
2022-09-19T11:52:55.213+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe] | |
2022-09-19T11:52:55.220+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe pid=500 | |
2022-09-19T11:52:55.221+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe | |
2022-09-19T11:52:55.373+0200 [INFO] provider.terraform-provider-cloudflare_v3.23.0.exe: configuring server automatic mTLS: timestamp=2022-09-19T11:52:55.290+0200 | |
2022-09-19T11:52:55.518+0200 [DEBUG] provider.terraform-provider-cloudflare_v3.23.0.exe: plugin address: address=127.0.0.1:10000 network=tcp timestamp=2022-09-19T11:52:55.518+0200 | |
2022-09-19T11:52:55.518+0200 [DEBUG] provider: using plugin: version=5 | |
2022-09-19T11:52:55.686+0200 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" changed the config value, but that value is unused | |
cloudflare_notification_policy.shop_COMPANY_com: Importing from ID "7bd3cfcb61c31d623ffdfada6fcad645/2118d65eb1df4eac81e435f367d293d4"... | |
2022-09-19T11:52:55.690+0200 [DEBUG] provider.terraform-provider-cloudflare_v3.23.0.exe: Cloudflare API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /client/v4/accounts/7bd3cfcb61c31d623ffdfada6fcad645/alerting/v3/policies/2118d65eb1df4eac81e435f367d293d4 HTTP/1.1 | |
Host: api.cloudflare.com | |
User-Agent: terraform/1.2.9 terraform-plugin-sdk/2.10.1 terraform-provider-cloudflare/dev | |
Authorization: Bearer CLOUDFLARE_API_TOKEN | |
Content-Type: application/json | |
Accept-Encoding: gzip | |
-----------------------------------------------------: timestamp=2022-09-19T11:52:55.689+0200 | |
2022-09-19T11:52:56.735+0200 [DEBUG] provider.terraform-provider-cloudflare_v3.23.0.exe: Cloudflare API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/2.0 200 OK | |
Cf-Cache-Status: DYNAMIC | |
Cf-Ray: 74d16e6d0a56bbbb-FRA | |
Content-Type: application/json; charset=UTF-8 | |
Date: Mon, 19 Sep 2022 09:52:56 GMT | |
Server: cloudflare | |
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU56Rb8iNWZVUvXhejYFKMS38Zj; SameSite=Lax; path=/; expires=Mon, 19-Sep-22 12:22:57 GMT; HttpOnly | |
Set-Cookie: __cfruid=c6a1736df1cb2bcfb6f5bf100889bd40377305c8-1663581176; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None | |
Vary: Accept-Encoding | |
X-Envoy-Upstream-Service-Time: 30 | |
{ | |
"result": { | |
"id": "2118d65eb1df4eac81e435f367d293d4", | |
"name": "COMPANY.com", | |
"description": "", | |
"enabled": true, | |
"alert_type": "health_check_status_notification", | |
"mechanisms": { | |
"email": [ | |
{ | |
"id": "email_1@COMPANY.com" | |
}, | |
{ | |
"id": "email_2@COMPANY.com" | |
} | |
] | |
}, | |
"created": "2022-07-08T12:44:02.597345Z", | |
"modified": "2022-07-13T06:46:31.959272Z", | |
"conditions": { | |
"and": [ | |
{ | |
"or": [ | |
{ | |
"==": [ | |
{ | |
"var": "health_check_id" | |
}, | |
"72120a86e6fc43440bf63558b6ff17e1" | |
] | |
}, | |
{ | |
"==": [ | |
{ | |
"var": "health_check_id" | |
}, | |
"1128c4086016652103c18d5c740b1ce5" | |
] | |
} | |
] | |
}, | |
{ | |
"or": [ | |
{ | |
"==": [ | |
{ | |
"var": "status" | |
}, | |
"Healthy" | |
] | |
}, | |
{ | |
"==": [ | |
{ | |
"var": "status" | |
}, | |
"Unhealthy" | |
] | |
} | |
] | |
} | |
] | |
}, | |
"filters": { | |
"health_check_id": [ | |
"72120a86e6fc43440bf63558b6ff17e1", | |
"1128c4086016652103c18d5c740b1ce5" | |
], | |
"status": [ | |
"Healthy", | |
"Unhealthy" | |
] | |
} | |
}, | |
"success": true, | |
"errors": [], | |
"messages": [] | |
} | |
-----------------------------------------------------: timestamp=2022-09-19T11:52:56.734+0200 | |
cloudflare_notification_policy.shop_COMPANY_com: Import prepared! | |
Prepared cloudflare_notification_policy for import | |
cloudflare_notification_policy.shop_COMPANY_com: Refreshing state... [id=2118d65eb1df4eac81e435f367d293d4] | |
2022-09-19T11:52:56.755+0200 [DEBUG] provider.terraform-provider-cloudflare_v3.23.0.exe: Cloudflare API Request Details: | |
---[ REQUEST ]--------------------------------------- | |
GET /client/v4/accounts/7bd3cfcb61c31d623ffdfada6fcad645/alerting/v3/policies/2118d65eb1df4eac81e435f367d293d4 HTTP/1.1 | |
Host: api.cloudflare.com | |
User-Agent: terraform/1.2.9 terraform-plugin-sdk/2.10.1 terraform-provider-cloudflare/dev | |
Authorization: Bearer CLOUDFLARE_API_TOKEN | |
Content-Type: application/json | |
Accept-Encoding: gzip | |
-----------------------------------------------------: timestamp=2022-09-19T11:52:56.755+0200 | |
2022-09-19T11:52:57.686+0200 [DEBUG] provider.terraform-provider-cloudflare_v3.23.0.exe: Cloudflare API Response Details: | |
---[ RESPONSE ]-------------------------------------- | |
HTTP/2.0 200 OK | |
Cf-Cache-Status: DYNAMIC | |
Cf-Ray: 74d16e733dc99a3f-FRA | |
Content-Type: application/json; charset=UTF-8 | |
Date: Mon, 19 Sep 2022 09:52:57 GMT | |
Server: cloudflare | |
Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU56Rb8iNWZVUvXheuEvLAFXjqF; SameSite=Lax; path=/; expires=Mon, 19-Sep-22 12:22:58 GMT; HttpOnly | |
Set-Cookie: __cfruid=964256a2996c9899baec5f5c795f826dc5e57100-1663581177; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None | |
Vary: Accept-Encoding | |
X-Envoy-Upstream-Service-Time: 43 | |
{ | |
"result": { | |
"id": "2118d65eb1df4eac81e435f367d293d4", | |
"name": "COMPANY.com", | |
"description": "", | |
"enabled": true, | |
"alert_type": "health_check_status_notification", | |
"mechanisms": { | |
"email": [ | |
{ | |
"id": "email_1@COMPANY.com" | |
}, | |
{ | |
"id": "email_2@COMPANY.com" | |
} | |
] | |
}, | |
"created": "2022-07-08T12:44:02.597345Z", | |
"modified": "2022-07-13T06:46:31.959272Z", | |
"conditions": { | |
"and": [ | |
{ | |
"or": [ | |
{ | |
"==": [ | |
{ | |
"var": "health_check_id" | |
}, | |
"72120a86e6fc43440bf63558b6ff17e1" | |
] | |
}, | |
{ | |
"==": [ | |
{ | |
"var": "health_check_id" | |
}, | |
"1128c4086016652103c18d5c740b1ce5" | |
] | |
} | |
] | |
}, | |
{ | |
"or": [ | |
{ | |
"==": [ | |
{ | |
"var": "status" | |
}, | |
"Healthy" | |
] | |
}, | |
{ | |
"==": [ | |
{ | |
"var": "status" | |
}, | |
"Unhealthy" | |
] | |
} | |
] | |
} | |
] | |
}, | |
"filters": { | |
"health_check_id": [ | |
"72120a86e6fc43440bf63558b6ff17e1", | |
"1128c4086016652103c18d5c740b1ce5" | |
], | |
"status": [ | |
"Healthy", | |
"Unhealthy" | |
] | |
} | |
}, | |
"success": true, | |
"errors": [], | |
"messages": [] | |
} | |
-----------------------------------------------------: timestamp=2022-09-19T11:52:57.685+0200 | |
2022-09-19T11:52:57.689+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing" | |
2022-09-19T11:52:57.715+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/3.23.0/windows_386/terraform-provider-cloudflare_v3.23.0.exe pid=500 | |
2022-09-19T11:52:57.716+0200 [DEBUG] provider: plugin exited | |
2022-09-19T11:52:57.716+0200 [INFO] Writing state output to: | |
Import successful! | |
The resources that were imported are shown above. These resources are now in | |
your Terraform state and will henceforth be managed by Terraform. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment