We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3afc55e + 7839d89 commit d39b31aCopy full SHA for d39b31a
sagemaker_ssh_helper/wrapper.py
@@ -69,7 +69,9 @@ def _augment(self):
69
70
def _augment_env(self, env):
71
if self.local_user_id is None:
72
- caller_id = boto3.client('sts').get_caller_identity()
+ region = self.sagemaker_session.boto_region_name
73
+ endpoint_url = "https://sts.{}.amazonaws.com".format(region)
74
+ caller_id = boto3.client("sts", region_name=region, endpoint_url=endpoint_url).get_caller_identity()
75
user_id = caller_id.get('UserId')
76
else:
77
user_id = self.local_user_id
0 commit comments