Skip to content

Instantly share code, notes, and snippets.

@vimtor
Created February 18, 2026 16:11
Show Gist options
  • Select an option

  • Save vimtor/bf1d61ecdd93fc6f9eb0511711e827d5 to your computer and use it in GitHub Desktop.

Select an option

Save vimtor/bf1d61ecdd93fc6f9eb0511711e827d5 to your computer and use it in GitHub Desktop.
TF_LOG=DEBUG output for placement.region read-only bug
2026-02-18T17:11:56.753+0100 [INFO] Terraform version: 1.5.7
2026-02-18T17:11:56.753+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0
2026-02-18T17:11:56.753+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2026-02-18T17:11:56.753+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2026-02-18T17:11:56.753+0100 [DEBUG] using github.com/zclconf/go-cty v1.12.2
2026-02-18T17:11:56.753+0100 [INFO] Go runtime version: go1.23.1
2026-02-18T17:11:56.753+0100 [INFO] CLI args: []string{"terraform", "plan", "-var=cloudflare_api_token=dummy", "-var=cloudflare_account_id=dummy"}
2026-02-18T17:11:56.753+0100 [DEBUG] Attempting to open CLI config file: /Users/vimtor/.terraformrc
2026-02-18T17:11:56.753+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2026-02-18T17:11:56.754+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2026-02-18T17:11:56.754+0100 [DEBUG] ignoring non-existing provider search directory /Users/vimtor/.terraform.d/plugins
2026-02-18T17:11:56.754+0100 [DEBUG] ignoring non-existing provider search directory /Users/vimtor/Library/Application Support/io.terraform/plugins
2026-02-18T17:11:56.754+0100 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2026-02-18T17:11:56.755+0100 [INFO] CLI command args: []string{"plan", "-var=cloudflare_api_token=dummy", "-var=cloudflare_account_id=dummy"}
2026-02-18T17:11:56.760+0100 [DEBUG] New state was assigned lineage "e452d5eb-10fe-9995-7672-bb4f1ab9e33c"
2026-02-18T17:11:56.886+0100 [DEBUG] checking for provisioner in "."
2026-02-18T17:11:56.888+0100 [DEBUG] checking for provisioner in "/opt/homebrew/bin"
2026-02-18T17:11:56.890+0100 [INFO] backend/local: starting Plan operation
2026-02-18T17:11:56.894+0100 [DEBUG] created provider logger: level=debug
2026-02-18T17:11:56.895+0100 [INFO] provider: configuring client automatic mTLS
2026-02-18T17:11:56.905+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0]
2026-02-18T17:11:56.911+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0 pid=61363
2026-02-18T17:11:56.912+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0
2026-02-18T17:11:56.957+0100 [INFO] provider.terraform-provider-cloudflare_v5.17.0: configuring server automatic mTLS: timestamp=2026-02-18T17:11:56.957+0100
2026-02-18T17:11:56.964+0100 [DEBUG] provider: using plugin: version=6
2026-02-18T17:11:56.964+0100 [DEBUG] provider.terraform-provider-cloudflare_v5.17.0: plugin address: address=/var/folders/cv/mjj30cmx1fl40bs8zfnr9y6r0000gn/T/plugin2047660930 network=unix timestamp=2026-02-18T17:11:56.964+0100
2026-02-18T17:11:57.047+0100 [DEBUG] No provider meta schema returned
2026-02-18T17:11:57.062+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2026-02-18T17:11:57.064+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0 pid=61363
2026-02-18T17:11:57.068+0100 [DEBUG] provider: plugin exited
2026-02-18T17:11:57.070+0100 [DEBUG] Building and walking validate graph
2026-02-18T17:11:57.070+0100 [DEBUG] ProviderTransformer: "cloudflare_workers_script.my_worker" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/cloudflare/cloudflare"]
2026-02-18T17:11:57.071+0100 [DEBUG] ReferenceTransformer: "cloudflare_workers_script.my_worker" references: [var.cloudflare_account_id]
2026-02-18T17:11:57.071+0100 [DEBUG] ReferenceTransformer: "var.cloudflare_api_token" references: []
2026-02-18T17:11:57.071+0100 [DEBUG] ReferenceTransformer: "var.cloudflare_account_id" references: []
2026-02-18T17:11:57.071+0100 [DEBUG] ReferenceTransformer: "output.script_name (expand)" references: [cloudflare_workers_script.my_worker]
2026-02-18T17:11:57.071+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/cloudflare/cloudflare\"]" references: [var.cloudflare_api_token]
2026-02-18T17:11:57.071+0100 [DEBUG] Starting graph walk: walkValidate
2026-02-18T17:11:57.073+0100 [DEBUG] created provider logger: level=debug
2026-02-18T17:11:57.073+0100 [INFO] provider: configuring client automatic mTLS
2026-02-18T17:11:57.076+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0 args=[.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0]
2026-02-18T17:11:57.081+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0 pid=61364
2026-02-18T17:11:57.081+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0
2026-02-18T17:11:57.104+0100 [INFO] provider.terraform-provider-cloudflare_v5.17.0: configuring server automatic mTLS: timestamp=2026-02-18T17:11:57.104+0100
2026-02-18T17:11:57.110+0100 [DEBUG] provider: using plugin: version=6
2026-02-18T17:11:57.111+0100 [DEBUG] provider.terraform-provider-cloudflare_v5.17.0: plugin address: address=/var/folders/cv/mjj30cmx1fl40bs8zfnr9y6r0000gn/T/plugin1196417310 network=unix timestamp=2026-02-18T17:11:57.110+0100
2026-02-18T17:11:57.169+0100 [DEBUG] No provider meta schema returned
2026-02-18T17:11:57.185+0100 [DEBUG] skipping FixUpBlockAttrs
2026-02-18T17:11:57.187+0100 [ERROR] provider.terraform-provider-cloudflare_v5.17.0: Response contains error diagnostic: diagnostic_detail="Cannot set value for this attribute as the provider has marked it as read-only. Remove the configuration line setting the value.
Refer to the provider documentation or contact the provider developers for additional information about configurable and read-only attributes that are supported." diagnostic_summary="Invalid Configuration for Read-Only Attribute" tf_proto_version=6.9 tf_rpc=ValidateResourceConfig @caller=github.com/hashicorp/terraform-plugin-go@v0.28.0/tfprotov6/internal/diag/diagnostics.go:58 diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/cloudflare/cloudflare tf_req_id=e232de6a-7fb8-d5f9-37c6-ccb00513c330 tf_resource_type=cloudflare_workers_script @module=sdk.proto diagnostic_attribute=AttributeName("placement").AttributeName("region") timestamp=2026-02-18T17:11:57.187+0100
2026-02-18T17:11:57.187+0100 [ERROR] vertex "cloudflare_workers_script.my_worker" error: Invalid Configuration for Read-Only Attribute
╷
│ Error: Invalid Configuration for Read-Only Attribute
│ 
│  with cloudflare_workers_script.my_worker,
│  on main.tf line 23, in resource "cloudflare_workers_script" "my_worker":
│  23: resource "cloudflare_workers_script" "my_worker" {
│ 
│ Cannot set value for this attribute as the provider has marked it as
│ read-only. Remove the configuration line setting the value.
│ 
│ Refer to the provider documentation or contact the provider developers for
│ additional information about configurable and read-only attributes that are
│ supported.
╵
2026-02-18T17:11:57.189+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2026-02-18T17:11:57.191+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cloudflare/cloudflare/5.17.0/darwin_arm64/terraform-provider-cloudflare_v5.17.0 pid=61364
2026-02-18T17:11:57.196+0100 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment