RED-5324: Added missing storage-region to key to config and to minio-client creation so that storage access works on s3

This commit is contained in:
Viktor Seifert 2022-09-30 15:12:58 +02:00
parent 88b4c5c7ce
commit ffaa4a668b
2 changed files with 5 additions and 2 deletions

View File

@ -49,6 +49,9 @@ class Config(object):
# Password for s3 storage
self.storage_secret = read_from_environment("STORAGE_SECRET", "password")
# Region for s3 storage
self.storage_region = read_from_environment("STORAGE_REGION", "eu-central-1")
# Connection string for Azure storage
self.storage_azureconnectionstring = read_from_environment(
"STORAGE_AZURECONNECTIONSTRING", "DefaultEndpointsProtocol=..."

View File

@ -94,7 +94,7 @@ def get_s3_storage(config: Config):
**_parse_endpoint(config.storage_endpoint),
access_key=config.storage_key,
secret_key=config.storage_secret,
# FIXME Is this still needed? Check and if yes, add it to config
# region=config.region,
# This is relevant for running on s3
region=config.storage_region,
)
)