Expand description
The names a deploy gives a project’s resources in a named environment (back-half paydown 1C.2, Decision E of #4039).
Pure functions of (environment, name). The plan prints the names, the push writes them into
the [env.<name>] block bynk-emit renders, and the two must agree by construction: they
are the one set of functions, in one crate below both (#2028).
Functions§
- analytics_
dataset_ name - P3b (#2582): the name an
Analyticsinstance’s dataset has inenvironment: qualified asenv_qualifydoes but with_(shop_cart_signups_staging), since the dataset is a SQL table name. - d1_
database_ name - P4a (#2602): the name a
D1instance’s database has on the account inenvironment. - deployed_
worker_ name - The name project Worker
workeris deployed under inenvironment, and so the name every Service Binding to it must carry (#2028):env_qualify. Under--env, Wrangler names an environment that sets noname<top-level name>-<env>and uses an environment’s ownnameas given, so stating it changes nothing Wrangler would have done on its own; it makes Bynk, not a Wrangler default, the owner of the name the plan promises. - env_
qualify <name>in thedefaultenvironment,<name>-<environment>in any other. The suffix shape Cloudflare gives a Worker’s own deployed name under--env, so a Service Binding to it must match exactly to resolve; queues, buckets, indexes and databases follow the same shape, which keeps the resource kinds, and the mental model, consistent.- r2_
bucket_ name - P5 (#2323): the name an
R2instance’s bucket has on the account inenvironment. Bucket names are scoped to the account, so (like a Worker’s) it is a function of the project’s names alone. - vectorize_
index_ name - #3479: the name a
Vectorizeinstance’s index has inenvironment.