Skip to content

Commit 9930eda

Browse files
stephenbawksrubenfonseca
authored andcommitted
update
1 parent 8751c1a commit 9930eda

File tree

1 file changed

+2
-2
lines changed
  • aws_lambda_powertools/utilities/iam

1 file changed

+2
-2
lines changed

aws_lambda_powertools/utilities/iam/auth.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Optional
33
from botocore.auth import SigV4Auth
44
from botocore.credentials import Credentials
5-
from boto3 import Session
5+
import botocore.session
66

77

88
class SigV4AuthFactory:
@@ -45,7 +45,7 @@ def __init__(
4545
self._credentials = Credentials(access_key=self._access_key, secret_key=self._secret_key, token=token)
4646

4747
else:
48-
self._credentials = Session().get_credentials()
48+
self._credentials = botocore.session.Session().get_credentials()
4949

5050
def __call__(self):
5151
return SigV4Auth(credentials=self._credentials, service=self._service, region=self._region)

0 commit comments

Comments
 (0)