Skip to content

Instantly share code, notes, and snippets.

@PI-Victor
Last active April 14, 2025 13:52
Show Gist options
  • Save PI-Victor/1db6c245b87629cde3498b28fa953449 to your computer and use it in GitHub Desktop.
Save PI-Victor/1db6c245b87629cde3498b28fa953449 to your computer and use it in GitHub Desktop.
custom_dlp_failure
2025-04-14T15:48:46.974+0200 [INFO] Terraform version: 1.11.3
2025-04-14T15:48:46.974+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-04-14T15:48:46.974+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-04-14T15:48:46.974+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-04-14T15:48:46.974+0200 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-04-14T15:48:46.974+0200 [INFO] Go runtime version: go1.24.1
2025-04-14T15:48:46.974+0200 [INFO] CLI args: []string{"terraform", "apply"}
2025-04-14T15:48:46.974+0200 [DEBUG] Attempting to open CLI config file: /Users/vicp/.terraformrc
2025-04-14T15:48:46.974+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2025-04-14T15:48:46.974+0200 [INFO] Loading CLI configuration from /Users/vicp/.terraform.d/credentials.tfrc.json
2025-04-14T15:48:46.974+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2025-04-14T15:48:46.974+0200 [DEBUG] ignoring non-existing provider search directory /Users/vicp/.terraform.d/plugins
2025-04-14T15:48:46.974+0200 [DEBUG] ignoring non-existing provider search directory /Users/vicp/Library/Application Support/io.terraform/plugins
2025-04-14T15:48:46.974+0200 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2025-04-14T15:48:46.974+0200 [INFO] CLI command args: []string{"apply"}
2025-04-14T15:48:47.066+0200 [DEBUG] checking for provisioner in "."
2025-04-14T15:48:47.067+0200 [DEBUG] checking for provisioner in "/Users/vicp/.flox/run/aarch64-darwin.default.run/bin"
2025-04-14T15:48:47.067+0200 [INFO] backend/local: starting Apply operation
2025-04-14T15:48:47.068+0200 [DEBUG] created provider logger: level=debug
2025-04-14T15:48:47.068+0200 [INFO] provider: configuring client automatic mTLS
2025-04-14T15:48:47.075+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 args=[".terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0"]
2025-04-14T15:48:47.080+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 pid=85530
2025-04-14T15:48:47.080+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0
2025-04-14T15:48:47.103+0200 [INFO] provider.terraform-provider-cloudflare_v5.3.0: configuring server automatic mTLS: timestamp="2025-04-14T15:48:47.103+0200"
2025-04-14T15:48:47.109+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: plugin address: network=unix address=/var/folders/h9/hm3xj99138z9lg659bn8zbs80000gn/T/plugin3634933440 timestamp="2025-04-14T15:48:47.109+0200"
2025-04-14T15:48:47.109+0200 [DEBUG] provider: using plugin: version=6
2025-04-14T15:48:47.161+0200 [DEBUG] No provider meta schema returned
2025-04-14T15:48:47.174+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-04-14T15:48:47.176+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 id=85530
2025-04-14T15:48:47.176+0200 [DEBUG] provider: plugin exited
2025-04-14T15:48:47.176+0200 [DEBUG] created provider logger: level=debug
2025-04-14T15:48:47.176+0200 [INFO] provider: configuring client automatic mTLS
2025-04-14T15:48:47.179+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.6.3/darwin_arm64/terraform-provider-random_v3.6.3_x5 args=[".terraform/providers/registry.terraform.io/hashicorp/random/3.6.3/darwin_arm64/terraform-provider-random_v3.6.3_x5"]
2025-04-14T15:48:47.181+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.6.3/darwin_arm64/terraform-provider-random_v3.6.3_x5 pid=85533
2025-04-14T15:48:47.181+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/hashicorp/random/3.6.3/darwin_arm64/terraform-provider-random_v3.6.3_x5
2025-04-14T15:48:47.188+0200 [INFO] provider.terraform-provider-random_v3.6.3_x5: configuring server automatic mTLS: timestamp="2025-04-14T15:48:47.188+0200"
2025-04-14T15:48:47.194+0200 [DEBUG] provider.terraform-provider-random_v3.6.3_x5: plugin address: address=/var/folders/h9/hm3xj99138z9lg659bn8zbs80000gn/T/plugin1196498233 network=unix timestamp="2025-04-14T15:48:47.194+0200"
2025-04-14T15:48:47.194+0200 [DEBUG] provider: using plugin: version=5
2025-04-14T15:48:47.201+0200 [DEBUG] No provider meta schema returned
2025-04-14T15:48:47.201+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-04-14T15:48:47.202+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/hashicorp/random/3.6.3/darwin_arm64/terraform-provider-random_v3.6.3_x5 id=85533
2025-04-14T15:48:47.202+0200 [DEBUG] provider: plugin exited
2025-04-14T15:48:47.202+0200 [DEBUG] Building and walking validate graph
2025-04-14T15:48:47.202+0200 [DEBUG] ProviderTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-04-14T15:48:47.202+0200 [DEBUG] pruning unused provider["registry.terraform.io/hashicorp/random"]
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles" references: [local.account_id (expand)]
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "var.sit_zone_id" references: []
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "local.dlp_entries (expand)" references: []
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "local.zone_id (expand)" references: [var.sit_zone_id]
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "local.api_token (expand)" references: [var.sit_api_token]
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "local.account_id (expand)" references: [var.sit_account_id]
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "var.sit_api_token" references: []
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "var.sit_account_id" references: []
2025-04-14T15:48:47.202+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [local.api_token (expand)]
2025-04-14T15:48:47.203+0200 [DEBUG] Starting graph walk: walkValidate
2025-04-14T15:48:47.203+0200 [DEBUG] created provider logger: level=debug
2025-04-14T15:48:47.203+0200 [INFO] provider: configuring client automatic mTLS
2025-04-14T15:48:47.206+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 args=[".terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0"]
2025-04-14T15:48:47.213+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 pid=85534
2025-04-14T15:48:47.213+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0
2025-04-14T15:48:47.236+0200 [INFO] provider.terraform-provider-cloudflare_v5.3.0: configuring server automatic mTLS: timestamp="2025-04-14T15:48:47.236+0200"
2025-04-14T15:48:47.242+0200 [DEBUG] provider: using plugin: version=6
2025-04-14T15:48:47.242+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: plugin address: address=/var/folders/h9/hm3xj99138z9lg659bn8zbs80000gn/T/plugin3064068983 network=unix timestamp="2025-04-14T15:48:47.242+0200"
2025-04-14T15:48:47.249+0200 [DEBUG] skipping FixUpBlockAttrs
2025-04-14T15:48:47.252+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-04-14T15:48:47.253+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 id=85534
2025-04-14T15:48:47.253+0200 [DEBUG] provider: plugin exited
2025-04-14T15:48:47.253+0200 [INFO] backend/local: apply calling Plan
2025-04-14T15:48:47.253+0200 [DEBUG] Building and walking plan graph for NormalMode
2025-04-14T15:48:47.253+0200 [DEBUG] ProviderTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-04-14T15:48:47.253+0200 [DEBUG] pruning unused provider["registry.terraform.io/hashicorp/random"]
2025-04-14T15:48:47.253+0200 [DEBUG] ReferenceTransformer: "var.sit_zone_id" references: []
2025-04-14T15:48:47.253+0200 [DEBUG] ReferenceTransformer: "local.api_token (expand)" references: [var.sit_api_token]
2025-04-14T15:48:47.254+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [local.api_token (expand)]
2025-04-14T15:48:47.254+0200 [DEBUG] ReferenceTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles (expand)" references: [local.account_id (expand)]
2025-04-14T15:48:47.254+0200 [DEBUG] ReferenceTransformer: "var.sit_api_token" references: []
2025-04-14T15:48:47.254+0200 [DEBUG] ReferenceTransformer: "var.sit_account_id" references: []
2025-04-14T15:48:47.254+0200 [DEBUG] ReferenceTransformer: "local.dlp_entries (expand)" references: []
2025-04-14T15:48:47.254+0200 [DEBUG] ReferenceTransformer: "local.zone_id (expand)" references: [var.sit_zone_id]
2025-04-14T15:48:47.254+0200 [DEBUG] ReferenceTransformer: "local.account_id (expand)" references: [var.sit_account_id]
2025-04-14T15:48:47.254+0200 [DEBUG] Starting graph walk: walkPlan
2025-04-14T15:48:47.254+0200 [DEBUG] created provider logger: level=debug
2025-04-14T15:48:47.254+0200 [INFO] provider: configuring client automatic mTLS
2025-04-14T15:48:47.257+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 args=[".terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0"]
2025-04-14T15:48:47.262+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 pid=85571
2025-04-14T15:48:47.262+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0
2025-04-14T15:48:47.283+0200 [INFO] provider.terraform-provider-cloudflare_v5.3.0: configuring server automatic mTLS: timestamp="2025-04-14T15:48:47.282+0200"
2025-04-14T15:48:47.289+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: plugin address: address=/var/folders/h9/hm3xj99138z9lg659bn8zbs80000gn/T/plugin304637521 network=unix timestamp="2025-04-14T15:48:47.289+0200"
2025-04-14T15:48:47.289+0200 [DEBUG] provider: using plugin: version=6
2025-04-14T15:48:47.295+0200 [DEBUG] Resource instance state not found for node "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles", instance cloudflare_zero_trust_dlp_custom_profile.dlp_profiles
2025-04-14T15:48:47.295+0200 [DEBUG] ReferenceTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles" references: []
2025-04-14T15:48:47.295+0200 [DEBUG] refresh: cloudflare_zero_trust_dlp_custom_profile.dlp_profiles: no state, so not refreshing
2025-04-14T15:48:47.295+0200 [DEBUG] skipping FixUpBlockAttrs
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: tf_resource_type=cloudflare_zero_trust_dlp_custom_profile @module=sdk.framework tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:229 tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 tf_rpc=PlanResourceChange @module=sdk.framework tf_attribute_path="AttributeName(\"shared_entries\")" tf_resource_type=cloudflare_zero_trust_dlp_custom_profile timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 tf_attribute_path="AttributeName(\"profiles\")" tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_resource_type=cloudflare_zero_trust_dlp_custom_profile @module=sdk.framework tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 tf_attribute_path="AttributeName(\"type\")" timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"open_access\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 @module=sdk.framework timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 @module=sdk.framework tf_attribute_path="AttributeName(\"updated_at\")" tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path="AttributeName(\"id\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 tf_rpc=PlanResourceChange tf_attribute_path="AttributeName(\"entries\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_resource_type=cloudflare_zero_trust_dlp_custom_profile @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 @module=sdk.framework timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.300+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 @module=sdk.framework tf_attribute_path="AttributeName(\"context_awareness\")" tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.301+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_req_id=ed681b91-95af-2cfd-9df0-06e4aad6c9e0 tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 @module=sdk.framework tf_attribute_path="AttributeName(\"created_at\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_resource_type=cloudflare_zero_trust_dlp_custom_profile timestamp="2025-04-14T15:48:47.300+0200"
2025-04-14T15:48:47.302+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-04-14T15:48:47.303+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 id=85571
2025-04-14T15:48:47.303+0200 [DEBUG] provider: plugin exited
2025-04-14T15:48:47.303+0200 [DEBUG] building apply graph to check for errors
2025-04-14T15:48:47.303+0200 [DEBUG] Resource state not found for node "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles", instance cloudflare_zero_trust_dlp_custom_profile.dlp_profiles
2025-04-14T15:48:47.304+0200 [DEBUG] ProviderTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-04-14T15:48:47.304+0200 [DEBUG] ProviderTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-04-14T15:48:47.304+0200 [DEBUG] pruning unused provider["registry.terraform.io/hashicorp/random"]
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "local.zone_id (expand)" references: [var.sit_zone_id]
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "local.api_token (expand)" references: [var.sit_api_token]
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [local.api_token (expand)]
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles (expand)" references: [local.account_id (expand)]
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "var.sit_api_token" references: []
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "local.dlp_entries (expand)" references: []
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "local.account_id (expand)" references: [var.sit_account_id]
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles" references: [local.account_id (expand)]
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "var.sit_account_id" references: []
2025-04-14T15:48:47.304+0200 [DEBUG] ReferenceTransformer: "var.sit_zone_id" references: []
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# cloudflare_zero_trust_dlp_custom_profile.dlp_profiles will be created
+ resource "cloudflare_zero_trust_dlp_custom_profile" "dlp_profiles" {
+ account_id = "redacted"
+ allowed_match_count = 0
+ context_awareness = (known after apply)
+ created_at = (known after apply)
+ entries = (known after apply)
+ id = (known after apply)
+ name = "dlp_1"
+ open_access = (known after apply)
+ profiles = (known after apply)
+ shared_entries = (known after apply)
+ type = (known after apply)
+ updated_at = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
2025-04-14T15:48:47.307+0200 [DEBUG] command: asking for input: "\nDo you want to perform these actions?"
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
2025-04-14T15:48:48.723+0200 [INFO] backend/local: apply calling Apply
2025-04-14T15:48:48.724+0200 [DEBUG] Building and walking apply graph for NormalMode plan
2025-04-14T15:48:48.725+0200 [DEBUG] Resource state not found for node "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles", instance cloudflare_zero_trust_dlp_custom_profile.dlp_profiles
2025-04-14T15:48:48.725+0200 [DEBUG] ProviderTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-04-14T15:48:48.725+0200 [DEBUG] ProviderTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2025-04-14T15:48:48.725+0200 [DEBUG] pruning unused provider["registry.terraform.io/hashicorp/random"]
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "var.sit_account_id" references: []
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "local.zone_id (expand)" references: [var.sit_zone_id]
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "local.account_id (expand)" references: [var.sit_account_id]
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "var.sit_api_token" references: []
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "var.sit_zone_id" references: []
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "local.dlp_entries (expand)" references: []
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "local.api_token (expand)" references: [var.sit_api_token]
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles" references: [local.account_id (expand)]
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [local.api_token (expand)]
2025-04-14T15:48:48.725+0200 [DEBUG] ReferenceTransformer: "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles (expand)" references: [local.account_id (expand)]
2025-04-14T15:48:48.726+0200 [DEBUG] Starting graph walk: walkApply
2025-04-14T15:48:48.726+0200 [DEBUG] created provider logger: level=debug
2025-04-14T15:48:48.727+0200 [INFO] provider: configuring client automatic mTLS
2025-04-14T15:48:48.731+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 args=[".terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0"]
2025-04-14T15:48:48.739+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 pid=85598
2025-04-14T15:48:48.739+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0
2025-04-14T15:48:48.766+0200 [INFO] provider.terraform-provider-cloudflare_v5.3.0: configuring server automatic mTLS: timestamp="2025-04-14T15:48:48.765+0200"
2025-04-14T15:48:48.772+0200 [DEBUG] provider: using plugin: version=6
2025-04-14T15:48:48.772+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: plugin address: address=/var/folders/h9/hm3xj99138z9lg659bn8zbs80000gn/T/plugin1362858938 network=unix timestamp="2025-04-14T15:48:48.772+0200"
2025-04-14T15:48:48.778+0200 [DEBUG] skipping FixUpBlockAttrs
2025-04-14T15:48:48.782+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:229 @module=sdk.framework tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_provider_addr=registry.terraform.io/cloudflare/cloudflare timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.782+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 tf_resource_type=cloudflare_zero_trust_dlp_custom_profile @module=sdk.framework tf_attribute_path="AttributeName(\"shared_entries\")" timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.782+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path="AttributeName(\"updated_at\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_resource_type=cloudflare_zero_trust_dlp_custom_profile @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 tf_rpc=PlanResourceChange timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.782+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"profiles\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 @module=sdk.framework timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.782+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"created_at\")" tf_rpc=PlanResourceChange tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_resource_type=cloudflare_zero_trust_dlp_custom_profile @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 @module=sdk.framework timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.782+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 tf_attribute_path="AttributeName(\"id\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare @module=sdk.framework tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.782+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_attribute_path="AttributeName(\"open_access\")" tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.783+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"type\")" tf_resource_type=cloudflare_zero_trust_dlp_custom_profile @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 @module=sdk.framework tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_rpc=PlanResourceChange timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.783+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_resource_type=cloudflare_zero_trust_dlp_custom_profile @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 tf_rpc=PlanResourceChange @module=sdk.framework tf_attribute_path="AttributeName(\"context_awareness\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare timestamp="2025-04-14T15:48:48.782+0200"
2025-04-14T15:48:48.783+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_req_id=a7bb63a7-740d-91df-7c07-cd60438c6b9a tf_attribute_path="AttributeName(\"entries\")" tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=PlanResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwserver/server_planresourcechange.go:480 timestamp="2025-04-14T15:48:48.783+0200"
cloudflare_zero_trust_dlp_custom_profile.dlp_profiles: Creating...
2025-04-14T15:48:48.784+0200 [INFO] Starting apply for cloudflare_zero_trust_dlp_custom_profile.dlp_profiles
2025-04-14T15:48:48.784+0200 [DEBUG] skipping FixUpBlockAttrs
2025-04-14T15:48:48.784+0200 [DEBUG] cloudflare_zero_trust_dlp_custom_profile.dlp_profiles: applying the planned Create change
2025-04-14T15:48:48.785+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0:
POST /client/v4/accounts/redacted/dlp/profiles/custom HTTP/1.1
> x-stainless-runtime-version: 1.14.1
> x-stainless-retry-count: 0
> authorization: [redacted]
> x-auth-email: [redacted]
> content-type: application/json
> user-agent: terraform-provider-cloudflare/5.3.0 terraform-plugin-framework/1.14.1 terraform/1.11.3
> x-stainless-lang: Terraform
> x-stainless-runtime: terraform-plugin-framework
> x-stainless-arch: arm64
> accept: application/json
> x-stainless-package-version: 5.3.0
> x-stainless-os: MacOS
>
{"allowed_match_count":0,"name":"dlp_1"}
: @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/logging/logging.go:64 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=3096dece-64a0-4f31-20c4-81943822465b tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=ApplyResourceChange @module=cloudflare timestamp="2025-04-14T15:48:48.785+0200"
2025-04-14T15:48:49.485+0200 [DEBUG] provider.terraform-provider-cloudflare_v5.3.0:
< HTTP/2.0 400 Bad Request
< server: cloudflare
< date: Mon, 14 Apr 2025 13:48:49 GMT
< cf-cache-status: DYNAMIC
< vary: Accept-Encoding
< cf-auditlog-id: 0196348f-4d70-7a3c-83e0-e72459ae25fb
< api-version: 2025-04-14
< content-type: application/json
< cf-ray: 9303a9b56acc1a65-ZRH
< set-cookie: __cflb=0H28vgHxwvgAQtjUGU4yFBDJQfw1pfzuRY18kZVM2EH; SameSite=Lax; path=/; expires=Mon, 14-Apr-25 16:18:50 GMT; HttpOnly
< set-cookie: __cf_bm=4PUpMcX1J3nSjpoKh.sg5L.xXi15Ywg3_04gtKpRcl4-1744638529-1.0.1.1-t719MgZ_ASLlegc5wcQu_DPZj9IiGdX9L.f.VK0WXSAw2Xt.FXsdg4BcPOpxUH2VNpPCMhOi6vyw2xlYtehyBZA57nNYHdgMT4rxcIyGs2Y; path=/; expires=Mon, 14-Apr-25 14:18:49 GMT; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
< set-cookie: _cfuvid=dX3us0QeInCRVTi4KCu.4OttMdiyM5WTm7gcfyt0oqo-1744638529523-0.0.1.1-604800000; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
<
{"result":null,"success":false,"errors":[{"code":3312,"message":"invalid json: bad json data: data did not match any variant of untagged enum NewCustomProfiles"}],"messages":[]}
: @module=cloudflare tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=3096dece-64a0-4f31-20c4-81943822465b tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=ApplyResourceChange @caller=github.com/cloudflare/terraform-provider-cloudflare/internal/logging/logging.go:92 timestamp="2025-04-14T15:48:49.485+0200"
2025-04-14T15:48:49.485+0200 [ERROR] provider.terraform-provider-cloudflare_v5.3.0: Response contains error diagnostic: diagnostic_severity=ERROR tf_proto_version=6.8 tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_resource_type=cloudflare_zero_trust_dlp_custom_profile tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/tfprotov6/internal/diag/diagnostics.go:58 diagnostic_summary="failed to make http request" tf_req_id=3096dece-64a0-4f31-20c4-81943822465b @module=sdk.proto diagnostic_detail="POST \"https://api.cloudflare.com/client/v4/accounts/redacted/dlp/profiles/custom\": 400 Bad Request {\"result\":null,\"success\":false,\"errors\":[{\"code\":3312,\"message\":\"invalid json: bad json data: data did not match any variant of untagged enum NewCustomProfiles\"}],\"messages\":[]}" timestamp="2025-04-14T15:48:49.485+0200"
2025-04-14T15:48:49.492+0200 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2025-04-14T15:48:49.492+0200 [ERROR] vertex "cloudflare_zero_trust_dlp_custom_profile.dlp_profiles" error: failed to make http request
│ Error: failed to make http request
│ with cloudflare_zero_trust_dlp_custom_profile.dlp_profiles,
│ on dlp.tf line 37, in resource "cloudflare_zero_trust_dlp_custom_profile" "dlp_profiles":
│ 37: resource "cloudflare_zero_trust_dlp_custom_profile" "dlp_profiles" {
│ POST "https://api.cloudflare.com/client/v4/accounts/redacted/dlp/profiles/custom": 400 Bad Request
│ {"result":null,"success":false,"errors":[{"code":3312,"message":"invalid json: bad json data: data did not match any variant of untagged enum NewCustomProfiles"}],"messages":[]}
2025-04-14T15:48:49.499+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-04-14T15:48:49.500+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.3.0/darwin_arm64/terraform-provider-cloudflare_v5.3.0 id=85598
2025-04-14T15:48:49.501+0200 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment