Skip to content

Commit

Permalink
fix: config for aws in processing (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnyCapt authored and khyurri committed Jun 4, 2024
1 parent 11b6447 commit 83e7b99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions processing/processing/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Settings(BaseSettings):
keycloak_host: str
pipelines_service_host: str

aws_region: Optional[str]
s3_endpoint: str
s3_secret_key: str
s3_access_key: str
Expand Down
9 changes: 8 additions & 1 deletion processing/processing/utils/minio_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ def create_minio_config():
}
)
elif settings.s3_provider == "aws_iam":
minio_config.update({"credentials": IamAwsProvider()})
minio_config.update(
{
"credentials": IamAwsProvider(),
"region": settings.aws_region,
"access_key": settings.s3_access_key,
"secret_key": settings.s3_secret_key,
}
)
elif settings.s3_provider == "aws_env":
minio_config.update({"credentials": EnvAWSProvider()})
elif settings.s3_provider == "aws_config":
Expand Down

0 comments on commit 83e7b99

Please sign in to comment.