in Onboarding/AWS/GrantAccessToEksClusters.py [0:0]
def get_account_id(session: boto3.Session) -> str:
sts_client = session.client("sts")
try:
return sts_client.get_caller_identity().get("Account")
except Exception as ex:
sys.exit(str(ex))