@@ -221,6 +221,7 @@ def configure():
221221 config .main_display_name = cfg .get ('s3 main' ,"display_name" )
222222 config .main_user_id = cfg .get ('s3 main' ,"user_id" )
223223 config .main_email = cfg .get ('s3 main' ,"email" )
224+ config .main_account_id = cfg .get ('s3 main' , 'account_id' , fallback = None )
224225 try :
225226 config .main_kms_keyid = cfg .get ('s3 main' ,"kms_keyid" )
226227 except (configparser .NoSectionError , configparser .NoOptionError ):
@@ -263,12 +264,14 @@ def configure():
263264 config .alt_display_name = cfg .get ('s3 alt' ,"display_name" )
264265 config .alt_user_id = cfg .get ('s3 alt' ,"user_id" )
265266 config .alt_email = cfg .get ('s3 alt' ,"email" )
267+ config .alt_account_id = cfg .get ('s3 alt' , 'account_id' , fallback = None )
266268
267269 config .tenant_access_key = cfg .get ('s3 tenant' ,"access_key" )
268270 config .tenant_secret_key = cfg .get ('s3 tenant' ,"secret_key" )
269271 config .tenant_display_name = cfg .get ('s3 tenant' ,"display_name" )
270272 config .tenant_user_id = cfg .get ('s3 tenant' ,"user_id" )
271273 config .tenant_email = cfg .get ('s3 tenant' ,"email" )
274+ config .tenant_account_id = cfg .get ('s3 tenant' , 'account_id' , fallback = None )
272275 config .tenant_name = cfg .get ('s3 tenant' ,"tenant" )
273276
274277 config .iam_access_key = cfg .get ('iam' ,"access_key" )
@@ -281,11 +284,13 @@ def configure():
281284 config .iam_root_secret_key = cfg .get ('iam root' ,"secret_key" )
282285 config .iam_root_user_id = cfg .get ('iam root' ,"user_id" )
283286 config .iam_root_email = cfg .get ('iam root' ,"email" )
287+ config .iam_root_account_id = cfg .get ('iam root' , 'account_id' , fallback = None )
284288
285289 config .iam_alt_root_access_key = cfg .get ('iam alt root' ,"access_key" )
286290 config .iam_alt_root_secret_key = cfg .get ('iam alt root' ,"secret_key" )
287291 config .iam_alt_root_user_id = cfg .get ('iam alt root' ,"user_id" )
288292 config .iam_alt_root_email = cfg .get ('iam alt root' ,"email" )
293+ config .iam_alt_root_account_id = cfg .get ('iam alt root' , 'account_id' , fallback = None )
289294
290295 # vars from the fixtures section
291296 template = cfg .get ('fixtures' , "bucket prefix" , fallback = 'test-{random}-' )
@@ -705,6 +710,9 @@ def get_main_user_id():
705710def get_main_email ():
706711 return config .main_email
707712
713+ def get_main_account_id ():
714+ return config .main_account_id
715+
708716def get_main_api_name ():
709717 return config .main_api_name
710718
@@ -726,6 +734,9 @@ def get_alt_display_name():
726734def get_alt_user_id ():
727735 return config .alt_user_id
728736
737+ def get_alt_account_id ():
738+ return config .alt_account_id
739+
729740def get_alt_email ():
730741 return config .alt_email
731742
@@ -738,6 +749,9 @@ def get_tenant_aws_secret_key():
738749def get_tenant_display_name ():
739750 return config .tenant_display_name
740751
752+ def get_tenant_account_id ():
753+ return config .tenant_account_id
754+
741755def get_tenant_name ():
742756 return config .tenant_name
743757
@@ -786,12 +800,18 @@ def get_iam_root_user_id():
786800def get_iam_root_email ():
787801 return config .iam_root_email
788802
803+ def get_iam_root_account_id ():
804+ return config .iam_root_account_id
805+
789806def get_iam_alt_root_user_id ():
790807 return config .iam_alt_root_user_id
791808
792809def get_iam_alt_root_email ():
793810 return config .iam_alt_root_email
794811
812+ def get_iam_alt_root_account_id ():
813+ return config .iam_alt_root_account_id
814+
795815def get_user_token ():
796816 return config .webidentity_user_token
797817
0 commit comments