Describe the bug
We'd like to return the regional STS endpoint with utils.sts_regional_endpoint(region), although this method always returns the global endpoint https://sts.amazonaws.com for all valid regions as well as non existent ones.
To reproduce
This can be easily reproduced with a one liner:
python3 -c 'import sagemaker; print(sagemaker.utils.sts_regional_endpoint("eu-west-1"))'
Expected behavior
We're expecting to get a regional endpoint such as: sts.eu-west-1.amazonaws.com if the method parameter is eu-west-1 instead of the global endpoint https://sts.amazonaws.com. The regional endpoints can be found in the AWS documentation: Managing AWS STS in an AWS Region.
System information
- SageMaker Python SDK version: 1.50.18.post0
- Framework name (eg. PyTorch) or algorithm (eg. KMeans): N/A
- Framework version: N/A
- Python version: 3.7.5
- CPU or GPU: N/A
- Custom Docker image (Y/N): N