getting the current user account-id in boto3
You can get the account ID by using the STS API: >>> import boto3 >>> boto3.client(‘sts’).get_caller_identity().get(‘Account’) ‘012345678901’
You can get the account ID by using the STS API: >>> import boto3 >>> boto3.client(‘sts’).get_caller_identity().get(‘Account’) ‘012345678901’