Support of AWS profiles #156

Closed
ylukoyan wants to merge 1 commit from ylukoyan:profiles into master

View file

@ -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