S3
Cache tiles as objects in an AWS S3 bucket, or some other S3 compatible object storage.
AWS specific notes
Ensure the user you’re using has proper permissions for reading and writing objects in the bucket. The permissions required are the minimal set you’d expect: s3:GetObject and s3:PutObject. Also ensure the user has access to the KMS key if using bucket encryption.
It’s highly recommended to also grant s3:ListBucket permissions, otherwise the log will contain misleading 403 error messages for every cache miss.
|
Example
-
YAML
-
JSON
cache:
name: s3
bucket: my-cache--use1-az6--x-s3
endpoint: "https://s3express-use1-az6.us-east-1.amazonaws.com"
storageclass: EXPRESS_ONEZONE
region: us-east-1
profile: tilegroxy_s3_user
{
"cache": {
"name": "s3",
"bucket": "my-cache--use1-az6--x-s3",
"endpoint": "https://s3express-use1-az6.us-east-1.amazonaws.com",
"storageclass": "EXPRESS_ONEZONE",
"region": "us-east-1",
"profile": "tilegroxy_s3_user"
}
}
-
YAML
-
JSON
cache:
name: s3
bucket: my-tilegroxy-cache
endpoint: "https://<account-id>.r2.cloudflarestorage.com"
region: auto
usepathstyle: true
access: "<R2 access key id>"
secret: "<R2 secret access key>"
{
"cache": {
"name": "s3",
"bucket": "my-tilegroxy-cache",
"endpoint": "https://<account-id>.r2.cloudflarestorage.com",
"region": "auto",
"usepathstyle": true,
"access": "<R2 access key id>",
"secret": "<R2 secret access key>"
}
}
Configuration
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
|
The name of the bucket to use |
string |
Yes |
None |
|
The path prefix to use for storing tiles |
string |
No |
/ |
|
The AWS region containing the bucket. Required if region is not specified via other means. Consult AWS documentation for possible values |
string |
No |
None |
|
The AWS Access Key ID to authenticate with. This is not recommended; it is offered as a fallback authentication method only. Consult AWS documentation for better options |
string |
No |
None |
|
The AWS Secret Key to authenticate with. This is not recommended; it is offered as a fallback authentication method only. Consult AWS documentation for better options |
string |
No |
None |
|
The profile to use to authenticate against the AWS API. Consult AWS documentation for specifics |
string |
No |
None |
|
The storage class to use for the object. You probably can leave this blank and use the bucket default. Consult AWS documentation for an overview of options. The following are currently valid: STANDARD REDUCED_REDUNDANCY STANDARD_IA ONEZONE_IA INTELLIGENT_TIERING GLACIER DEEP_ARCHIVE OUTPOSTS GLACIER_IR SNOW EXPRESS_ONEZONE |
string |
No |
STANDARD |
|
Override the S3 API Endpoint we talk to. Useful if you’re using S3 outside AWS or using a directory bucket |
string |
No |
AWS Auto |
|
Use path-style addressing ( |
boolean |
No |
false |