|
@@ -6,7 +6,8 @@ imgproxy can process images from S3 buckets. To use this feature, do the followi
|
|
|
2. [Set up the necessary credentials](#set-up-credentials) to grant access to your bucket.
|
|
|
3. _(optional)_ Specify the AWS region with `IMGPROXY_S3_REGION` or `AWS_REGION`. Default: `us-west-1`
|
|
|
4. _(optional)_ Specify the S3 endpoint with `IMGPROXY_S3_ENDPOINT`.
|
|
|
-5. Use `s3://%bucket_name/%file_key` as the source image URL.
|
|
|
+5. _(optional)_ Specify the AWS IAM Role to Assume with `IMGPROXY_S3_ASSUME_ROLE_ARN`
|
|
|
+6. Use `s3://%bucket_name/%file_key` as the source image URL.
|
|
|
|
|
|
If you need to specify the version of the source object, you can use the query string of the source URL:
|
|
|
|
|
@@ -49,6 +50,10 @@ aws_access_key_id = %access_key_id
|
|
|
aws_secret_access_key = %secret_access_key
|
|
|
```
|
|
|
|
|
|
+#### Cross-Account Access
|
|
|
+
|
|
|
+S3 access credentials may be acquired by assuming a role using STS. To do so specify the IAM Role arn with the `IMGPROXY_S3_ASSUME_ROLE_ARN` environment variable. This approach still requires you to provide initial AWS credentials by using one of the ways described above. The provided credentials role should allow assuming the role with provided ARN.
|
|
|
+
|
|
|
## Minio
|
|
|
|
|
|
[Minio](https://github.com/minio/minio) is an object storage server released under Apache License v2.0. It is compatible with Amazon S3, so it can be used with imgproxy.
|