Skip to content

Commit d6c7208

Browse files
Oxyjunmaxvp
authored andcommitted
[R2] Minor fixes (#24497)
* Fixing description, fixing Sippy credentials * Updating JSON block * Adding asterisk regex
1 parent 8423950 commit d6c7208

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

src/content/docs/r2/data-migration/sippy.mdx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,17 @@ To create credentials with the correct permissions:
246246

247247
```json
248248
{
249-
"Version": "2012-10-17",
250-
"Statement": [
251-
{
252-
"Effect": "Allow",
253-
"Action": ["s3:GetObject"],
254-
"Resource": ["arn:aws:s3:::<BucketName>/*"]
255-
}
256-
]
249+
"Version": "2012-10-17",
250+
"Statement": [
251+
{
252+
"Effect": "Allow",
253+
"Action": ["s3:ListBucket*", "s3:GetObject*"],
254+
"Resource": [
255+
"arn:aws:s3:::<BUCKET_NAME>",
256+
"arn:aws:s3:::<BUCKET_NAME>/*"
257+
]
258+
}
259+
]
257260
}
258261
```
259262

src/content/docs/r2/how-r2-works.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ title: How R2 works
44
pcx_content_type: concept
55
sidebar:
66
order: 2
7-
description: xyz
7+
description: Find out how R2 works.
88
head:
99
- tag: title
1010
content: How R2 works
1111
---
1212

1313
import { Render, LinkCard } from "~/components";
1414

15-
Cloudflare R2 is an S3-compatible object storage service with no egress fees, built on Cloudflares global network. It is [strongly consistent](/r2/reference/consistency/) and designed for high [data durability](/r2/reference/durability/).
15+
Cloudflare R2 is an S3-compatible object storage service with no egress fees, built on Cloudflare's global network. It is [strongly consistent](/r2/reference/consistency/) and designed for high [data durability](/r2/reference/durability/).
1616

17-
R2 is ideal for storing and serving unstructured data that needs to be accessed frequently over the internet, without incurring egress fees. Its a good fit for workloads like serving web assets, training AI models, and managing user-generated content.
17+
R2 is ideal for storing and serving unstructured data that needs to be accessed frequently over the internet, without incurring egress fees. It's a good fit for workloads like serving web assets, training AI models, and managing user-generated content.
1818

1919
## Architecture
20-
R2s architecture is composed of multiple components:
20+
R2's architecture is composed of multiple components:
2121

22-
- **R2 Gateway:** The entry point for all API requests that handles authentication and routing logic. This service is deployed across Cloudflares global network via [Cloudflare Workers](/workers/).
22+
- **R2 Gateway:** The entry point for all API requests that handles authentication and routing logic. This service is deployed across Cloudflare's global network via [Cloudflare Workers](/workers/).
2323

2424
- **Metadata Service:** A distributed layer built on [Durable Objects](/durable-objects/) used to store and manage object metadata (e.g. object key, checksum) to ensure strong consistency of the object across the storage system. It includes a built-in cache layer to speed up access to metadata.
2525

@@ -42,7 +42,7 @@ When a write request (e.g. uploading an object) is made to R2, the following seq
4242

4343
3. **Writing to storage:** The encrypted data is written and stored in the distributed storage infrastructure, and replicated within the region (e.g. ENAM) for [durability](/r2/reference/durability/).
4444

45-
4. **Metadata commit:** Finally, the Metadata Service commits the objects metadata, making it visible in subsequent reads. Only after this commit is an `HTTP 200` success response sent to the client, preventing unacknowledged writes.
45+
4. **Metadata commit:** Finally, the Metadata Service commits the object's metadata, making it visible in subsequent reads. Only after this commit is an `HTTP 200` success response sent to the client, preventing unacknowledged writes.
4646

4747
![Write data to R2](public/images/r2/write-data-to-r2.png)
4848

@@ -53,7 +53,7 @@ When a read request (e.g. fetching an object) is made to R2, the following seque
5353

5454
2. **Metadata lookup:** The Gateway asks the Metadata Service for the object metadata.
5555

56-
3. **Reading the object:** The Gateway attempts to retrieve the [encrypted](/r2/reference/data-security/) object from the tiered read cache. If its not available, it retrieves the object from one of the distributed storage data centers within the region that holds the object data.
56+
3. **Reading the object:** The Gateway attempts to retrieve the [encrypted](/r2/reference/data-security/) object from the tiered read cache. If it's not available, it retrieves the object from one of the distributed storage data centers within the region that holds the object data.
5757

5858
4. **Serving to client:** The object is decrypted and served to the user.
5959

@@ -62,7 +62,7 @@ When a read request (e.g. fetching an object) is made to R2, the following seque
6262
## Performance
6363
The performance of your operations can be influenced by factors such as the bucket's geographical location, request origin, and access patterns.
6464

65-
To further optimize R2 performance for object read requests, you can enable [Cloudflare Cache](/cache/) when using a [custom domain](/r2/buckets/public-buckets/#custom-domains). When caching is enabled, [read requests](/r2/how-r2-works/#read-data-from-r2) can bypass the R2 Gateway Worker and be served directly from Cloudflares edge cache, reducing latency. However, note that it may cause consistency trade-offs since cached data may not reflect the latest version immediately.
65+
To further optimize R2 performance for object read requests, you can enable [Cloudflare Cache](/cache/) when using a [custom domain](/r2/buckets/public-buckets/#custom-domains). When caching is enabled, [read requests](/r2/how-r2-works/#read-data-from-r2) can bypass the R2 Gateway Worker and be served directly from Cloudflare's edge cache, reducing latency. However, note that it may cause consistency trade-offs since cached data may not reflect the latest version immediately.
6666

6767
![Read data to R2 with Cloudflare Cache](public/images/r2/read-data-to-r2-with-cloudflare-cache.png)
6868

0 commit comments

Comments
 (0)