We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8751c1a commit 9930edaCopy full SHA for 9930eda
aws_lambda_powertools/utilities/iam/auth.py
@@ -2,7 +2,7 @@
2
from typing import Optional
3
from botocore.auth import SigV4Auth
4
from botocore.credentials import Credentials
5
-from boto3 import Session
+import botocore.session
6
7
8
class SigV4AuthFactory:
@@ -45,7 +45,7 @@ def __init__(
45
self._credentials = Credentials(access_key=self._access_key, secret_key=self._secret_key, token=token)
46
47
else:
48
- self._credentials = Session().get_credentials()
+ self._credentials = botocore.session.Session().get_credentials()
49
50
def __call__(self):
51
return SigV4Auth(credentials=self._credentials, service=self._service, region=self._region)
0 commit comments