Skip to content

Commit

Permalink
Specifying s3_region on S3Storage CloudStorage
Browse files Browse the repository at this point in the history
Due to the boto3 issues (boto/boto3#2989) setting the X-Amz-Credential header,
it is recommended to set either the `s3_region` or the `endpoint_url`
when configuring an S3Storage provider.

This commit adds a the `s3_region` field to all documented S3Storage
examples.
  • Loading branch information
lbac-redhat committed Mar 15, 2024
1 parent 0f65810 commit 5b05f66
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/backing-up-red-hat-quay-standalone.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ DISTRIBUTED_STORAGE_CONFIG:
s3_access_key: <s3_access_key>
s3_secret_key: <s3_secret_key>
host: <host_name>
s3_region: <s3_region_name>
----
. Export the `AWS_ACCESS_KEY_ID` by using the `access_key` credential obtained in Step 7:
Expand Down
1 change: 1 addition & 0 deletions modules/config-fields-storage-aws.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ DISTRIBUTED_STORAGE_CONFIG:
default:
- S3Storage <1>
- host: s3.us-east-2.amazonaws.com
s3_region: us-east-2
s3_access_key: ABCDEFGHIJKLMN
s3_secret_key: OL3ABCDEFGHIJKLMN
s3_bucket: quay_bucket
Expand Down
1 change: 1 addition & 0 deletions modules/connecting-s3-timeout.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DISTRIBUTED_STORAGE_CONFIG:
default:
- S3Storage
- host: s3.ap-south-1.amazonaws.com
s3_region: ap-south-1
s3_access_key: *****************
s3_bucket: quay-bucket-1
s3_secret_key: *********************************
Expand Down
1 change: 1 addition & 0 deletions modules/operator-unmanaged-storage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ DISTRIBUTED_STORAGE_CONFIG:
s3Storage:
- S3Storage
- host: s3.us-east-2.amazonaws.com
s3_region: us-east-2
s3_access_key: ABCDEFGHIJKLMN
s3_secret_key: OL3ABCDEFGHIJKLMN
s3_bucket: quay_bucket
Expand Down
2 changes: 2 additions & 0 deletions modules/restoring-red-hat-quay-standalone.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ DISTRIBUTED_STORAGE_CONFIG:
s3_access_key: <s3_access_key>
s3_secret_key: <s3_secret_key>
host: <host_name>
s3_region: <s3_region_name>
----
+
[NOTE]
Expand Down Expand Up @@ -235,4 +236,5 @@ DISTRIBUTED_STORAGE_CONFIG:
s3_access_key: <s3_access_key>
s3_secret_key: <s3_secret_key>
host: <host_name>
s3_region: <s3_region_name>
----

0 comments on commit 5b05f66

Please sign in to comment.