summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorwn_ <[email protected]>2022-12-03 13:27:25 +0000
committerwn_ <[email protected]>2022-12-03 13:41:24 +0000
commit579cf771e59347a5892f5bfbcb23eedd0d34b529 (patch)
tree6ac3534c79a939e1e365d9f5acd94e2b3ac046f5 /README.md
parent64b4b9a3d4aba85e86fc32dbc2319bba04499074 (diff)
Use the AWS PHP SDK's default credential provider chain.
This allows for use of any supported approach, in particular AWS IAM instance profiles, to provide credentials. If used, access and secret key environment variables will need to be changed to the expected names (i.e. 'TTRSS_CACHE_S3_ACCESS_KEY' to 'AWS_ACCESS_KEY_ID' and 'CACHE_S3_SECRET_KEY' to 'AWS_SECRET_ACCESS_KEY').
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2a1a54d..b8e68d7 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Cache S3
-File cache backend using S3 protocol (e.g. Minio)
+File cache backend using S3 protocol (e.g. Minio, AWS S3).
## Installation
@@ -14,6 +14,13 @@ The following options are required:
TTRSS_CACHE_S3_ENDPOINT=http://example.com:9000
TTRSS_CACHE_S3_BUCKET=bucket-name
TTRSS_CACHE_S3_REGION=us-east-1
-TTRSS_CACHE_S3_ACCESS_KEY=xxx
-TTRSS_CACHE_S3_SECRET_KEY=yyy
+```
+
+The following options are required if you're directly providing access keys (i.e. not using an IAM role or alternative approach).
+See [Credentials for the AWS SDK for PHP Version 3](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html) for more information.
+
+```ini
+# Intentionally without the 'TTRSS_' prefix.
+AWS_ACCESS_KEY_ID=xxx
+AWS_SECRET_ACCESS_KEY=yyy
```