Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
minio creds as backup to aws creds
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingrismore committed Jan 16, 2024
1 parent 7dd910f commit 5315709
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prefect_aws/deployments/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ def get_s3_client(
client_parameters = {}

# Get credentials from credentials (regardless if block or not)
aws_access_key_id = credentials.get("aws_access_key_id", None) or credentials.get(
"minio_root_user", None
aws_access_key_id = credentials.get(
"aws_access_key_id", credentials.get("minio_root_user", None)
)
aws_secret_access_key = credentials.get(
"aws_secret_access_key", None
) or credentials.get("minio_root_password", None)
"aws_secret_access_key", credentials.get("minio_root_password", None)
)
aws_session_token = credentials.get("aws_session_token", None)

# Get remaining session info from credentials, or client_parameters
Expand Down

0 comments on commit 5315709

Please sign in to comment.