Create R2 bindings for Pages' functions

I want to bind a R2 bucket to my Pages’ functions as described here (Bindings · Cloudflare Pages docs), but on my project (https://dash.cloudflare.com/8e16708528c04eab1ce489b36bcbd9bb/pages/view/studio/settings/functions), the Add binding button is replaced by a Get started one (see step 3 on the first link of my message).

Thus, impossible for me to access my R2 from my page through the Worker API.

This issue seems very old https://community.cloudflare.com/t/create-r2-bindings-for-functions-in-a-pages-project/385159/2

Just want to say, I found a workaround using terraform if someone need it, see https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/pages_project#r2_buckets.

1 Like

The issue linked isn’t related.

You don’t have any buckets so there’s none to select. Create a bucket and it’ll show up

OK, it’s just super weird, I got 2 buckets but under EU jurisdiction, and impossible to see and link one of them, but when I created a bucket with automatic jurisdiction (like WEUR location) it works…