Skip to content

fix: workers_script name -> id rename inside workers_route#244

Closed
pcantea wants to merge 2 commits intocloudflare:mainfrom
pcantea:fix-worker-route-script
Closed

fix: workers_script name -> id rename inside workers_route#244
pcantea wants to merge 2 commits intocloudflare:mainfrom
pcantea:fix-worker-route-script

Conversation

@pcantea
Copy link
Copy Markdown
Contributor

@pcantea pcantea commented Mar 24, 2026

Fix for wrong attribute name hen migrating from cloudflare_worker_script to cloudflare_workers_scriptinside a worker_route resource. The name attribute must be changed to id, otherwise an error is thrown:

│ Error: Unsupported attribute
│
│   on segment_proxy.tf line 100, in resource "cloudflare_workers_route" "segment_api_route":100:   script  = cloudflare_workers_script.segment_proxy.name
│
│ This object has no argument, nested block, or exported attribute named "name".

@pcantea pcantea force-pushed the fix-worker-route-script branch from fa6811a to 61a3124 Compare March 24, 2026 18:22
@vaishakdinesh vaishakdinesh requested review from tamas-jozsa and vaishakdinesh and removed request for vaishakdinesh March 26, 2026 15:59
@vaishakdinesh
Copy link
Copy Markdown
Member

Thank you! @pcantea
I added e2e test and merged #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants