o .&a;@s`ddlZddlZddlmZddlmZeeZej ej ddddZ dd Z d d ZdS) N)ProfileNotFound) JSONFileCache~z.awsclicachecCs|jdtdddS)Nzsession-initialized&inject_assume_role_cred_provider_cache) unique_id)register!inject_assume_role_provider_cache)event_handlersr B/usr/lib/python3/dist-packages/awscli/customizations/assumerole.pyregister_assume_role_provider s rcKsZz|d}WntytdYdSw|d}tt|_|d}tt|_dS)Ncredential_providerz}ProfileNotFound caught when trying to inject assume-role cred provider cache. Not configuring JSONFileCache for assume-role.z assume-rolezassume-role-with-web-identity) get_componentrLOGdebug get_providerr CACHE_DIRr)sessionkwargs cred_chainassume_role_providerweb_identity_providerr r r r s    r )osloggingbotocore.exceptionsrbotocore.credentialsr getLogger__name__rpath expanduserjoinrrr r r r r s