From 045ad2f46e9267254ce9b27efbdd2be6ec563a33 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Fri, 6 Dec 2019 17:00:13 +0100 Subject: [PATCH] iam: explicitly set a region for the iam client Avoids region not defined errors Signed-off-by: Abhishek Lekshmanan --- s3tests_boto3/functional/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/s3tests_boto3/functional/__init__.py b/s3tests_boto3/functional/__init__.py index 5c229fa..3b97f46 100644 --- a/s3tests_boto3/functional/__init__.py +++ b/s3tests_boto3/functional/__init__.py @@ -268,6 +268,7 @@ def get_tenant_client(client_config=None): def get_tenant_iam_client(): client = boto3.client(service_name='iam', + region_name='us-east-1', aws_access_key_id=config.tenant_access_key, aws_secret_access_key=config.tenant_secret_key, endpoint_url=config.default_endpoint,