-
Couldn't load subscription status.
- Fork 9.6k
Add changelog for experimental resource provisioning #25962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
penalosa
merged 6 commits into
production
from
penalosa/resource-provisioning-changelog
Oct 24, 2025
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4cb81e6
Add changelog
penalosa ef6f98b
Update src/content/changelog/workers/2025-10-24-automatic-resource-pr…
penalosa b4a007a
feedback
penalosa b628009
Update src/content/changelog/workers/2025-10-24-automatic-resource-pr…
penalosa 8582d28
Update src/content/changelog/workers/2025-10-24-automatic-resource-pr…
penalosa 5ec2080
Update 2025-10-24-automatic-resource-provisioning.mdx
penalosa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/content/changelog/workers/2025-10-24-automatic-resource-provisioning.mdx
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| title: Automatic resource provisioning for KV, R2, and D1 | ||
| description: Wrangler can now automatically provision KV, R2, and D1 resources when deploying your Worker | ||
| products: | ||
| - workers | ||
| date: 2025-10-24 | ||
| --- | ||
|
|
||
| import { Render, TypeScriptExample, WranglerConfig } from "~/components"; | ||
|
|
||
| Previously, if you wanted to develop or deploy a worker with attached resources, you'd have to first manually create the desired resources. Now, if your Wrangler configuration file includes a KV namespace, D1 database, or R2 bucket that does not yet exist on your account, you can develop locally and deploy your application seamlessly, without having to run additional commands to create resources. | ||
|
|
||
| This is still an experimental feature, but we're turning it on by default to make it easier for people to test it and try it out. You can disable the feature using the `--no-x-provision` flag. It currently works for KV, R2, and D1 bindings. | ||
penalosa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| To use this feature, update to [email protected] and add bindings to your config file _without_ resource IDs e.g.: | ||
|
|
||
| ```jsonc | ||
| { | ||
| "kv_namespaces": [{ "binding": "MY_KV" }], | ||
| "d1_databases": [{ "binding": "MY_DB" }], | ||
| "r2_buckets": [{ "binding": "MY_R2" }], | ||
| } | ||
| ``` | ||
|
|
||
| `wrangler dev` will then automatically create these resources for you locally, and on your next run of `wrangler deploy`, Wrangler will call the Cloudflare API to create the requested resources and link them to your Worker. | ||
|
|
||
| Though resource IDs will be automatically written back to your Wrangler config file after resource creation, resources will stay linked across future deploys even without adding the resource IDs to the config file. This is especially useful for shared templates, which now no longer need to include account-specific resource IDs when adding a binding. | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.