Support of AWS profiles #156
1 changed files with 3 additions and 1 deletions
|
@ -241,7 +241,9 @@ def s3_client(
|
|||
assert cid in containers_list, f"Expected cid {cid} in {containers_list}"
|
||||
|
||||
s3_client_cls = request.param
|
||||
client = s3_client_cls(access_key_id, secret_access_key, cluster.default_s3_gate_endpoint)
|
||||
# aws configure adds every new profile to configs and there is no way to remove it using CLI/boto3 calls
|
||||
# so it is better to set default one here instead of randomly generated name
|
||||
client = s3_client_cls(access_key_id, secret_access_key, cluster.default_s3_gate_endpoint, profile="default")
|
||||
yield client
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue