Skip to content

Commit 867cce9

Browse files
Fix bucket URLs
1 parent 7be6c8c commit 867cce9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/content/docs/r2/buckets/cors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The example below shows how to generate a presigned `PutObject` URL using the [`
4343
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4444
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
4545
const S3 = new S3Client({
46-
endpoint: "https://<bucket>.r2.cloudflarestorage.com",
46+
endpoint: "https://<account_id>.r2.cloudflarestorage.com",
4747
credentials: {
4848
accessKeyId: "<access_key_id>",
4949
secretAccessKey: "<access_key_secret>",

src/content/docs/r2/buckets/object-lifecycles.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Below is an example of configuring a lifecycle configuration (a collection of li
5959

6060
```js title="Configure the S3 client to interact with R2"
6161
const client = new S3({
62-
endpoint: "https://<bucket>.r2.cloudflarestorage.com",
62+
endpoint: "https://<account_id>.r2.cloudflarestorage.com",
6363
credentials: {
6464
accessKeyId: "<access_key_id>",
6565
secretAccessKey: "<access_key_secret>",
@@ -154,7 +154,7 @@ import S3 from "aws-sdk/clients/s3.js";
154154

155155
// Configure the S3 client to talk to R2.
156156
const client = new S3({
157-
endpoint: "https://<bucket>.r2.cloudflarestorage.com",
157+
endpoint: "https://<account_id>.r2.cloudflarestorage.com",
158158
credentials: {
159159
accessKeyId: "<access_key_id>",
160160
secretAccessKey: "<access_key_secret>",
@@ -197,7 +197,7 @@ import S3 from "aws-sdk/clients/s3.js";
197197

198198
// Configure the S3 client to talk to R2.
199199
const client = new S3({
200-
endpoint: "https://<bucket>.r2.cloudflarestorage.com",
200+
endpoint: "https://<account_id>.r2.cloudflarestorage.com",
201201
credentials: {
202202
accessKeyId: "<access_key_id>",
203203
secretAccessKey: "<access_key_secret>",

src/content/docs/r2/reference/data-location.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The example below shows how to create an R2 bucket in the `eu` jurisdiction usin
107107
```js
108108
import { S3Client, CreateBucketCommand } from "@aws-sdk/client-s3";
109109
const S3 = new S3Client({
110-
endpoint: "https://<bucket>.eu.r2.cloudflarestorage.com",
110+
endpoint: "https://<account_id>.eu.r2.cloudflarestorage.com",
111111
credentials: {
112112
accessKeyId: "<access_key_id",
113113
secretAccessKey: "<access_key_secret>",

0 commit comments

Comments
 (0)