-
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
Add changelog for experimental resource provisioning #25962
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we briefly mention the implication for template authors too?
src/content/changelog/workers/2025-10-24-automatic-resource-provisioning.mdx
Outdated
Show resolved
Hide resolved
src/content/changelog/workers/2025-10-24-automatic-resource-provisioning.mdx
Outdated
Show resolved
Hide resolved
|
|
||
| When developing locally, you can interact with local versions of any KV, D1, R2 resources configured in your Wrangler configuration file, without having to include an id to existing resource | ||
|
|
||
| Once ready to deploy, run `npx wrangler deploy`. Cloudflare will automatically create the resources that do not exist and bind them to your worker. Future deployments will use the same created resources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit nitpicky. Do we want to be clear here here that 'binding' here means writing the created resources to the configuration file. Could be an addition to the final sentence eg.
As part of this process, these bindings will be written to your wrangler configuration file. Future deployments of your worker will use these bindings.
…ovisioning.mdx Co-authored-by: emily-shen <[email protected]>
|
|
||
| import { Render, TypeScriptExample, WranglerConfig } from "~/components"; | ||
|
|
||
| If your Wrangler configuration file includes a KV namespace, D1 database, or R2 bucket that does not yet exist on your account, you can still develop locally and deploy your application seamlessly, without having to run additional commands to create resources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe include a sentence that contrasts the before to the now, something like below (but could probably be made smoother):
| If your Wrangler configuration file includes a KV namespace, D1 database, or R2 bucket that does not yet exist on your account, you can still develop locally and deploy your application seamlessly, without having to run additional commands to create resources. | |
| 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 still develop locally and deploy your application seamlessly, but without having to run additional commands first. |
| @@ -0,0 +1,33 @@ | |||
| --- | |||
| title: Automatic resource provisioning | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we narrow to "Automatic resource provisioning for KV, D1, and R2" or maybe put the specific resources in the description?
Emily makes a good point here; we have templates also that would benefit from updates as a result of this change which we could follow up with in another PR. eg. https://github.com/cloudflare/templates/tree/main/chanfana-openapi-template which would no longer require the Happy to do this before/after we merge. |
src/content/changelog/workers/2025-10-24-automatic-resource-provisioning.mdx
Outdated
Show resolved
Hide resolved
189c976 to
b4a007a
Compare
src/content/changelog/workers/2025-10-24-automatic-resource-provisioning.mdx
Outdated
Show resolved
Hide resolved
src/content/changelog/workers/2025-10-24-automatic-resource-provisioning.mdx
Outdated
Show resolved
Hide resolved
…ovisioning.mdx Co-authored-by: lrapoport-cf <[email protected]>
…ovisioning.mdx Co-authored-by: lrapoport-cf <[email protected]>
|
|
||
| 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. | ||
|
|
||
| Automatic provisioning is still experimental, but we're turning it on by default to make it easier to try out and test. It currently works for KV, R2, and D1 bindings. You can disable the feature using the `--no-x-provision` flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence reads odd - it's experimental but also default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I intuit the logic here
It can be default because it doesn't actually change anything if you have a configuration already
As a customer i still have questions though
- if it's default behavior how can it also be experimental? Sounds like it is just default?
- if I mess up and omit a KV namespace ID, and then deploy, can I inadvertently have a bad deployment?
I'm guessing we have answers here but feels like there's something left unsaid maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's default behavior how can it also be experimental?
The idea is that it's on by default (so anyone can use it without having to add experimental flags), but that it's still experimental to give us a bit of an out to be able to make breaking changes. In particular, I'm trying to leave space open for changing whether or not this is interactive by default. That all said, it's a stable feature, so maybe that's being a bit overcautious.
if I mess up and omit a KV namespace ID, and then deploy, can I inadvertently have a bad deployment?
No, that's what this feature supports. As part of the deploy process a real namespace would be provisioned, and so you'd end up with a deployment that worked exactly as it did during local dev.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should change the wording to say that this feature is in open beta (which is really what we are doing here), and point out that this means we may make breaking changes to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the wording a bit—how does that look now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, very much in favour of the beta wording.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving from PCX to ensure there's no holdup.
No description provided.