Creating a R2 Bucket with zone Europe makes it invisible to Worker

Hey, I just created a R2 bucket and choose zone Europe through the interface. When deploying my worker with a biding to this R2 bucket, Cloudflare kept complaining that this bucket doesn't exist. I ran the command
Bash(pnpm wrangler r2 bucket create locky-box-photos)
⎿   ⛅️ wrangler 4.19.1
───────────────────
Creating bucket 'locky-box-photos'...
:white_check_mark: Created bucket 'locky-box-photos' with default storage class of Standard.
Bash(pnpm wrangler r2 bucket create locky-box-photos)
⎿   ⛅️ wrangler 4.19.1
───────────────────
Creating bucket 'locky-box-photos'...
:white_check_mark: Created bucket 'locky-box-photos' with default storage class of Standard.
And ended up having 2 buckets with name "locky-box-photos" (one with "EU" and the other not) in the interface. But now I can deploy the app (i will delete the EU R2 bucket) but so strange to have this.
No description
2 Replies
Chaika
Chaika4mo ago
You didn't pick the "zone" Europe, you picked the Jurisdiction which is about ensuring all the data stays within a specific location due to laws/data location concerns Jurisdictions are really special and require custom commands/flags everywhere In Workers, when binding in your toml/json, you have to specify the jurisdiction: https://developers.cloudflare.com/r2/reference/data-location/#using-jurisdictions-from-workers On every wrangler r2 command, you can specify the --jurisdiction there as well https://developers.cloudflare.com/workers/wrangler/commands/#r2-bucket-info If you just want it to be in a specific region and don't care about all the data laws/residency requirements/etc, you can just create the bucket with a location hint (in the UI, pick "Provide a location hint") instead like East/West Europe
Tristan
TristanOP4mo ago
thanks for the clarification

Did you find this page helpful?