Skip to content

Commit 0222acd

Browse files
Fixed a missing permissions in the r2-sql query-data.mdx file (#25619)
* Adding trino.mdx to the R2 Data Catalog examples Adding an example of connecting Trino to the R2 Data Catalog * Apply suggestions from code review * Apply suggestions from code review * simplified trino.mdx based on feedback from @jonesphillip - changed order of creating directory and files to make the steps flow better. * moved text out of code block moved text out of code block * fixed markdown typo in trino.mdx * fixed a missing permissions in query-data.mdx --------- Co-authored-by: Jun Lee <[email protected]>
1 parent c53eb2b commit 0222acd

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/content/docs/r2-sql/query-data.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ To query data with R2 SQL, you must provide a Cloudflare API token with R2 SQL,
7272

7373
### Create API token in the dashboard
7474

75-
Create an [R2 API token](/r2/api/tokens/#permissions) with **Admin Read only** permission. This permission includes:
75+
Create an [R2 API token](/r2/api/tokens/#permissions) with the following permissions:
7676

7777
- Access to R2 Data Catalog (read-only)
78-
- Access to R2 storage (read-only)
78+
- Access to R2 storage (Admin read/write)
7979
- Access to R2 SQL (read-only)
8080

8181
Use this token value for the `WRANGLER_R2_SQL_AUTH_TOKEN` environment variable when querying with Wrangler, or in the Authorization header when using the REST API.
@@ -96,18 +96,18 @@ To create an API token programmatically for use with R2 SQL, you'll need to spec
9696
"com.cloudflare.edge.r2.bucket.4793d734c0b8e484dfc37ec392b5fa8a_eu_my-eu-bucket": "*"
9797
},
9898
"permission_groups": [
99-
{
100-
"id": "45db74139a62490b9b60eb7c4f34994b",
101-
"name": "Workers R2 Data Catalog Read"
102-
},
103-
{
104-
"id": "6a018a9f2fc74eb6b293b0c548f38b39",
105-
"name": "Workers R2 Storage Bucket Item Read"
106-
},
107-
{
108-
"id": "f45430d92e2b4a6cb9f94f2594c141b8",
109-
"name": "Workers R2 SQL Read"
110-
}
99+
{
100+
"id": "f45430d92e2b4a6cb9f94f2594c141b8",
101+
"name": "Workers R2 SQL Read"
102+
},
103+
{
104+
"id": "d229766a2f7f4d299f20eaa8c9b1fde9",
105+
"name": "Workers R2 Data Catalog Write"
106+
},
107+
{
108+
"id": "bf7481a1826f439697cb59a20b22293e",
109+
"name": "Workers R2 Storage Write"
110+
}
111111
]
112112
}
113113
]

0 commit comments

Comments
 (0)