-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
status: pending releaseThe fix have been merged but not yet released to PyPIThe fix have been merged but not yet released to PyPItype: bug
Description
Please fill out the form below.
System Information
- Python 3.6.9
- Sagemaker SDK 1.39.0
Describe the problem
PR #1026 introduced a bug by not using a scheme for a particular STS endpoint
Minimal repro / logs
sagemaker.get_execution_role(sagemaker_session)
Leads to this stack trace
File "/Library/Caches/virtualenvs/gocentral-ml-sagemaker-0XKWRhha-py3.6/lib/python3.6/site-packages/sagemaker/session.py", line 1386, in get_caller_identity_arn
"sts", endpoint_url=sts_regional_endpoint(self.boto_region_name)
File "/Library/Caches/virtualenvs/gocentral-ml-sagemaker-0XKWRhha-py3.6/lib/python3.6/site-packages/boto3/session.py", line 263, in client
aws_session_token=aws_session_token, config=config)
File "/Library/Caches/pypoetry/virtualenvs/gocentral-ml-sagemaker-0XKWRhha-py3.6/lib/python3.6/site-packages/botocore/session.py", line 839, in create_client
client_config=config, api_version=api_version)
File "/Library/Caches/pypoetry/virtualenvs/gocentral-ml-sagemaker-0XKWRhha-py3.6/lib/python3.6/site-packages/botocore/client.py", line 86, in create_client
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/Library/Caches/pypoetry/virtualenvs/gocentral-ml-sagemaker-0XKWRhha-py3.6/lib/python3.6/site-packages/botocore/client.py", line 328, in _get_client_args
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/Library/Caches/pypoetry/virtualenvs/gocentral-ml-sagemaker-0XKWRhha-py3.6/lib/python3.6/site-packages/botocore/args.py", line 85, in get_client_args
client_cert=new_config.client_cert)
File "/Library/Caches/pypoetry/virtualenvs/gocentral-ml-sagemaker-0XKWRhha-py3.6/lib/python3.6/site-packages/botocore/endpoint.py", line 261, in create_endpoint
raise ValueError("Invalid endpoint: %s" % endpoint_url)
ValueError: Invalid endpoint: sts.us-west-2.amazonaws.com
The endpoint.py requires a scheme and non is provided via the sts_regional_endpoint method.
Metadata
Metadata
Assignees
Labels
status: pending releaseThe fix have been merged but not yet released to PyPIThe fix have been merged but not yet released to PyPItype: bug